Skip to main content

audit-packs-core

PyPI version Python License GitHub Repository

Audit-Packs Banner

audit-packs-core contains the foundational models, normalization logic, git diff parser, and source-to-sink data-flow primitives for the audit-packs ecosystem.

⚠️ IMPORTANT: This is a sub-package of the audit-packs compliance mapping toolkit. It is NOT designed to be run as a standalone CLI tool. If you are looking for the main CLI and GitHub Action scanner execution engine, please install and refer to audit-packs.


📦 Installation

You can install this package via pip if you are writing custom extensions or building on top of the audit-packs data structures:

pip install audit-packs-core

🛠️ API Surface & Modules

Module Key API Exports Description
audit_packs_core.models Finding, ControlFinding, ControlStatus, AdjudicationResult Core compliance structures and type schemas.
audit_packs_core.normalize sarif_to_findings(), extract_rule_confidences() Standardizes engine-specific SARIF JSON outputs into standard Finding instances.
audit_packs_core.diff parse_unified_diff() Compares line numbers between refs to filter PR-changed lines.
audit_packs_core.dataflow extract_data_flows(), flow_confidence() Tracks source-to-sink data flow dependencies (Python/YAML/HCL/JSON).
audit_packs_core.trust TrustPolicy, repo_config_allowed() Repo-config trust gate: controls whether workspace-supplied AST rules, scanner plugins, and model configs are honored (requires AUDIT_ALLOW_REPO_CONFIG opt-in).
audit_packs_core.redact redact_evidence(), mask_evidence(), add_masked_engine() Single chokepoint for redacting secrets from evidence strings before any output sink.

📦 Ecosystem Architecture

audit-packs is built as a modular ecosystem consisting of five Python packages:

Package PyPI Link Role Standalone?
audit-packs pypi Main CLI & Action entrypoint Yes
audit-packs-core pypi Primitives, diff parsing, normalization No
audit-packs-mapping pypi Compliance pack loader & OSCAL exporter No
audit-packs-evidence pypi Evidence collectors & heuristic agents No
audit-packs-ai pypi LLM consensus & confidence scoring No

🔗 Related Resources

📄 License

This library is licensed under the Apache-2.0 License. See the LICENSE file in the main repository for details.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

audit_packs_core-0.9.0.tar.gz (14.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

audit_packs_core-0.9.0-py3-none-any.whl (15.0 kB view details)

Uploaded Python 3

File details

Details for the file audit_packs_core-0.9.0.tar.gz.

File metadata

  • Download URL: audit_packs_core-0.9.0.tar.gz
  • Upload date:
  • Size: 14.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.13

File hashes

Hashes for audit_packs_core-0.9.0.tar.gz
Algorithm Hash digest
SHA256 cbb4f9137cd7ca36ed48dc8c21e37c44bfa3c617ae024f507b665eb903af628a
MD5 197922e4f96aeabaac5ea9d25d43d18e
BLAKE2b-256 ad9f29e10df313771478d82ff165434f319d84188bc83e511c50168687dfee35

See more details on using hashes here.

File details

Details for the file audit_packs_core-0.9.0-py3-none-any.whl.

File metadata

File hashes

Hashes for audit_packs_core-0.9.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0e1a048f3a5dd09bf1d6c9ee6f283d6c971a6c7d29081e58f8b1356b1ce06cfe
MD5 23eae7b52e3b9cc698f62fa5c9a943d3
BLAKE2b-256 0ad47a179913d546b13a57571cf6134c56a1ccc8e9d17951b9e1cd86dd549def

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page