turingdb 0.2.1__tar.gz → 0.2.3__tar.gz

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.

@@ -12,7 +12,7 @@ jobs:
12
12
 
13
13
  strategy:
14
14
  matrix:
15
- python-version: ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13"]
15
+ python-version: ["3.13"]
16
16
 
17
17
  steps:
18
18
  - name: Checkout code
@@ -4,7 +4,7 @@
4
4
  ### Python ###
5
5
 
6
6
  # Automatically generated by hatch version
7
- src/turingdb/_version.py
7
+ _version.py
8
8
 
9
9
  # Byte-compiled / optimized / DLL files
10
10
  __pycache__/
@@ -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
 
@@ -1,14 +1,7 @@
1
1
  # file generated by setuptools-scm
2
2
  # don't change, don't track in version control
3
3
 
4
- __all__ = [
5
- "__version__",
6
- "__version_tuple__",
7
- "version",
8
- "version_tuple",
9
- "__commit_id__",
10
- "commit_id",
11
- ]
4
+ __all__ = ["__version__", "__version_tuple__", "version", "version_tuple"]
12
5
 
13
6
  TYPE_CHECKING = False
14
7
  if TYPE_CHECKING:
@@ -16,19 +9,13 @@ if TYPE_CHECKING:
16
9
  from typing import Union
17
10
 
18
11
  VERSION_TUPLE = Tuple[Union[int, str], ...]
19
- COMMIT_ID = Union[str, None]
20
12
  else:
21
13
  VERSION_TUPLE = object
22
- COMMIT_ID = object
23
14
 
24
15
  version: str
25
16
  __version__: str
26
17
  __version_tuple__: VERSION_TUPLE
27
18
  version_tuple: VERSION_TUPLE
28
- commit_id: COMMIT_ID
29
- __commit_id__: COMMIT_ID
30
19
 
31
- __version__ = version = '0.2.1'
32
- __version_tuple__ = version_tuple = (0, 2, 1)
33
-
34
- __commit_id__ = commit_id = None
20
+ __version__ = version = '0.2.3'
21
+ __version_tuple__ = version_tuple = (0, 2, 3)
@@ -8,6 +8,7 @@ dependencies = [
8
8
  "httpx>=0.28.1",
9
9
  "orjson>=3.11.1",
10
10
  "pandas>=2.3.1",
11
+ "pandas-stubs>=2.3.0.250703",
11
12
  ]
12
13
 
13
14
  [project.urls]
@@ -18,14 +19,16 @@ Repository = "https://github.com/turing-db/turingdb-sdk-python"
18
19
  requires = ["hatchling", "hatch-vcs"]
19
20
  build-backend = "hatchling.build"
20
21
 
21
- [tool.hatch.build.targets.wheel]
22
- include = ["src/turingdb/**/*.py", "src/turingdb/**/*.pyi"]
23
-
24
22
  [tool.hatch.version]
25
23
  source = "vcs"
26
24
 
25
+ [tool.uv.workspace]
26
+ members = [
27
+ "testapp",
28
+ ]
29
+
27
30
  [tool.hatch.build.hooks.vcs]
28
- version-file = "src/turingdb/_version.py"
31
+ version-file = "_version.py"
29
32
 
30
33
  [dependency-groups]
