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.2.1.tar.gz (22.8 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.2.1-py3-none-any.whl (26.5 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for entdb_sdk-0.2.1.tar.gz
Algorithm Hash digest
SHA256 49544aea4637ded6a77a2648d3e10cbc94530b48808fb75aea4c9331f5c72a98
MD5 5af8f56e3208016e001601e86a10ebfb
BLAKE2b-256 90a11a670c8084f4f76c1073bd63f4e5724332a06f1b5bfe2b8a8b92254eae19

See more details on using hashes here.

Provenance

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

File metadata

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

File hashes

Hashes for entdb_sdk-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 ed52521353afcd07bff615a56c69edcf050546229797c24e50b4af3f1355c9da
MD5 c07ef8120c32c88258a17885f117aee1
BLAKE2b-256 2d0223aafebb9f5c71dfe50dd4cf84926ee01bb24b3ff6d6cc093b44118e601c

See more details on using hashes here.

Provenance

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