Skip to main content

patronus-api-client

Synchronous, dependency-free client for Python 3.10 or newer. It supports text, URL, public MCP server and file scans and polls accepted jobs automatically.

Install

python -m pip install patronus-api-client

For installation by a coding agent, provide the agent installation instructions.

Quick start

import os

from patronus_api_client import Patronus

client = Patronus(api_key=os.environ["PATRONUS_API_KEY"])
result = client.scan_file("contract.pdf")

Multiple files and optional context can be submitted together:

result = client.scan_files(
    ["contract.pdf", "appendix.txt"],
    text="Review these files as one request.",
)

API and errors

Use scan_text, scan_url, scan_mcp_server, scan_file or scan_files for high-level scans. submit and get_job expose the lower-level job API. Findings are returned as dictionaries. PatronusError represents authentication, quota, rate-limit, validation, timeout, transport and protocol failures and exposes kind, status, code, request_id, retry_after and details.

The constructor accepts base_url, timeout and poll_interval. Non-local custom endpoints must use HTTPS.

Release files for patronus-api-client 0.1.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 patronus-api-client 0.1.2
File Size Uploaded
patronus_api_client-0.1.2.tar.gz 6.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for patronus-api-client 0.1.2
File Interpreter ABI Platform
patronus_api_client-0.1.2-py3-none-any.whl Python 3 none any Details

Total release size: 12.3 kB

Release files / patronus_api_client-0.1.2.tar.gz

Download URL patronus_api_client-0.1.2.tar.gz
Size 6.7 kB
Tags Source
SHA-256 checksum
How to use checksums
436de2d7f1611e5482d3f8028fdbaea9c723b0310f2d56ba3d9c08a6c20e3f2f
BLAKE2b-256 checksum
How to use checksums
09f4621a95695f9a4147edc37082d0c96c61fe0cadb238a072d1d92f91ba16b4
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 files / patronus_api_client-0.1.2-py3-none-any.whl

Download URL patronus_api_client-0.1.2-py3-none-any.whl
Size 5.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
314aebee042ae27ac225da6e020e4f7af2efc68e5032515e4ab9945ddeb2ba56
BLAKE2b-256 checksum
How to use checksums
ef3c9118efe91edd8ca2029a3d8063cf2a83a1b2dc1e74131d7b0e39cdb9c9ce
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

This release

0.1.2 This release

2 release files

0.1.0

2 release files

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