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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file statelydb-0.26.1.tar.gz.
File metadata
- Download URL: statelydb-0.26.1.tar.gz
- Upload date:
- Size: 44.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8876947d11bd174897e61a223df5d51a4663c1d15becfee7bc0d9ec69a75a1ad
|
|
| MD5 |
2b857568a8e15709c4201681805753db
|
|
| BLAKE2b-256 |
b1f44afe4e5654770f7da7520d8fdc093d399e798320e854b55808111b7d1341
|
Provenance
The following attestation bundles were made for statelydb-0.26.1.tar.gz:
Publisher:
publish-python-sdk.yaml on StatelyCloud/stately
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
statelydb-0.26.1.tar.gz -
Subject digest:
8876947d11bd174897e61a223df5d51a4663c1d15becfee7bc0d9ec69a75a1ad - Sigstore transparency entry: 249096136
- Sigstore integration time:
-
Permalink:
StatelyCloud/stately@4abee8cfafe90ccd5f0187ebce431494b8df8147 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/StatelyCloud
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
self-hosted -
Publication workflow:
publish-python-sdk.yaml@4abee8cfafe90ccd5f0187ebce431494b8df8147 -
Trigger Event:
push
-
Statement type:
File details
Details for the file statelydb-0.26.1-py3-none-any.whl.
File metadata
- Download URL: statelydb-0.26.1-py3-none-any.whl
- Upload date:
- Size: 72.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ba01cce39349e455fa3641cb451ad563533f50e9be972e1cd5c3c31bb1097292
|
|
| MD5 |
c89b146daf4f95b5d198cee9e99b5798
|
|
| BLAKE2b-256 |
8e87a483d4905a1fc661344f008f67e42a2517f0936fd11c78dfe330bab7c50d
|
Provenance
The following attestation bundles were made for statelydb-0.26.1-py3-none-any.whl:
Publisher:
publish-python-sdk.yaml on StatelyCloud/stately
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
statelydb-0.26.1-py3-none-any.whl -
Subject digest:
ba01cce39349e455fa3641cb451ad563533f50e9be972e1cd5c3c31bb1097292 - Sigstore transparency entry: 249096137
- Sigstore integration time:
-
Permalink:
StatelyCloud/stately@4abee8cfafe90ccd5f0187ebce431494b8df8147 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/StatelyCloud
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
self-hosted -
Publication workflow:
publish-python-sdk.yaml@4abee8cfafe90ccd5f0187ebce431494b8df8147 -
Trigger Event:
push
-
Statement type: