tetrix-sdk 0.1.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.
- tetrix_sdk-0.1.1/.gitignore +68 -0
- tetrix_sdk-0.1.1/PKG-INFO +60 -0
- tetrix_sdk-0.1.1/README.md +47 -0
- tetrix_sdk-0.1.1/pyproject.toml +24 -0
- tetrix_sdk-0.1.1/src/tetrix_aidb/__init__.py +62 -0
- tetrix_sdk-0.1.1/src/tetrix_aidb/client.py +767 -0
- tetrix_sdk-0.1.1/src/tetrix_aidb/errors.py +38 -0
- tetrix_sdk-0.1.1/src/tetrix_aidb/protocol.py +29 -0
- tetrix_sdk-0.1.1/src/tetrix_aidb/types.py +354 -0
- tetrix_sdk-0.1.1/tests/Dockerfile +9 -0
- tetrix_sdk-0.1.1/tests/conftest.py +80 -0
- tetrix_sdk-0.1.1/tests/test_auth.py +36 -0
- tetrix_sdk-0.1.1/tests/test_batch.py +45 -0
- tetrix_sdk-0.1.1/tests/test_data_lifecycle.py +62 -0
- tetrix_sdk-0.1.1/tests/test_errors.py +30 -0
- tetrix_sdk-0.1.1/tests/test_health.py +19 -0
- tetrix_sdk-0.1.1/tests/test_iam.py +125 -0
- tetrix_sdk-0.1.1/tests/test_permissions.py +66 -0
- tetrix_sdk-0.1.1/tests/test_rls_isolation.py +60 -0
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
# Go
|
|
2
|
+
bin/
|
|
3
|
+
/aidb
|
|
4
|
+
/tetrixaidb
|
|
5
|
+
*.exe
|
|
6
|
+
*.test
|
|
7
|
+
*.out
|
|
8
|
+
|
|
9
|
+
# Environment
|
|
10
|
+
.env
|
|
11
|
+
.env.*
|
|
12
|
+
!.env.example
|
|
13
|
+
|
|
14
|
+
# OS
|
|
15
|
+
.DS_Store
|
|
16
|
+
Thumbs.db
|
|
17
|
+
|
|
18
|
+
# IDE
|
|
19
|
+
.idea/
|
|
20
|
+
.vscode/
|
|
21
|
+
*.swp
|
|
22
|
+
*.swo
|
|
23
|
+
|
|
24
|
+
# Python
|
|
25
|
+
__pycache__/
|
|
26
|
+
*.py[cod]
|
|
27
|
+
*.egg-info/
|
|
28
|
+
.venv/
|
|
29
|
+
venv/
|
|
30
|
+
dist/
|
|
31
|
+
|
|
32
|
+
# Rust
|
|
33
|
+
target/
|
|
34
|
+
|
|
35
|
+
# Node.js / TypeScript
|
|
36
|
+
node_modules/
|
|
37
|
+
|
|
38
|
+
# Docker volumes
|
|
39
|
+
pgdata/
|
|
40
|
+
meilidata/
|
|
41
|
+
neo4jdata/
|
|
42
|
+
miniodata/
|
|
43
|
+
|
|
44
|
+
# Test output
|
|
45
|
+
coverage.out
|
|
46
|
+
coverage.html
|
|
47
|
+
|
|
48
|
+
# Cookbook local state
|
|
49
|
+
cookbooks/**/.docstore_state.json
|
|
50
|
+
cookbooks/**/.docstore_registry.json
|
|
51
|
+
|
|
52
|
+
# Filesystem object store (generated by embedded mode tests/daemon)
|
|
53
|
+
internal/index/objects/
|
|
54
|
+
|
|
55
|
+
# Embedded frontend build artifacts (populated by make install-aidb, never committed)
|
|
56
|
+
internal/webui/dist/
|
|
57
|
+
|
|
58
|
+
# aidb project config (contains workspace-specific category_id)
|
|
59
|
+
.aidb.yaml
|
|
60
|
+
|
|
61
|
+
# extra references
|
|
62
|
+
reference/
|
|
63
|
+
|
|
64
|
+
# serena
|
|
65
|
+
.serena/
|
|
66
|
+
|
|
67
|
+
# shared-resources
|
|
68
|
+
entities-shared/
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: tetrix-sdk
|
|
3
|
+
Version: 0.1.1
|
|
4
|
+
Summary: TetrixAIDb Python SDK — AI-native database client
|
|
5
|
+
Project-URL: Repository, https://github.com/deskree-inc/tetrix-ee
|
|
6
|
+
License-Expression: MIT
|
|
7
|
+
Requires-Python: >=3.11
|
|
8
|
+
Provides-Extra: dev
|
|
9
|
+
Requires-Dist: pytest-asyncio>=0.24; extra == 'dev'
|
|
10
|
+
Requires-Dist: pytest>=8.0; extra == 'dev'
|
|
11
|
+
Requires-Dist: ruff>=0.9; extra == 'dev'
|
|
12
|
+
Description-Content-Type: text/markdown
|
|
13
|
+
|
|
14
|
+
# TetrixAIDb Python SDK
|
|
15
|
+
|
|
16
|
+
Async Python client for [TetrixAIDb](https://github.com/deskree-inc/tetrix-ee), the AI-native database daemon that unifies vector, keyword, graph, and object storage behind a single binary protocol.
|
|
17
|
+
|
|
18
|
+
## Installation
|
|
19
|
+
|
|
20
|
+
```bash
|
|
21
|
+
pip install tetrix-aidb
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
Requires Python 3.11+.
|
|
25
|
+
|
|
26
|
+
## Quick Start
|
|
27
|
+
|
|
28
|
+
```python
|
|
29
|
+
import asyncio
|
|
30
|
+
from tetrix_aidb import ClientConfig, TetrixClient
|
|
31
|
+
|
|
32
|
+
async def main():
|
|
33
|
+
client = TetrixClient(ClientConfig(
|
|
34
|
+
endpoint="tcp://localhost:7779",
|
|
35
|
+
username="admin",
|
|
36
|
+
password="secret",
|
|
37
|
+
))
|
|
38
|
+
await client.connect()
|
|
39
|
+
|
|
40
|
+
health = await client.health()
|
|
41
|
+
print(f"Status: {health.status}")
|
|
42
|
+
|
|
43
|
+
await client.close()
|
|
44
|
+
|
|
45
|
+
asyncio.run(main())
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
## Features
|
|
49
|
+
|
|
50
|
+
- Async-first API built on `asyncio`
|
|
51
|
+
- TCP, TLS, and Unix socket transports
|
|
52
|
+
- Auth-on-connect with automatic session handling
|
|
53
|
+
- Entity indexing, semantic search, and batch operations
|
|
54
|
+
- IAM operations: organizations, users, teams, permissions
|
|
55
|
+
- Category management
|
|
56
|
+
- Typed request/response models
|
|
57
|
+
|
|
58
|
+
## License
|
|
59
|
+
|
|
60
|
+
MIT
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
# TetrixAIDb Python SDK
|
|
2
|
+
|
|
3
|
+
Async Python client for [TetrixAIDb](https://github.com/deskree-inc/tetrix-ee), the AI-native database daemon that unifies vector, keyword, graph, and object storage behind a single binary protocol.
|
|
4
|
+
|
|
5
|
+
## Installation
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
pip install tetrix-aidb
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
Requires Python 3.11+.
|
|
12
|
+
|
|
13
|
+
## Quick Start
|
|
14
|
+
|
|
15
|
+
```python
|
|
16
|
+
import asyncio
|
|
17
|
+
from tetrix_aidb import ClientConfig, TetrixClient
|
|
18
|
+
|
|
19
|
+
async def main():
|
|
20
|
+
client = TetrixClient(ClientConfig(
|
|
21
|
+
endpoint="tcp://localhost:7779",
|
|
22
|
+
username="admin",
|
|
23
|
+
password="secret",
|
|
24
|
+
))
|
|
25
|
+
await client.connect()
|
|
26
|
+
|
|
27
|
+
health = await client.health()
|
|
28
|
+
print(f"Status: {health.status}")
|
|
29
|
+
|
|
30
|
+
await client.close()
|
|
31
|
+
|
|
32
|
+
asyncio.run(main())
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
## Features
|
|
36
|
+
|
|
37
|
+
- Async-first API built on `asyncio`
|
|
38
|
+
- TCP, TLS, and Unix socket transports
|
|
39
|
+
- Auth-on-connect with automatic session handling
|
|
40
|
+
- Entity indexing, semantic search, and batch operations
|
|
41
|
+
- IAM operations: organizations, users, teams, permissions
|
|
42
|
+
- Category management
|
|
43
|
+
- Typed request/response models
|
|
44
|
+
|
|
45
|
+
## License
|
|
46
|
+
|
|
47
|
+
MIT
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
[build-system]
|
|
2
|
+
requires = ["hatchling"]
|
|
3
|
+
build-backend = "hatchling.build"
|
|
4
|
+
|
|
5
|
+
[project]
|
|
6
|
+
name = "tetrix-sdk"
|
|
7
|
+
version = "0.1.1"
|
|
8
|
+
description = "TetrixAIDb Python SDK — AI-native database client"
|
|
9
|
+
readme = "README.md"
|
|
10
|
+
requires-python = ">=3.11"
|
|
11
|
+
license = "MIT"
|
|
12
|
+
|
|
13
|
+
[project.urls]
|
|
14
|
+
Repository = "https://github.com/deskree-inc/tetrix-ee"
|
|
15
|
+
|
|
16
|
+
[project.optional-dependencies]
|
|
17
|
+
dev = ["pytest>=8.0", "pytest-asyncio>=0.24", "ruff>=0.9"]
|
|
18
|
+
|
|
19
|
+
[tool.hatch.build.targets.wheel]
|
|
20
|
+
packages = ["src/tetrix_aidb"]
|
|
21
|
+
|
|
22
|
+
[tool.ruff]
|
|
23
|
+
target-version = "py311"
|
|
24
|
+
line-length = 100
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
"""TetrixAIDb Python SDK — AI-native database client."""
|
|
2
|
+
|
|
3
|
+
__version__ = "0.1.1"
|
|
4
|
+
|
|
5
|
+
from tetrix_aidb.client import TetrixClient, create_client
|
|
6
|
+
from tetrix_aidb.errors import TetrixError
|
|
7
|
+
from tetrix_aidb.types import (
|
|
8
|
+
Category,
|
|
9
|
+
ClientConfig,
|
|
10
|
+
DeleteBatchResponse,
|
|
11
|
+
Entity,
|
|
12
|
+
EntityContent,
|
|
13
|
+
HealthResponse,
|
|
14
|
+
IndexBatchItem,
|
|
15
|
+
IndexBatchOptions,
|
|
16
|
+
IndexBatchResponse,
|
|
17
|
+
IndexBatchResultItem,
|
|
18
|
+
ListCategoriesResponse,
|
|
19
|
+
ListEntityCategoriesResponse,
|
|
20
|
+
ListOrgsResponse,
|
|
21
|
+
ListPermissionsResponse,
|
|
22
|
+
ListTeamMembersResponse,
|
|
23
|
+
ListTeamsResponse,
|
|
24
|
+
ListUsersResponse,
|
|
25
|
+
MetricsResponse,
|
|
26
|
+
Organization,
|
|
27
|
+
Permission,
|
|
28
|
+
RelationRef,
|
|
29
|
+
Team,
|
|
30
|
+
TeamMember,
|
|
31
|
+
User,
|
|
32
|
+
)
|
|
33
|
+
|
|
34
|
+
__all__ = [
|
|
35
|
+
"TetrixClient",
|
|
36
|
+
"create_client",
|
|
37
|
+
"Category",
|
|
38
|
+
"ClientConfig",
|
|
39
|
+
"DeleteBatchResponse",
|
|
40
|
+
"Entity",
|
|
41
|
+
"EntityContent",
|
|
42
|
+
"HealthResponse",
|
|
43
|
+
"IndexBatchItem",
|
|
44
|
+
"IndexBatchOptions",
|
|
45
|
+
"IndexBatchResponse",
|
|
46
|
+
"IndexBatchResultItem",
|
|
47
|
+
"ListCategoriesResponse",
|
|
48
|
+
"ListEntityCategoriesResponse",
|
|
49
|
+
"ListOrgsResponse",
|
|
50
|
+
"ListPermissionsResponse",
|
|
51
|
+
"ListTeamMembersResponse",
|
|
52
|
+
"ListTeamsResponse",
|
|
53
|
+
"ListUsersResponse",
|
|
54
|
+
"MetricsResponse",
|
|
55
|
+
"Organization",
|
|
56
|
+
"Permission",
|
|
57
|
+
"RelationRef",
|
|
58
|
+
"Team",
|
|
59
|
+
"TeamMember",
|
|
60
|
+
"TetrixError",
|
|
61
|
+
"User",
|
|
62
|
+
]
|