31
34
  dev = [
@@ -0,0 +1,3 @@
1
+ from .turingdb import TuringDB, TuringDBException
2
+
3
+ __all__ = ["TuringDB", "TuringDBException"]
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
-
@@ -419,6 +419,20 @@ wheels = [
419
419
  { url = "https://files.pythonhosted.org/packages/d5/f9/07086f5b0f2a19872554abeea7658200824f5835c58a106fa8f2ae96a46c/pandas-2.3.1-cp313-cp313t-musllinux_1_2_x86_64.whl", hash = "sha256:5db9637dbc24b631ff3707269ae4559bce4b7fd75c1c4d7e13f40edc42df4444", size = 13189044, upload-time = "2025-07-07T19:19:39.999Z" },
420
420
  ]
421
421
 
422
+ [[package]]
423
+ name = "pandas-stubs"
424
+ version = "2.3.0.250703"
425
+ source = { registry = "https://pypi.org/simple" }
426
+ dependencies = [
427
+ { name = "numpy", version = "2.2.6", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version < '3.11'" },
428
+ { name = "numpy", version = "2.3.2", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version >= '3.11'" },
429
+ { name = "types-pytz" },
430
+ ]
431
+ sdist = { url = "https://files.pythonhosted.org/packages/ec/df/c1c51c5cec087b8f4d04669308b700e9648745a77cdd0c8c5e16520703ca/pandas_stubs-2.3.0.250703.tar.gz", hash = "sha256:fb6a8478327b16ed65c46b1541de74f5c5947f3601850caf3e885e0140584717", size = 103910, upload-time = "2025-07-02T17:49:11.667Z" }
432
+ wheels = [
433
+ { url = "https://files.pythonhosted.org/packages/75/cb/09d5f9bf7c8659af134ae0ffc1a349038a5d0ff93e45aedc225bde2872a3/pandas_stubs-2.3.0.250703-py3-none-any.whl", hash = "sha256:a9265fc69909f0f7a9cabc5f596d86c9d531499fed86b7838fd3278285d76b81", size = 154719, upload-time = "2025-07-02T17:49:10.697Z" },
434
+ ]
435
+
422
436
  [[package]]
423
437
  name = "pathspec"
424
438
  version = "0.12.1"
@@ -533,12 +547,12 @@ wheels = [
533
547
 
534
548
  [[package]]
535
549
  name = "turingdb"
536
- version = "0.2.1"
537
550
  source = { editable = "." }
538
551
  dependencies = [
539
552
  { name = "httpx" },
540
553
  { name = "orjson" },
541
554
  { name = "pandas" },
555
+ { name = "pandas-stubs" },
542
556
  ]
543
557
 
544
558
  [package.dev-dependencies]
@@ -552,6 +566,7 @@ requires-dist = [
552
566
  { name = "httpx", specifier = ">=0.28.1" },
553
567
  { name = "orjson", specifier = ">=3.11.1" },
554
568
  { name = "pandas", specifier = ">=2.3.1" },
569
+ { name = "pandas-stubs", specifier = ">=2.3.0.250703" },
555
570
  ]
556
571
 
557
572
  [package.metadata.requires-dev]
@@ -560,6 +575,15 @@ dev = [
560
575
  { name = "ruff", specifier = ">=0.12.8" },
561
576
  ]
562
577
 
578
+ [[package]]
579
+ name = "types-pytz"
580
+ version = "2025.2.0.20250809"
581
+ source = { registry = "https://pypi.org/simple" }
582
+ sdist = { url = "https://files.pythonhosted.org/packages/07/e2/c774f754de26848f53f05defff5bb21dd9375a059d1ba5b5ea943cf8206e/types_pytz-2025.2.0.20250809.tar.gz", hash = "sha256:222e32e6a29bb28871f8834e8785e3801f2dc4441c715cd2082b271eecbe21e5", size = 10876, upload-time = "2025-08-09T03:14:17.453Z" }
583
+ wheels = [
584
+ { url = "https://files.pythonhosted.org/packages/db/d0/91c24fe54e565f2344d7a6821e6c6bb099841ef09007ea6321a0bac0f808/types_pytz-2025.2.0.20250809-py3-none-any.whl", hash = "sha256:4f55ed1b43e925cf851a756fe1707e0f5deeb1976e15bf844bcaa025e8fbd0db", size = 10095, upload-time = "2025-08-09T03:14:16.674Z" },
585
+ ]
586
+
563
587
  [[package]]
564
588
  name = "typing-extensions"
565
589
  version = "4.14.1"
turingdb-0.2.1/main.py DELETED
@@ -1,6 +0,0 @@
1
- def main():
2
- print("Hello from src!")
3
-
4
-
5
- if __name__ == "__main__":
6
- main()
File without changes
File without changes
File without changes