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

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

parsethis_ai-0.2.0.tar.gz (7.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

parsethis_ai-0.2.0-py3-none-any.whl (7.5 kB view details)

Uploaded Python 3

File details

Details for the file parsethis_ai-0.2.0.tar.gz.

File metadata

  • Download URL: parsethis_ai-0.2.0.tar.gz
  • Upload date:
  • Size: 7.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.14.3

File hashes

Hashes for parsethis_ai-0.2.0.tar.gz
Algorithm Hash digest
SHA256 31c2903c4caef65d9645ced402db1b00fcc02504583641385b98d684c30f8ff5
MD5 0943b7b81707d2d53440c34ed8c90535
BLAKE2b-256 0af95fd74132d3f25e34f82c2a4be428f627affa514281a73804d38bdd946393

See more details on using hashes here.

File details

Details for the file parsethis_ai-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: parsethis_ai-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 7.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.14.3

File hashes

Hashes for parsethis_ai-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6dadb9791be992c69c7c788e36848374f5913751cd98b1bf2423386537765849
MD5 e9aef3cc91e361ef3db3d54118b22b72
BLAKE2b-256 6d9a7d3573037f8f7182ee8867799b0bcfe5c9ff7712298bf7890a84b2f460e6

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page