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.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.3.0
File Interpreter ABI Platform
provably_sdk-0.3.0-py3-none-any.whl Python 3 none any Details

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

Download URL provably_sdk-0.3.0-py3-none-any.whl
Size 25.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0795ca1d9614c10b8829da977ec4426cad69cf92e7d2076665d8fd56d3fcb379
BLAKE2b-256 checksum
How to use checksums
7f84b62b013653a22d19bba62e8d0dac20d7a3c124b2c2c18116ba7b5560a026
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

This release

0.3.0 This release

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