turingdb 0.2.1__py3-none-any.whl → 0.2.3__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of turingdb might be problematic. Click here for more details.

turingdb/__init__.py ADDED
@@ -0,0 +1,3 @@
1
+ from .turingdb import TuringDB, TuringDBException
2
+
3
+ __all__ = ["TuringDB", "TuringDBException"]
turingdb/py.typed ADDED
File without changes
@@ -64,10 +64,12 @@ class TuringDB:
64
64
  def set_commit(self, commit: str):
65
65
  self._params["commit"] = commit
66
66
 
67
- def set_change(self, change: str):
67
+ def set_change(self, change: int | str):
68
+ if isinstance(change, int):
69
+ change = f"{change:x}"
68
70
  self._params["change"] = change
69
71
 
70
- def checkout(self, change: str = "main", commit: str = "HEAD"):
72
+ def checkout(self, change: int | str = "main", commit: str = "HEAD"):
71
73
  if change == "main":
72
74
  if "change" in self._params:
73
75
  del self._params["change"]
@@ -147,4 +149,3 @@ class TuringDB:
147
149
  arrays = [np.array(columns[i], dtype=dtypes[i]) for i in range(len(columns))]
148
150
 
149
151
  return pd.DataFrame(dict(zip(column_names, arrays)), index=None)
150
-
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: turingdb
3
- Version: 0.2.1
3
+ Version: 0.2.3
4
4
  Summary: TuringDB python sdk
5
5
  Project-URL: Homepage, https://github.com/turing-db/turingdb-sdk-python
6
6
  Project-URL: Repository, https://github.com/turing-db/turingdb-sdk-python
@@ -8,6 +8,7 @@ License-File: LICENSE.txt
8
8
  Requires-Python: >=3.10
9
9
  Requires-Dist: httpx>=0.28.1
10
10
  Requires-Dist: orjson>=3.11.1
11
+ Requires-Dist: pandas-stubs>=2.3.0.250703
11
12
  Requires-Dist: pandas>=2.3.1
12
13
  Description-Content-Type: text/markdown
13
14
 
@@ -0,0 +1,8 @@
1
+ turingdb/__init__.py,sha256=zOhbnDfi_6Zf2aLn7mZho-xHIydeLd8-1TIT2_046Kg,95
2
+ turingdb/__init__.pyi,sha256=O6ZMBGuBgXInR2anKZI3ycMZECIuhlsTUanZiHjZEqs,790
3
+ turingdb/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
4
+ turingdb/turingdb.py,sha256=zT1ms_avuTmTA7xg8DfOQbGnGQ4p0awuQXcu43ItPhc,4615
5
+ turingdb-0.2.3.dist-info/METADATA,sha256=vtyv4ImbtOrYk1GuQnVi-46D3s2Nng8WP0l7cm9hRII,519
6
+ turingdb-0.2.3.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
7
+ turingdb-0.2.3.dist-info/licenses/LICENSE.txt,sha256=PgwD9hjeoyWO93yZQnxCyt0s-PlhXWLgqdCPpB91GhY,1078
8
+ turingdb-0.2.3.dist-info/RECORD,,
src/turingdb/_version.py DELETED
@@ -1,34 +0,0 @@
1
- # file generated by setuptools-scm
2
- # don't change, don't track in version control
3
-
4
- __all__ = [
5
- "__version__",
6
- "__version_tuple__",
7
- "version",
8
- "version_tuple",
9
- "__commit_id__",
10
- "commit_id",
11
- ]
12
-
13
- TYPE_CHECKING = False
14
- if TYPE_CHECKING:
15
- from typing import Tuple
16
- from typing import Union
17
-
18
- VERSION_TUPLE = Tuple[Union[int, str], ...]
19
- COMMIT_ID = Union[str, None]
20
- else:
21
- VERSION_TUPLE = object
22
- COMMIT_ID = object
23
-
24
- version: str
25
- __version__: str
26
- __version_tuple__: VERSION_TUPLE
27
- version_tuple: VERSION_TUPLE
28
- commit_id: COMMIT_ID
29
- __commit_id__: COMMIT_ID
30
-
31
- __version__ = version = '0.2.1'
32
- __version_tuple__ = version_tuple = (0, 2, 1)
33
-
34
- __commit_id__ = commit_id = None
@@ -1,7 +0,0 @@
1
- src/turingdb/__init__.py,sha256=jDI3-GTmSmWvEhFlV4y7l1UTSt9L-6952D5WOzW55cY,4533
2
- src/turingdb/__init__.pyi,sha256=O6ZMBGuBgXInR2anKZI3ycMZECIuhlsTUanZiHjZEqs,790
3
- src/turingdb/_version.py,sha256=vYqoJTG51NOUmYyL0xt8asRK8vUT4lGAdal_EZ59mvw,704
4
- turingdb-0.2.1.dist-info/METADATA,sha256=xE6AY76qE5T_W1jwoYZzdh_x6j9YDLKLxB9ETlPlXhc,477
5
- turingdb-0.2.1.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
6
- turingdb-0.2.1.dist-info/licenses/LICENSE.txt,sha256=PgwD9hjeoyWO93yZQnxCyt0s-PlhXWLgqdCPpB91GhY,1078
7
- turingdb-0.2.1.dist-info/RECORD,,
File without changes