Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

limetry

Python SDK for Limetry agent action governance. Evaluate an action before it runs, then record a privacy-safe audit of what happened.

Install

pip install limetry

Also available on conda-forge after the first PyPI release:

conda install -c conda-forge limetry

Requires Python 3.11 or newer.

The TypeScript equivalent is @limetry/sdk.

Evaluate an action

LIMETRY_API_KEY is a bearer token from limetry setup or your organization. LIMETRY_BASE_URL overrides the default API origin.

from limetry import create_remote_engine, create_slim_action_policy, redact_action_intent
import uuid
from datetime import datetime, timezone

policy = create_slim_action_policy(
    agent_id="checkout-agent",
    allowed_action_types=["http.request"],
    denied_action_types=["deploy"],
    max_cost_minor=100,
    audit_mode="minimal",
)

intent = {
    "intent_id": str(uuid.uuid4()),
    "policy_id": policy["policy_id"],
    "agent_id": "checkout-agent",
    "action_type": "http.request",
    "resource": "https://example.com/orders",
    "issued_at": datetime.now(timezone.utc).isoformat().replace("+00:00", "Z"),
}

engine = create_remote_engine()
result = engine.evaluate_action(intent)
print(result.get("decision"))

safe_for_logs = redact_action_intent(intent)

decision is allow, deny, or approval_required.

Async callers can use create_async_remote_engine() / AsyncRemotePolicyEngine.

Privacy

Do not put API keys, passwords, or chat transcripts in action metadata. Use redact_details and project_intent_for_audit before you store an audit record. The default audit mode keeps a minimized projection.

License

MIT

Metadata

Release files for limetry 1.2.104b3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for limetry 1.2.104b3
File Size Uploaded Provenance Actions
limetry-1.2.104b3.tar.gz 13.9 kB With provenance Details for limetry-1.2.104b3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for limetry 1.2.104b3
File Interpreter ABI Platform Actions
limetry-1.2.104b3-py3-none-any.whl Python 3 none any Details for limetry-1.2.104b3-py3-none-any.whl

Total release size: 29.2 kB

Release files / limetry-1.2.104b3.tar.gz

Download URL limetry-1.2.104b3.tar.gz
Size 13.9 kB
Tags Source
SHA-256 checksum
How to use checksums
d630f1f4dc9225d4a5985cdada29e28f61d448c3412195a5b52e42ab68cb1f12
BLAKE2b-256 checksum
How to use checksums
4b2fa8fdd17abc3dbd0607df6af213ef01f1a0fa43c8e61e3a6ba37776e1f677
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 23, 2026.

Transparency log

Release files / limetry-1.2.104b3-py3-none-any.whl

Download URL limetry-1.2.104b3-py3-none-any.whl
Size 15.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0e5ef96cc94cd49e649ffddf31695c5490fe5c5741d7c69e366d5594d5529a8e
BLAKE2b-256 checksum
How to use checksums
c4af2c61a31620a0bd727cee8634f3b7ce364050ae32809405a497f77a20f162
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 23, 2026.

Transparency log

Security for limetry 1.2.104b3

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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for limetry-1.2.104b3.tar.gz

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 Nov 23, 2026.

Transparency log

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.

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