Skip to main content

Qorami client — a control point between your AI agents and sending email (send / request_human_confirmation / do_not_send).

Project description

qorami

Zero-dependency Python client (standard library only) for Qorami — a control point between your AI agents and sending email. Before each send, the agent asks Qorami, which answers send, request_human_confirmation, or do_not_send.

Install

pip install qorami

Python 3.8+.

Use

import os
from qorami import QoramiClient

qorami = QoramiClient(api_key=os.environ["QORAMI_API_KEY"])

result = qorami.verify(
    recipient="client@example.com",
    subject="Our offer",
    body=email_body,
    policy_profile="sales",
)

if result.next_action_type == "send":
    send_email()                       # allowed
elif result.next_action_type == "request_human_confirmation":
    queue_for_review(result.action_id) # a human approves in the dashboard
# else do_not_send: don't send

A guard(...) helper and status(action_id) (poll after request_human_confirmation) are also available. Get an API key at https://qorami.fr/dashboard/; full reference at https://qorami.fr/docs.

Using Claude Desktop / Cursor / Windsurf or another MCP client? Skip the SDK and run the MCP server: npx qorami-mcp.

MIT

Project details


Download files

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

Source Distribution

qorami-1.0.0.tar.gz (3.5 kB view details)

Uploaded Source

Built Distribution

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

qorami-1.0.0-py3-none-any.whl (3.8 kB view details)

Uploaded Python 3

File details

Details for the file qorami-1.0.0.tar.gz.

File metadata

  • Download URL: qorami-1.0.0.tar.gz
  • Upload date:
  • Size: 3.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.6

File hashes

Hashes for qorami-1.0.0.tar.gz
Algorithm Hash digest
SHA256 4d072a9bfbde63011b0edccb6edcf833a8c27a923e198a8b2a719336c6953b9e
MD5 c0aec6dc5758ae9b825d7a84e64fdf99
BLAKE2b-256 f89516585b10cda289fda23221bed315e859a200b36f7df01c4de76877e3d625

See more details on using hashes here.

File details

Details for the file qorami-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: qorami-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 3.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.6

File hashes

Hashes for qorami-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 cc29e5c9b5cc473a7c0fa7dda3870ef59ff7dd9a860fb64427afbe603ee64d36
MD5 659fe5da904d48995ee05eaef38aed90
BLAKE2b-256 44312c6b2291392c0c223049456839c77bfa4334da07a512824d0b9529b4ed03

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 Pingdom Monitoring Sentry Error logging StatusPage Status page