provably-sdk
Python SDK for the Provably API: OAuth browser sign-in, sandboxes, middlewares, databases, collections, preprocessing, queries and proofs.
pip install provably-sdk
Configure
The SDK reads nothing from the environment or disk. Tell it where the API is, which organisation to act for and where to keep the session:
import uuid
import provably
from provably import MemoryTokenStore, ProvablyConfig
provably.configure(
config=ProvablyConfig(org_id=uuid.UUID("...")), # api_url / app_url default to production
tokens=MemoryTokenStore(),
)
configmay be a callable, read whenever a client is built, for apps whose settings change at runtime. It must not raise before sign-in; leaveorg_idunset and org-scoped calls raiseProvablyConfigError.tokensis any object withload(),save(tokens)andclear_refresh_token()(seeprovably.TokenStore). Rotated tokens are written back to it, together with the OAuth client they were issued to.egressis an optional context manager every HTTP call runs inside, for apps that intercept their own outbound traffic.
Sign in
Each app signs in as its own registered OAuth client, on its own loopback port:
tokens = await provably.browser_login(client_id="my-app", port=8911)
store.save(tokens)
Use
from provably.service import service
sandbox = await service.get_sandbox()
query_id = await service.run_query(middleware_id, collection_id, "SELECT 1")
await service.wait_for_proof_computation(query_id)
Development
uv sync --extra dev
uv run pytest
uv run ruff check . && uv run ruff format --check .
uv run mypy
Metadata
Release files for provably-sdk 0.3.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| provably_sdk-0.3.4.tar.gz | 70.1 kB | With provenance | Details for provably_sdk-0.3.4.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| provably_sdk-0.3.4-py3-none-any.whl | Python 3 | none | any | Details for provably_sdk-0.3.4-py3-none-any.whl |
Total release size: 97.4 kB
Release files / provably_sdk-0.3.4.tar.gz
| Download URL | provably_sdk-0.3.4.tar.gz |
|---|---|
| Size | 70.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
41248069edc674f8a3b9bbfcb7b81f6dd9d52142458eaeb1148ca8d89bcab688
|
|
BLAKE2b-256 checksum How to use checksums |
f578c8e4e2e5437ac2c080af78272ad1785d825c90f9f6a2a6247f8352fe3dae
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 2, 2026.
Transparency logRelease files / provably_sdk-0.3.4-py3-none-any.whl
| Download URL | provably_sdk-0.3.4-py3-none-any.whl |
|---|---|
| Size | 27.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
7c245b2ba67f2f468d5548ce78f69fc4f79dcbf115d23a71d6efcafe232e0bcc
|
|
BLAKE2b-256 checksum How to use checksums |
f152b30c1451ed86454dcbacf130fa8a37c4b6b572d89c53083b660edbd420e1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 2, 2026.
Transparency logSecurity for provably-sdk 0.3.4
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for provably_sdk-0.3.4.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 2, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.