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-1.9.0.tar.gz (79.5 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-1.9.0-py3-none-any.whl (86.2 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for entdb_sdk-1.9.0.tar.gz
Algorithm Hash digest
SHA256 f20901f1ada3072e5d754a8751b4b1978b013c83967029f53a5648cc58f1cc18
MD5 5e57e4bc4ebab3e10a8c74d9fc8aa6f5
BLAKE2b-256 0b40d02e7b9a02f9fdbb72d0778273f5810cad61fc7b37d7ab76932ea5e4e60d

See more details on using hashes here.

Provenance

The following attestation bundles were made for entdb_sdk-1.9.0.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-1.9.0-py3-none-any.whl.

File metadata

  • Download URL: entdb_sdk-1.9.0-py3-none-any.whl
  • Upload date:
  • Size: 86.2 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-1.9.0-py3-none-any.whl
Algorithm Hash digest
SHA256 530314c18d862ba00df1ae4af877b14d3fd385b777d0f220b2f699672406f028
MD5 f2cd62e553773ffe5fcec3dab132b1d0
BLAKE2b-256 9da60b0c5ef76ff165436ac3fd1139cab5c880b2f06c994eaa588b98ae081462

See more details on using hashes here.

Provenance

The following attestation bundles were made for entdb_sdk-1.9.0-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