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.1.0.tar.gz (5.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.1.0-py3-none-any.whl (8.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: qorami-1.1.0.tar.gz
  • Upload date:
  • Size: 5.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.1.0.tar.gz
Algorithm Hash digest
SHA256 5d1c00d1b0a8446b0ac9bd2a38401837e61faf88a51f6ae5beb8beba2dbe78b2
MD5 7c0038e45fd16fcf7754c71287dd8fd6
BLAKE2b-256 14ab2d1afc043712bec8aec1614b7e568aabcabf893edc0cfc231c8407b8bfd2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: qorami-1.1.0-py3-none-any.whl
  • Upload date:
  • Size: 8.4 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.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5be17e2ad0d43d5d1fa24345e0f588c59d986c7b388c0acd4dcac64c2fad0169
MD5 7e032586890d1dd137b6f03f7943873c
BLAKE2b-256 a3755997efc25414b76eb5b6d136e536671772295ebf019a057374f90403ff61

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