Skip to main content

opencomplai

License: AGPL-3.0 PyPI Python

The convenience meta-package for Opencomplai — AI compliance for your AI systems: the EU AI Act, and a NIST AI RMF 1.0 view derived from the same evidence. 16 frameworks by status, evaluated: EU AI Act (5 rows: mapping not yet reviewed), NIST AI RMF 1.0 (9 rows: mapping not yet reviewed), ISO/IEC 42001:2023 AI management system (3 rows: mapping not yet reviewed), ISO/IEC 27090:2026 AI security guidance (4 rows: mapping not yet reviewed), ISO/IEC 27001:2022 information security management (118 rows: mapping not yet reviewed), SOC 2 Trust Services Criteria (not a SOC 2 report) (61 rows: mapping not yet reviewed), NIS2 Directive (EU) 2022/2555 cybersecurity measures (21 rows: mapping not yet reviewed), DORA Regulation (EU) 2022/2554 digital operational resilience (37 rows: mapping not yet reviewed), EBA Guidelines on ICT, outsourcing and loan origination (25 rows: mapping not yet reviewed), EIOPA Opinion on AI governance and risk management (8 rows: mapping not yet reviewed), GDPR Regulation (EU) 2016/679, duties relevant to AI systems (21 rows: mapping not yet reviewed), Cyber Resilience Act Regulation (EU) 2024/2847 (63 rows: mapping not yet reviewed), ETSI EN 304 223 baseline cyber security for AI (72 rows: mapping not yet reviewed), ISO/IEC 42005:2025 AI system impact assessment (20 rows: mapping not yet reviewed), ISO/IEC 23894:2023 AI risk management guidance (23 rows: mapping not yet reviewed); beta: UK agentic AI controls (FCA-aligned) (8 rows: mapping not yet reviewed). Installing opencomplai gives you both the risk engine and the command-line tool in one step.

Not sure whether the EU AI Act applies to your AI system? Try the free EU AI Act checker: rules-based, a few minutes, not legal advice.

Install

pip install opencomplai

This installs:

  • opencomplai-core — the deterministic, rule-based EU AI Act risk engine and code-corroboration scanner.
  • opencomplai-cli — the opencomplai command-line tool.

Quick start

Command line

opencomplai init      # scaffold a system-manifest.json
opencomplai scan      # corroborate manifest against code
opencomplai check     # run the compliance gate

Python SDK

from opencomplai import assess, AssessmentInput, ModelMetadata

result = assess(AssessmentInput(
    model=ModelMetadata(
        name="my-model",
        version="1.0.0",
        modality="text",
        use_case="customer support chatbot",
        deployment_context="production",
    )
))
print(result.risk_level)

Public API re-exported from opencomplai: assess, AssessmentInput, ModelMetadata, RiskLevel, RiskResult, RuleResult, ScanResult, ScanStatusArtifact, SystemManifest, and, for assessing several frameworks side by side, evaluate_targets, resolve_targets, FRAMEWORKS, FrameworkPack, FrameworkReport and GapReport.

Runtime events

RuntimeReporter records decisions, out-of-mandate actions, metrics and incidents of a running system, keeps them in a local buffer file and sends them in batches. Only hashes and metadata leave the machine: the tool input is hashed, never stored or sent.

from opencomplai import RuntimeReporter

with RuntimeReporter("support-bot") as reporter:
    reporter.decision(
        "support-bot", "refund_order", "success", {"order_ref": "ord_7Hq2xK9mWb4vTz1L"}
    )
    reporter.metric("latency_ms", 182.5, unit="ms")

It sends with OPENCOMPLAI_API_KEY and OPENCOMPLAI_DASHBOARD_URL, the same pair opencomplai push uses; without them it only buffers. Use one buffer file per system and one process per file, and keep .opencomplai/runtime-events.jsonl* out of version control (the same folder holds signed records you do commit). See the SDK reference for the buffer, the retries and the event format.

Optional: AI intent plugin

For optional intent analysis of code callsites (it includes a deterministic matcher that needs no download; local GGUF models need the [deep] extra), also install opencomplai-ai:

pip install opencomplai-ai
opencomplai scan --ai-intent   # deterministic matcher (codebert-onnx), no download

scan --ai-intent and scan --propose both use the deterministic matcher unless you pass --ai-model (and scan --ai-intent also honours a model saved with opencomplai ai configure). A local GGUF LLM such as qwen2.5-coder-1.5b is opt-in and needs pip install 'opencomplai-ai[deep]'.

Documentation

Full guides, SDK reference, and the EU AI Act concepts at docs.opencomplai.com.

License

AGPL-3.0-only. See LICENSE.

Metadata

Release files for opencomplai 0.17.0

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

Source distribution (sdist)

Source distribution for opencomplai 0.17.0
File Size Uploaded Provenance Actions
opencomplai-0.17.0.tar.gz 31.5 kB With provenance Details for opencomplai-0.17.0.tar.gz

Built distribution (wheel)

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

Total release size: 48.7 kB

Release files / opencomplai-0.17.0.tar.gz

Download URL opencomplai-0.17.0.tar.gz
Size 31.5 kB
Tags Source
SHA-256 checksum
How to use checksums
e7bb34a4d22a43117476ab0acd1fa210f6c509818a46b18d1d48abbf1e109655
BLAKE2b-256 checksum
How to use checksums
1d9333a0fc192ce17fbb6735ff3a4073b133d54c96a5444f47caf6d43df61547
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Dec 1, 2026.

Transparency log

Release files / opencomplai-0.17.0-py3-none-any.whl

Download URL opencomplai-0.17.0-py3-none-any.whl
Size 17.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d67d33ed540ad6b1af77e6b0d20274cf35d2766f4d3fe4eef894b6f6d45e929e
BLAKE2b-256 checksum
How to use checksums
c6cd3cd35689bab3f5641112bcffbcaec936e51911779c80527d5bcc3ce7be23
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Dec 1, 2026.

Transparency log

Security for opencomplai 0.17.0

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 opencomplai-0.17.0.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 Dec 1, 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