Skip to main content

TrustLint

PyPI version Python versions PyPI provenance

Offline Python compliance linter for AI agents: EU AI Act Article 5 and Article 50 (and related corpus rules). Scans text against its bundled TrustLint rule set. No API key is required for local checks.

TrustLint checks prompts and answers against AI laws before they ship: EU AI Act Article 5 and Article 50 and NYC Local Law 144, plus GDPR, HIPAA, SOX, PCI DSS and COPPA rules.

Install

pip install trustlint

The wheel includes its rule set, so it does not need a local rules/ directory. TrustLint reads, in order: --rules-dir, a rules/regulations folder in the current directory or above it, then the bundled rules. Update the rules by upgrading the package (pip install -U trustlint).

Quick Start

trustlint check --text "Deploy social credit score for citizens"

Use trustlint check prompt.txt to scan a file, or trustlint rules list to inspect the available rules.

Hosted API vs. Offline Linter

trustlint check and trustlint rules list run locally, need no API key and record nothing. trustlint scan with COMPLYEDGE_API_KEY sends the text to the hosted check (ce_eu_ keys to eu.api.complyedge.io, ce_ keys to api.complyedge.io), which writes an audit record. For the hosted check and its audit record (for every decision a timestamp, a keyed hash of the text and an event_id, plus the rule and the law named when a phrase rule or the injection check fired. A wider-review block does not cite an article; never the text itself), use the ComplyEdge Python SDK.

Scope

TrustLint is an offline linter. Its Python engine runs the regex conditions of the bundled rule corpus and applies the sanctions rules' effective-window and carve-out state; semantic conditions in the rule files are not run. It does not replace the hosted ComplyEdge API when an application needs runtime policy enforcement and an evidence trail.

License

Apache-2.0, ComplyEdge

Metadata

Release files for trustlint 2.2.1

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

Source distribution (sdist)

Source distribution for trustlint 2.2.1
File Size Uploaded Provenance Actions
trustlint-2.2.1.tar.gz 116.8 kB With provenance Details for trustlint-2.2.1.tar.gz

Built distribution (wheel)

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

Total release size: 298.6 kB

Release files / trustlint-2.2.1.tar.gz

Download URL trustlint-2.2.1.tar.gz
Size 116.8 kB
Tags Source
SHA-256 checksum
How to use checksums
1b8d98c715b96a5cae99c4422e355982bb6ae13d2bc448c66d6c2d13f8f5dec7
BLAKE2b-256 checksum
How to use checksums
da5ccde507e4ebd826e070395b0caf504d533a3726702db1ae40975ddda3c7f8
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 12, 2026.

Transparency log

Release files / trustlint-2.2.1-py3-none-any.whl

Download URL trustlint-2.2.1-py3-none-any.whl
Size 181.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
61afdc899fe1af2a78bdebe42f8e9d3e1da1b61822ce314d3b786d081618ad68
BLAKE2b-256 checksum
How to use checksums
1ab83a711349caee8f8f0096615aae1675125a0834c9d9969231b1af84e2e125
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 12, 2026.

Transparency log

Security for trustlint 2.2.1

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 trustlint-2.2.1.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 12, 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