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.
When you join the preview program, we'll set you up with a few bits of information:
STATELY_CLIENT_ID- a client identifier so we know what client you are.STATELY_CLIENT_SECRET- a sensitive secret that lets your applications authenticate with the API.- A store ID that identifies which store in your organization you're using.
- Access to our in-depth Getting Started Guide.
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 variables
# STATELY_CLIENT_ID and STATELY_CLIENT_SECRET for your client.
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.10.1.tar.gz.
File metadata
- Download URL: statelydb-0.10.1.tar.gz
- Upload date:
- Size: 36.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ab592e04515dc1107dfc59f91afd1d7ef509f9a6f5100e7f998354addbca4ddb
|
|
| MD5 |
dd11a3c6708c1f53c5786c3208d1f941
|
|
| BLAKE2b-256 |
2b716bacb4c4e69015954912c007e4ac0159c2ff3d5727303182b60dc79d3a77
|
Provenance
The following attestation bundles were made for statelydb-0.10.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.10.1.tar.gz -
Subject digest:
ab592e04515dc1107dfc59f91afd1d7ef509f9a6f5100e7f998354addbca4ddb - Sigstore transparency entry: 151461397
- Sigstore integration time:
-
Permalink:
StatelyCloud/stately@19b47d334af44fda516a4691a3b72fa3b8f7c4a1 -
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@19b47d334af44fda516a4691a3b72fa3b8f7c4a1 -
Trigger Event:
push
-
Statement type:
File details
Details for the file statelydb-0.10.1-py3-none-any.whl.
File metadata
- Download URL: statelydb-0.10.1-py3-none-any.whl
- Upload date:
- Size: 58.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
dd104282dc2c2b55742ba1c9b080b24cbc7eeaa8555fd35f00dd1481ef4b64c7
|
|
| MD5 |
eef94889fab1510738bc50652a118bde
|
|
| BLAKE2b-256 |
37b544af1afcbbe86362f581839830a98daa798ebfa73b4a1adb5437e3e60b18
|
Provenance
The following attestation bundles were made for statelydb-0.10.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.10.1-py3-none-any.whl -
Subject digest:
dd104282dc2c2b55742ba1c9b080b24cbc7eeaa8555fd35f00dd1481ef4b64c7 - Sigstore transparency entry: 151461399
- Sigstore integration time:
-
Permalink:
StatelyCloud/stately@19b47d334af44fda516a4691a3b72fa3b8f7c4a1 -
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@19b47d334af44fda516a4691a3b72fa3b8f7c4a1 -
Trigger Event:
push
-
Statement type: