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.23.2.tar.gz (42.0 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.23.2-py3-none-any.whl (68.6 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for statelydb-0.23.2.tar.gz
Algorithm Hash digest
SHA256 f90c3fee9abd3187490d6c03f1200fe02869fbc6bc818af7573ae4c5b88a433a
MD5 786107586cc6c391a209462157798f6a
BLAKE2b-256 c693afa70902fc9168b8ea0172a23f55edf05a75d270449c7a88ae1e1171bc10

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: statelydb-0.23.2-py3-none-any.whl
  • Upload date:
  • Size: 68.6 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.23.2-py3-none-any.whl
Algorithm Hash digest
SHA256 bfe4b05a5175c39b13f87ddbec449d9ab79f51bc6de4f9cdc4b660efbe4b7f06
MD5 f4790823981f5227adcc5b62f49a5427
BLAKE2b-256 dcdf9f0e388ba046da990f76e889a13afdf10290f077f11a9e7d746b31049e40

See more details on using hashes here.

Provenance

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