Skip to main content

TrustLint

PyPI version Python versions PyPI provenance

Offline Python compliance linter for AI agents. 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. No API key is required for local checks.

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, use the ComplyEdge Python SDK. The record holds, for every decision, a timestamp, a keyed hash of the text and an event_id, plus the rule and the law when a phrase rule or the injection check fired, never the text itself. A wider-review block does not cite an article.

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.2

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.2
File Size Uploaded Provenance Actions
trustlint-2.2.2.tar.gz 116.8 kB With provenance Details for trustlint-2.2.2.tar.gz

Built distribution (wheel)

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

Total release size: 298.6 kB

Release files / trustlint-2.2.2.tar.gz

Download URL trustlint-2.2.2.tar.gz
Size 116.8 kB
Tags Source
SHA-256 checksum
How to use checksums
9daeb688fe545914c26321158c27402fd9ece9862dd71ff5d602794d473ebeb5
BLAKE2b-256 checksum
How to use checksums
e9b4396944f7056007b81f3b5d5662a830b5c9ca41fe77bcb1572c508d90f2a7
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 17, 2026.

Transparency log

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

Download URL trustlint-2.2.2-py3-none-any.whl
Size 181.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ac2d777c7462856c0f2e79fa99924d8b6ea9b6cd66773a9c24253f0b58ad3ef4
BLAKE2b-256 checksum
How to use checksums
afc98cb6508d705a3fe754d170bdd29fa8b602c2792dfe4b99376cebc8d1e51c
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 17, 2026.

Transparency log

Security for trustlint 2.2.2

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.2.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 17, 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