Skip to main content

Python client for StatelyDB API

Project description

StatelyDB SDK for Python

This is the Python SDK for StatelyDB. StatelyDB is a document database built on top of DynamoDB. It uses Elastic Schema to allow you to update your data model at any time, with automatic backwards and forwards compatibility.

Getting started:

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

    # Properly close the client to release
    # any network connections and resources.
    await client.close()

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.30.0.tar.gz (46.8 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.30.0-py3-none-any.whl (73.8 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for statelydb-0.30.0.tar.gz
Algorithm Hash digest
SHA256 a1f088bc6d4070b6e8124723d1b533d93adf09d9bc53f33be1c4c817e003e0c0
MD5 495c49cfb112929006f743a6038f20bd
BLAKE2b-256 791616f9687419be1c6c036406835bafc4a4bbd46287654b08fcd488e949cbc2

See more details on using hashes here.

Provenance

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

File metadata

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

File hashes

Hashes for statelydb-0.30.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4e1fcd95a98b7961c4fb79360fb02f4a3098356c2ca0dfe23cc6b789bf26d6a5
MD5 d056ef66c620cb81da3edfe25c3986be
BLAKE2b-256 322c087c95e142efb324c35d34f3fd88e03692f3439953d338e3e390bf9cfd3e

See more details on using hashes here.

Provenance

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