Skip to main content

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(),
)
  • config may be a callable, read whenever a client is built, for apps whose settings change at runtime. It must not raise before sign-in; leave org_id unset and org-scoped calls raise ProvablyConfigError.
  • tokens is any object with load(), save(tokens) and clear_refresh_token() (see provably.TokenStore). Rotated tokens are written back to it, together with the OAuth client they were issued to.
  • egress is 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

Release files for provably-sdk 0.3.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for provably-sdk 0.3.2
File Size Uploaded
provably_sdk-0.3.2.tar.gz 68.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for provably-sdk 0.3.2
File Interpreter ABI Platform
provably_sdk-0.3.2-py3-none-any.whl Python 3 none any Details

Total release size: 93.9 kB

Release files / provably_sdk-0.3.2.tar.gz

Download URL provably_sdk-0.3.2.tar.gz
Size 68.0 kB
Tags Source
SHA-256 checksum
How to use checksums
463f3f6da5ccdba8e8f905297a209ca3208652e6d1ae71dba87441a1855c8206
BLAKE2b-256 checksum
How to use checksums
64eaf7691721076846e1ef3e4d25d2faba9cf06c841feb3f9067cd9e21419823
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 24, 2026.

Transparency log

Release files / provably_sdk-0.3.2-py3-none-any.whl

Download URL provably_sdk-0.3.2-py3-none-any.whl
Size 26.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6ce9c253133f90c219f36934ab8244b9e8d57e6a91dd6407c72ea3786b40115b
BLAKE2b-256 checksum
How to use checksums
d029b353d8bb38a597b41a68bf988aa049d306bb64a045613e8cb19836ed3f01
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 24, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.3.2 This release

2 release files

0.3.1

2 release files

0.3.0

1 release file

0.1.1

1 release file

0.1.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page