b4n1-audit — Python SDK
Python wrapper for the b4n1-audit engine — a security and code-quality
scanner that ships as a single precompiled binary. The binary is bundled per
platform inside the wheel; there is nothing to compile and no external runtime.
Install
pip install b4n1-audit
Requires Python ≥ 3.8. Precompiled binary included (Linux x64/arm64, Windows x64).
Quick start
from b4n1audit import run, binary_path, AuditError
print(binary_path()) # resolved binary path (fails loud if none)
report = run("json", ".") # dict/list parsed from JSON output
sarif = run("sarif", ".") # SARIF document as text
run() raises AuditError (with the binary's stderr) when the process exits
non-zero. Binary resolution order: B4N1_AUDIT_BIN → bundled binary → PATH.
What it scans
The SDK exposes the full engine surface, for example:
| Verb | Purpose |
|---|---|
scan / json |
Directory scan, JSON report |
sarif |
SARIF output for CI integration |
cve-check |
Dependency CVE check against an embedded database |
secrets |
API keys / tokens in files and history |
scan-ai |
Prompt injection, MCP and repo-poisoning checks |
memory |
Memory-safety issues (leaks, UB, overflows) |
semgrep |
Fast-path rule engine |
report |
Self-contained HTML report |
# via the bundled binary directly
python -c "from b4n1audit import binary_path; import sys; print(binary_path())"
$(python -c "from b4n1audit import binary_path; print(binary_path())") scan .
License
Distributed under the Business Source License 1.1 (BUSL-1.1) plus an EULA for the bundled binary. Source code is proprietary.
Metadata
Release files for b4n1-audit 0.1.6
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| b4n1_audit-0.1.6-py3-none-any.whl | Python 3 | none | any | Details for b4n1_audit-0.1.6-py3-none-any.whl |
Release files / b4n1_audit-0.1.6-py3-none-any.whl
| Download URL | b4n1_audit-0.1.6-py3-none-any.whl |
|---|---|
| Size | 68.2 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
22ed7101e41e9a86720fe984b4117c0eb6eb96146361e626c578ef687e45371e
|
|
BLAKE2b-256 checksum How to use checksums |
7dd594c26c835ca2cfac73275bf0b3b115c62d773d134819c382708865f7b002
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.10.12
|
Security for b4n1-audit 0.1.6
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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
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.