Python client SDK for the Dashtro CMS API
Project description
dashtro-client
Python client SDK for the Dashtro CMS
API — scoped, API-key-authenticated access to a project's documents and
realtime database from external apps (/api/sdk/* on your Dashtro instance).
Install
pip install dashtro-client
Usage
from dashtro_client import DashtroClient
client = DashtroClient(
base_url="https://admin.example.com",
project_id="<project-id>",
api_key="<api-key>",
workspace="production", # optional, defaults to "production"
cache_ttl=60, # optional, seconds, defaults to 60
)
post = client.get_document("blog-posts", "<document-id>")
all_posts = client.get_all_documents("blog-posts")
# Realtime database
client.rtdb.set("/counters/views", 1)
client.close() # or: with DashtroClient(...) as client: ...
An AsyncDashtroClient/AsyncRtdbClient pair with the same API (awaited,
aclose() instead of close()) is available for asyncio code.
API keys are issued and scoped (per collection, read/write) from your Dashtro instance's settings page.
License
ISC
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 dashtro_client-0.2.1.tar.gz.
File metadata
- Download URL: dashtro_client-0.2.1.tar.gz
- Upload date:
- Size: 3.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
95877f3017d3944f811de5b69a7fcbb2c2c4f690b744856ec09feb5af5ea402e
|
|
| MD5 |
38df125cebbfe4bc1c2f0f969f17146c
|
|
| BLAKE2b-256 |
d0cba23f5802b8d80e54bbd65f7815d2ddc2491f68a3d7c2fe66e7bfa9e540b7
|
Provenance
The following attestation bundles were made for dashtro_client-0.2.1.tar.gz:
Publisher:
build-image.yml on 1atharvad/dashtro
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
dashtro_client-0.2.1.tar.gz -
Subject digest:
95877f3017d3944f811de5b69a7fcbb2c2c4f690b744856ec09feb5af5ea402e - Sigstore transparency entry: 2212845774
- Sigstore integration time:
-
Permalink:
1atharvad/dashtro@3d35060b5fe68440e007d30fcea13adcef83cab0 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/1atharvad
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
build-image.yml@3d35060b5fe68440e007d30fcea13adcef83cab0 -
Trigger Event:
push
-
Statement type:
File details
Details for the file dashtro_client-0.2.1-py3-none-any.whl.
File metadata
- Download URL: dashtro_client-0.2.1-py3-none-any.whl
- Upload date:
- Size: 3.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ef156a284093ffe08aac3a006585a3ffbb7449b3c830385e9afcc9dc2a956a02
|
|
| MD5 |
ab6b86a531ff3c589acf37b0733b6759
|
|
| BLAKE2b-256 |
0894cde9fd6cf0a2e01e1b97053ff71c4a6766868df51c4d333abc69d8779e1b
|
Provenance
The following attestation bundles were made for dashtro_client-0.2.1-py3-none-any.whl:
Publisher:
build-image.yml on 1atharvad/dashtro
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
dashtro_client-0.2.1-py3-none-any.whl -
Subject digest:
ef156a284093ffe08aac3a006585a3ffbb7449b3c830385e9afcc9dc2a956a02 - Sigstore transparency entry: 2212845869
- Sigstore integration time:
-
Permalink:
1atharvad/dashtro@3d35060b5fe68440e007d30fcea13adcef83cab0 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/1atharvad
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
build-image.yml@3d35060b5fe68440e007d30fcea13adcef83cab0 -
Trigger Event:
push
-
Statement type: