Skip to main content

parsethis — Parse Python client

Screen untrusted text before your agent gives it authority. Two ways in:

Direct screening (Hermes, custom agent loops)

from parse_agents import screen_prompt, screen_output, verify_agent_trust

# Third-party content: strict, full pipeline (~2-4s)
result = screen_prompt(retrieved_doc)   # PARSE_API_KEY read from env
if result["recommended_action"] == "block":
    ...

# Owner's own chat message: fast, correction-tolerant (<100ms)
result = screen_prompt(
    message,
    mode="pattern-only",
    metadata={"source_kind": "user", "requester_trust": "owner"},
)

# LLM output before it reaches users, memory, or another tool
screen_output(generated_text)

# A peer agent asking for work
verify_agent_trust(peer_message, source_agent="scheduler-bot")

Transport or HTTP failures raise ParseApiError — decide your own fail posture; the client never swallows a dead screener.

Drop-in interceptor (OpenAI / Anthropic clients)

from openai import OpenAI
from parse_agents import wrap

client = wrap(OpenAI(), parse_api_key="pfa_live_...")
# every chat.completions.create() call is screened automatically

Keys

POST https://www.parsethis.ai/v1/keys/generate returns a free key, no account. Keys renew automatically while in use; idle 30 days = expiry (fails closed, 401). Responses include key_expires_in_days — warn your owner when it drops below 3.

Docs: https://www.parsethis.ai/docs · Latency and limits: https://www.parsethis.ai/skill

Metadata

Release files for parsethis-ai 0.2.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 parsethis-ai 0.2.0
File Size Uploaded Provenance Actions
parsethis_ai-0.2.0.tar.gz 7.8 kB Without provenance Details for parsethis_ai-0.2.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for parsethis-ai 0.2.0
File Interpreter ABI Platform Actions
parsethis_ai-0.2.0-py3-none-any.whl Python 3 none any Details for parsethis_ai-0.2.0-py3-none-any.whl

Total release size: 15.4 kB

Release files / parsethis_ai-0.2.0.tar.gz

Download URL parsethis_ai-0.2.0.tar.gz
Size 7.8 kB
Tags Source
SHA-256 checksum
How to use checksums
31c2903c4caef65d9645ced402db1b00fcc02504583641385b98d684c30f8ff5
BLAKE2b-256 checksum
How to use checksums
0af95fd74132d3f25e34f82c2a4be428f627affa514281a73804d38bdd946393
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.3

Release files / parsethis_ai-0.2.0-py3-none-any.whl

Download URL parsethis_ai-0.2.0-py3-none-any.whl
Size 7.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6dadb9791be992c69c7c788e36848374f5913751cd98b1bf2423386537765849
BLAKE2b-256 checksum
How to use checksums
6d9a7d3573037f8f7182ee8867799b0bcfe5c9ff7712298bf7890a84b2f460e6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.3

Security for parsethis-ai 0.2.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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

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.2.0 This release

2 release files No 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