turingdb 0.1.0__tar.gz → 0.2.1__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.

@@ -0,0 +1,39 @@
1
+ name: Type Check
2
+
3
+ on:
4
+ push:
5
+ branches: [main]
6
+ pull_request:
7
+ branches: [main]
8
+
9
+ jobs:
10
+ type-check:
11
+ runs-on: ubuntu-latest
12
+
13
+ strategy:
14
+ matrix:
15
+ python-version: ["3.10"]
16
+
17
+ steps:
18
+ - name: Checkout code
19
+ uses: actions/checkout@v4
20
+
21
+ - name: Set up Python ${{ matrix.python-version }}
22
+ uses: actions/setup-python@v5
23
+ with:
24
+ python-version: ${{ matrix.python-version }}
25
+
26
+ - name: Install uv
27
+ uses: astral-sh/setup-uv@v3
28
+
29
+ - name: Install dependencies
30
+ run: |
31
+ uv sync --dev
32
+
33
+ - name: Run mypy
34
+ run: |
35
+ uv run mypy ./src
36
+
37
+ - name: Run ruff
38
+ run: |
39
+ uv run ruff check ./src
@@ -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
@@ -2,6 +2,10 @@
2
2
  # Edit at https://www.toptal.com/developers/gitignore?templates=visualstudiocode,python
3
3
 
4
4
  ### Python ###
5
+
6
+ # Automatically generated by hatch version
7
+ src/turingdb/_version.py
8
+
5
9
  # Byte-compiled / optimized / DLL files
6
10
  __pycache__/
7
11
  *.py[cod]
@@ -1,11 +1,11 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: turingdb
3
- Version: 0.1.0
3
+ Version: 0.2.1
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
7
7
  License-File: LICENSE.txt
8
- Requires-Python: >=3.9
8
+ Requires-Python: >=3.10
9
9
  Requires-Dist: httpx>=0.28.1
10
10
  Requires-Dist: orjson>=3.11.1
11
11
  Requires-Dist: pandas>=2.3.1
@@ -1,13 +1,9 @@
1
- [build-system]
2
- requires = ["hatchling"]
3
- build-backend = "hatchling.build"
4
-
5
1
  [project]
6
2
  name = "turingdb"
7
- version = "0.1.0"
3
+ dynamic = ["version"]
8
4
  description = "TuringDB python sdk"
9
5
  readme = "README.md"
10
- requires-python = ">=3.9"
6
+ requires-python = ">=3.10"
11
7
  dependencies = [
12
8
  "httpx>=0.28.1",
13
9
  "orjson>=3.11.1",
@@ -18,7 +14,21 @@ dependencies = [
18
14
  Homepage = "https://github.com/turing-db/turingdb-sdk-python"
19
15
  Repository = "https://github.com/turing-db/turingdb-sdk-python"
20
16
 
17
+ [build-system]
18
+ requires = ["hatchling", "hatch-vcs"]
19
+ build-backend = "hatchling.build"
20
+
21
+ [tool.hatch.build.targets.wheel]
22
+ include = ["src/turingdb/**/*.py", "src/turingdb/**/*.pyi"]
23
+
24
+ [tool.hatch.version]
25
+ source = "vcs"
26
+
27
+ [tool.hatch.build.hooks.vcs]
28
+ version-file = "src/turingdb/_version.py"
29
+
21
30
  [dependency-groups]
22
31
  dev = [
23
- "twine>=6.1.0",
32
+ "mypy>=1.17.1",
33
+ "ruff>=0.12.8",
24
34
  ]
@@ -0,0 +1,18 @@
1
+ from _typeshed import Incomplete
2
+
3
+ class TuringDBException(Exception):
4
+ def __init__(self, message: str) -> None: ...
5
+
6
+ class TuringDB:
7
+ DEFAULT_HEADERS: Incomplete
8
+ host: Incomplete
9
+ def __init__(self, instance_id: str = '', auth_token: str = '', host: str = 'https://engines.turingdb.ai/sdk') -> None: ...
10
+ def list_available_graphs(self) -> list[str]: ...
11
+ def list_loaded_graphs(self) -> list[str]: ...
12
+ def load_graph(self, graph_name: str, raise_if_loaded: bool = True): ...
13
+ def create_graph(self, graph_name: str): ...
14
+ def query(self, query: str): ...
15
+ def set_commit(self, commit: str): ...
16
+ def set_change(self, change: str): ...
17
+ def checkout(self, change: str = 'main', commit: str = 'HEAD'): ...
18
+ def set_graph(self, graph_name: str): ...
@@ -0,0 +1,34 @@
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