Skip to main content

Python SDK for EntDB tenant-sharded graph database

Project description

EntDB SDK

Python client library for EntDB — a tenant-sharded graph database with nodes and edges.

Install

pip install entdb-sdk

Quick Start

from entdb_sdk import DbClient, NodeTypeDef, field

# Define types
Task = NodeTypeDef(
    type_id=101,
    name="Task",
    fields=(
        field(1, "title", "str", required=True),
        field(2, "status", "enum", enum_values=("todo", "done")),
    ),
)

# Connect and create
async with DbClient("localhost:50051") as db:
    plan = db.atomic("tenant_1", "user:42")
    plan.create(Task, {"title": "My Task", "status": "todo"})
    result = await plan.commit()

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

entdb_sdk-0.3.3.tar.gz (70.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

entdb_sdk-0.3.3-py3-none-any.whl (77.3 kB view details)

Uploaded Python 3

File details

Details for the file entdb_sdk-0.3.3.tar.gz.

File metadata

  • Download URL: entdb_sdk-0.3.3.tar.gz
  • Upload date:
  • Size: 70.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for entdb_sdk-0.3.3.tar.gz
Algorithm Hash digest
SHA256 52a30ce055b3e9aa07f1ec92898c96497ac1621ddb80bb147eb49ceaa4b4afb7
MD5 925df4c6858ec188b1358cb1ec472d3d
BLAKE2b-256 0cf6f3518eb1a31226816db13e2eae8b10ea403b1a7b8f80cd7f387ee9ad7b65

See more details on using hashes here.

Provenance

The following attestation bundles were made for entdb_sdk-0.3.3.tar.gz:

Publisher: release.yml on elloloop/tenant-shard-db

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file entdb_sdk-0.3.3-py3-none-any.whl.

File metadata

  • Download URL: entdb_sdk-0.3.3-py3-none-any.whl
  • Upload date:
  • Size: 77.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for entdb_sdk-0.3.3-py3-none-any.whl
Algorithm Hash digest
SHA256 cf5ae690fc52f551ebabf08f23127f602976bc71d78a2e739e8293f6a509b55a
MD5 026f9211fc19017a3d782ab8160fdf66
BLAKE2b-256 21c6ba76130504c943c95a36f69800dbc458cc6d64a3b65e064237bde7c5183f

See more details on using hashes here.

Provenance

The following attestation bundles were made for entdb_sdk-0.3.3-py3-none-any.whl:

Publisher: release.yml on elloloop/tenant-shard-db

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page