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.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 patronus-api-client 0.1.0
File Size Uploaded
patronus_api_client-0.1.0.tar.gz 6.7 kB Details

Built distribution (wheel)

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

Total release size: 12.3 kB

Release files / patronus_api_client-0.1.0.tar.gz

Download URL patronus_api_client-0.1.0.tar.gz
Size 6.7 kB
Tags Source
SHA-256 checksum
How to use checksums
d6be697aed913c1614a0f2a9d63652daa31714c96b1a922914d5d64842e265e9
BLAKE2b-256 checksum
How to use checksums
1f0cf5575b3d4aa722bf7472173a0776fa8512201882556bd62dd1dc54424914
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 15, 2026.

Transparency log

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

Download URL patronus_api_client-0.1.0-py3-none-any.whl
Size 5.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
684793926d6d1f66afba2df7ebffc77a538e05a49c61c3b2795c42cea46caea2
BLAKE2b-256 checksum
How to use checksums
879f8ad402e443629d24fd75b9eefd694691aa3e1caac1d043a76abbca240fcd
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 15, 2026.

Transparency log

Release history Release notifications | RSS feed

0.1.2

2 release files

This release

0.1.0 This release

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