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 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
Release files for provably-sdk 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| provably_sdk-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Release files / provably_sdk-0.1.0-py3-none-any.whl
| Download URL | provably_sdk-0.1.0-py3-none-any.whl |
|---|---|
| Size | 25.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
646089305ad2fbd43079c2580f229a24514bee6cce73583687fb6abe9cded674
|
|
BLAKE2b-256 checksum How to use checksums |
5d3de285a129811b09924a18aa277b7ad0bd8ddaf6dfcb0f57357eb0704ecacd
|
| 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 Sep 23, 2026.
Transparency log