Skip to main content

audithon (Python SDK)

Official Python client for the Audithon audit and Quality Gate API. Zero dependencies (standard library only), Python 3.9+.

Install

pip install audithon

While the package is not yet published to PyPI, install it from this folder:

pip install /path/to/Audithon/sdk/python

Usage

import os
from audithon import AudithonClient, AudithonError

client = AudithonClient(api_key=os.environ["AUDITHON_API_KEY"])

# Encola una auditoría y espera el resultado (hasta 90 s por defecto).
audit = client.create_audit(
    "https://your-app.example.com",
    scope_paths=["/login", "/checkout"],
)
print(audit["scoreBreakdown"]["global"], len(audit["findings"]))

gate = client.evaluate_gate(audit["auditId"], min_score_threshold=75)
if not gate["passed"]:
    raise SystemExit(gate["blockingReasons"])

# Reporte Markdown (Pro) y spec de Playwright (objeto con specContent)
markdown = client.get_report_markdown(audit["auditId"])
spec = client.get_playwright_tests(audit["auditId"])
print(spec["fileName"])

Async/polled audits:

queued = client.create_audit(url, wait_seconds=0)
completed = client.wait_for_audit(queued["auditId"], timeout_seconds=180)

Error handling:

try:
    client.create_audit("https://your-app.example.com")
except AudithonError as error:
    if error.code == "RATE_LIMITED":
        print(error.status, error.body.get("retryAfterSeconds"))

Notes

  • API key creation: Account Settings → CI/CD → API Keys (Free plan includes keys).
  • create_audit declares authorizationConfirmed=True: only audit apps you own or are explicitly authorized to audit.
  • Stored checks (check_ids) need a signed-in session; with an API key use inline checks.
  • The SDK is read-only: it never deploys or mutates your app.

MIT licensed.

Metadata

Release files for audithon 0.1.0

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

Source distribution (sdist)

Source distribution for audithon 0.1.0
File Size Uploaded Provenance Actions
audithon-0.1.0.tar.gz 5.5 kB With provenance Details for audithon-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for audithon 0.1.0
File Interpreter ABI Platform Actions
audithon-0.1.0-py3-none-any.whl Python 3 none any Details for audithon-0.1.0-py3-none-any.whl

Total release size: 11.5 kB

Release files / audithon-0.1.0.tar.gz

Download URL audithon-0.1.0.tar.gz
Size 5.5 kB
Tags Source
SHA-256 checksum
How to use checksums
26a1c2553f855df38ab297b55d1c73af8483ef42b06810cc235e4c1794681184
BLAKE2b-256 checksum
How to use checksums
b54c3412de9179d851b10a1c686443fe9eee37767c8ed0e53ed5fdd5ad0538b6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 29, 2026.

Transparency log

Release files / audithon-0.1.0-py3-none-any.whl

Download URL audithon-0.1.0-py3-none-any.whl
Size 6.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b8ed069b540ef73c858bf6686d4456c7304c957efdd1fe5d0cbb608ac6fb2e3e
BLAKE2b-256 checksum
How to use checksums
0f946b60eeb99a45d0556c6a534e15a67d42f85ae7b3f120c2a6d2691ba66810
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 29, 2026.

Transparency log

Security for audithon 0.1.0

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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for audithon-0.1.0.tar.gz

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 Nov 29, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files Full provenance

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