Skip to main content

b4n1-audit — Python SDK

PyPI Python Downloads License

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

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

Built distribution (wheel)

Table of built distributions (wheels) for b4n1-audit 0.1.2
File Interpreter ABI Platform Actions
b4n1_audit-0.1.2-py3-none-any.whl Python 3 none any Details for b4n1_audit-0.1.2-py3-none-any.whl

Release files / b4n1_audit-0.1.2-py3-none-any.whl

Download URL b4n1_audit-0.1.2-py3-none-any.whl
Size 37.6 MB
Tags Python 3
SHA-256 checksum
How to use checksums
3dcd8179b41207c8c71a595207718e554c5d56b17360502309ec7c39f887f320
BLAKE2b-256 checksum
How to use checksums
8f373ba9ff26d658b734636e4aabcd172467ad4b4c69bd7fbf39854712ec0dbb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.3

Security for b4n1-audit 0.1.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.

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.

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