Blockquote Python SDK
Official client for Blockquote. Requires Python 3.10 or later. No runtime dependencies.
pip install blockquote-agents
import os
import uuid
from blockquote_agents import Blockquote, BlockquoteError
client = Blockquote(api_key=os.getenv("BLOCKQUOTE_API_KEY"))
started = client.start_scan("https://example.com", idempotency_key=str(uuid.uuid4()))
print(started.data, started.headers.get("Retry-After"))
# Wait for Retry-After, then read the returned id.
report = client.get_scan(started.data["id"])
comparison = client.compare_scans(from_id="BASELINE_ID", to_id="NEW_ID")
Each call returns a Response with data, status, and HTTP headers.
BlockquoteError retains data, status, headers, and retry_after. Network errors pass through.
Requests time out after 30 seconds. Set timeout in the constructor to change this.
The client does not retry or poll automatically. Scans can return a cached result or pending status.
Reuse an idempotency key only when you repeat the same scan request.
Public report reads need no key. Account access uses an optional bearer key from your account.
Keys require Pro or Agency. Unattended scan creation can require a paid key with the scan scope.
Human verification still applies where required. Pass turnstile_token when available; the SDK does not obtain or bypass verification.
Pass refresh=True to request a fresh scan with account authentication. Scan quotas still apply.
Read access and comparison output follow your account plan.
See the API reference and OpenAPI document.
Run tests from this package directory:
python3 -m unittest discover -s tests
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file blockquote_agents-0.1.0-py3-none-any.whl.
File metadata
- Download URL: blockquote_agents-0.1.0-py3-none-any.whl
- Upload date:
- Size: 4.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6bc9f6971301e532dc7839fcc7f4ca0760a5ae784a52a923b5531f9db0f1e19d
|
|
| MD5 |
e3aa01c30b504ae9b1ed4b39754dfe43
|
|
| BLAKE2b-256 |
10145e660c5b8f8fad5c8d0e2e46b17a9d3b8dc381b798307186c5c66683fd49
|
Provenance
The following attestation bundles were made for blockquote_agents-0.1.0-py3-none-any.whl:
Publisher:
publish-python.yml on ArneFfm/blockquote-agents
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
blockquote_agents-0.1.0-py3-none-any.whl -
Subject digest:
6bc9f6971301e532dc7839fcc7f4ca0760a5ae784a52a923b5531f9db0f1e19d - Sigstore transparency entry: 2750495860
- Sigstore integration time:
-
Permalink:
ArneFfm/blockquote-agents@0a3dda3de3d043ec73aa0fe8bc0f650c1f3237c2 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/ArneFfm
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-python.yml@0a3dda3de3d043ec73aa0fe8bc0f650c1f3237c2 -
Trigger Event:
workflow_dispatch
-
Statement type: