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 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)

Table of built distributions (wheels) for provably-sdk 0.1.0
File Interpreter ABI Platform
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

Release history Release notifications | RSS feed

0.3.2

2 release files

0.3.1

2 release files

0.3.0

1 release file

0.1.1

1 release file

This release

0.1.0 This release

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