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.18.1.tar.gz (41.3 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.18.1-py3-none-any.whl (69.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: statelydb-0.18.1.tar.gz
  • Upload date:
  • Size: 41.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for statelydb-0.18.1.tar.gz
Algorithm Hash digest
SHA256 be4d2618ea34f33a97f4f3a9bfe3c02b5bd9e2969b5b1ea19e71e9f8ec47b110
MD5 201587942b1bb29192553a39e89c730e
BLAKE2b-256 e80d297a7d16e760e93d078d6d572d984c93a0e8eb0bfc8e25a9eb7cc2fb9c1f

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: statelydb-0.18.1-py3-none-any.whl
  • Upload date:
  • Size: 69.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for statelydb-0.18.1-py3-none-any.whl
Algorithm Hash digest
SHA256 a696e218b341e58fdfa9fd406eb23b0f325106414b3b94d9900c6e7bddfd16aa
MD5 562673b59d04e4b842b492691b3a6ebc
BLAKE2b-256 4f319b89c35b8cb1806be675b7f2e0e799e8a4284568451e3d8d63c905e6b8fe

See more details on using hashes here.

Provenance

The following attestation bundles were made for statelydb-0.18.1-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