Skip to main content

Python client for StatelyDB API

Project description

StatelyDB SDK for Python

This is the Python SDK for StatelyDB.

Getting started:

Disclaimer:

We're still in an invite-only preview mode - if you're interested, please reach out to preview@stately.cloud.

Begin by following our Getting Started Guide which will help you define, generate, and publish a DB schema so that it can be used.

Install the SDK
pip install statelydb

Usage:

Create an authenticated client, then import your item types from your generated schema module and use the client!

from schema import Client, MyItem
async def put_my_item() -> None:
    # Create a client. This will use the environment variable
    # STATELY_ACCESS_KEY to read your access key.
    client = Client(store_id=<store-id>)

    # Instantiate an item from your schema
    item = MyItem(name="Jane Doe")

    # put and get the item!
    put_result = await client.put(item)
    get_result = await client.get(MyItem, put_result.key_path())
    assert put_result == get_result

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

statelydb-0.15.0.tar.gz (39.7 kB view details)

Uploaded Source

Built Distribution

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

statelydb-0.15.0-py3-none-any.whl (65.0 kB view details)

Uploaded Python 3

File details

Details for the file statelydb-0.15.0.tar.gz.

File metadata

  • Download URL: statelydb-0.15.0.tar.gz
  • Upload date:
  • Size: 39.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.0.1 CPython/3.12.8

File hashes

Hashes for statelydb-0.15.0.tar.gz
Algorithm Hash digest
SHA256 b953c9f9bedb790c42ed5d7ea9e0d85b9d8157b82d1348a7808cc74675304823
MD5 dbedb6f1a4121503e02b86d7aef43955
BLAKE2b-256 5e406b0c36fdad563531775c8b84c26fb2d8627a842c6e60a20234980157be5a

See more details on using hashes here.

Provenance

The following attestation bundles were made for statelydb-0.15.0.tar.gz:

Publisher: publish-python-sdk.yaml on StatelyCloud/stately

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

File details

Details for the file statelydb-0.15.0-py3-none-any.whl.

File metadata

  • Download URL: statelydb-0.15.0-py3-none-any.whl
  • Upload date:
  • Size: 65.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.0.1 CPython/3.12.8

File hashes

Hashes for statelydb-0.15.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c3812a1f17c0d514cfd241bb3266761498c469cdb42f91427d9e2c6f452196de
MD5 26cf40539dee32c083880cd7dcfd5029
BLAKE2b-256 d57d399c5cce1ee3f9c44e37e2ec009a10d96ae46f1a826b89a0d31b18fbef52

See more details on using hashes here.

Provenance

The following attestation bundles were made for statelydb-0.15.0-py3-none-any.whl:

Publisher: publish-python-sdk.yaml on StatelyCloud/stately

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