opencomplai-core
The compliance engine at the heart of Opencomplai.
opencomplai-core turns a declared system-manifest.json and your source tree into a
deterministic, rule-based EU AI Act risk classification and gap report — no LLM calls,
no network access, fully reproducible. The same evidence also yields a NIST AI RMF 1.0
view, re-projected per subcategory rather than measured separately. 15 frameworks by status, evaluated: EU AI Act, NIST AI RMF 1.0, ISO/IEC 42001:2023 AI management system, ISO/IEC 27090:2026 AI security guidance, ISO/IEC 27001:2022 information security management, SOC 2 Trust Services Criteria (not a SOC 2 report), NIS2 Directive (EU) 2022/2555 cybersecurity measures, DORA Regulation (EU) 2022/2554 digital operational resilience, EBA Guidelines on ICT, outsourcing and loan origination, EIOPA Opinion on AI governance and risk management, GDPR Regulation (EU) 2016/679, duties relevant to AI systems, Cyber Resilience Act Regulation (EU) 2024/2847, ETSI EN 304 223 baseline cyber security for AI, ISO/IEC 42005:2025 AI system impact assessment, ISO/IEC 23894:2023 AI risk management guidance.
It powers risk classification (UnacceptableRiskRule, AnnexIIIClassifierRule,
ProfilingDetectionRule, SubstantialModificationRule) and the code-corroboration scan
engine that cross-checks what a manifest claims against what the code actually does.
Install
pip install opencomplai-core
For PDF report generation, install the optional extra:
pip install "opencomplai-core[reports]"
Most users want the
opencomplaimeta-package (engine + CLI) or theopencomplai-clicommand-line tool. Installopencomplai-coredirectly when you are embedding the engine in your own application.
Quick start
Classify a model from a declared manifest
from opencomplai import assess, AssessmentInput, ModelMetadata
result = assess(AssessmentInput(
model=ModelMetadata(
name="loan-scorer",
version="1.0.0",
modality="tabular",
use_case="creditworthiness scoring for consumer loans",
deployment_context="production",
)
))
print(result.risk_level) # e.g. RiskLevel.HIGH
for rule in result.rule_results:
print(rule.rule_id, "PASS" if rule.passed else "FAIL")
Corroborate a manifest against the code
from pathlib import Path
from opencomplai_core.scan_engine import run_scan
report = run_scan(
repo_root=Path("."),
commit_ref="HEAD",
)
print(report.summary.result) # PASS / CONTROL_FAIL / ...
for finding in report.findings:
print(finding.finding_id, finding.mapped_taxonomy)
The scan engine extracts features from the repository, fuses evidence across detectors, and maps findings to EU AI Act taxonomy (Annex III high-risk areas, Article 5 prohibited practices, profiling under Article 6).
Assess several frameworks side by side
from opencomplai_core import FRAMEWORKS, SystemManifest, evaluate_targets
manifest = SystemManifest(
system_id="loan-scorer",
intended_purpose="creditworthiness scoring for consumer loans",
compliance_targets=["EU_AI_ACT", "NIST_AI_RMF"],
)
reports = evaluate_targets(manifest, ["EU_AI_ACT", "NIST_AI_RMF"], commit_ref="HEAD")
for framework, report in reports.items():
print(FRAMEWORKS[framework].label, len(report.report.articles), "requirements")
FRAMEWORKS lists what this release can assess. 15 frameworks by status, evaluated: EU AI Act, NIST AI RMF 1.0, ISO/IEC 42001:2023 AI management system, ISO/IEC 27090:2026 AI security guidance, ISO/IEC 27001:2022 information security management, SOC 2 Trust Services Criteria (not a SOC 2 report), NIS2 Directive (EU) 2022/2555 cybersecurity measures, DORA Regulation (EU) 2022/2554 digital operational resilience, EBA Guidelines on ICT, outsourcing and loan origination, EIOPA Opinion on AI governance and risk management, GDPR Regulation (EU) 2016/679, duties relevant to AI systems, Cyber Resilience Act Regulation (EU) 2024/2847, ETSI EN 304 223 baseline cyber security for AI, ISO/IEC 42005:2025 AI system impact assessment, ISO/IEC 23894:2023 AI risk management guidance. See
Frameworks.
What you get
- Deterministic risk classification — same inputs always produce the same output, so results are auditable and CI-gateable.
- Code corroboration — detect when a manifest under-declares (claims minimal risk while the code does biometric identification, profiling, etc.).
- Hash-chained evidence — findings carry verifiable evidence items for audit trails.
Documentation
Full docs, the EU AI Act concepts guide, and the SDK reference live at docs.opencomplai.com.
License
AGPL-3.0-only. See LICENSE.
Metadata
Release files for opencomplai-core 0.16.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| opencomplai_core-0.16.0.tar.gz | 986.1 kB | With provenance | Details for opencomplai_core-0.16.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| opencomplai_core-0.16.0-py3-none-any.whl | Python 3 | none | any | Details for opencomplai_core-0.16.0-py3-none-any.whl |
Total release size: 1.6 MB
Release files / opencomplai_core-0.16.0.tar.gz
| Download URL | opencomplai_core-0.16.0.tar.gz |
|---|---|
| Size | 986.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
384e6c1aaaa680f75a783db55ce6c37cb71e7c4c48bbf7972b4f0f229d841cb4
|
|
BLAKE2b-256 checksum How to use checksums |
da4ebc67b6a0b7a19037b4d4e424bc0af758f23c8fe8a713c73cb73107c2fb3a
|
| 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 Nov 16, 2026.
Transparency logRelease files / opencomplai_core-0.16.0-py3-none-any.whl
| Download URL | opencomplai_core-0.16.0-py3-none-any.whl |
|---|---|
| Size | 663.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ba1d98f73240eb1a0b545496a024e8e662a5ddbe4e8fee005a453c11ac7c07dc
|
|
BLAKE2b-256 checksum How to use checksums |
9f4182865b9cf483465c2050a322c7068f68bbf0fd69c448071da2cbd54d2456
|
| 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 Nov 16, 2026.
Transparency logSecurity for opencomplai-core 0.16.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.
Attestation for opencomplai_core-0.16.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 Nov 16, 2026.
Transparency logA 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.