prodcycle
Multi-framework policy-as-code compliance scanner for infrastructure and application code. Scans Terraform, Kubernetes, Docker, .env, and application source against SOC 2, HIPAA, and NIST CSF policies.
Features
- 3 compliance frameworks: SOC 2, HIPAA, NIST CSF
- Automated policy enforcement: Server-side OPA/Rego and Cedar evaluation engines
- Infrastructure scanning: Terraform, Kubernetes manifests, Dockerfiles,
.envfiles - Application code scanning: TypeScript, Python, Go, Java, Ruby
- CI/CD integration: CLI with SARIF output for GitHub Code Scanning
- Programmatic API: Full Python API for custom integrations
- Self-remediation:
gate()function returns actionable remediation prompts
Installation
pip install prodcycle
Quick Start
CLI
# Scan current directory against SOC 2 and HIPAA
prodcycle scan . --framework soc2,hipaa
# Output as SARIF for GitHub Code Scanning
prodcycle scan . --framework soc2 --format sarif --output results.sarif
# Set severity threshold (only report HIGH and above)
prodcycle scan . --framework hipaa --severity-threshold high
# Auto-configure compliance hooks/instructions for your coding agents
# (Claude Code, Cursor, Codex, OpenCode, GitHub Copilot, Gemini CLI)
prodcycle init --agent all
Subcommands: scan (full repo scan), gate (JSON payload from stdin), hook (coding-agent post-edit hook), scans (fetch a scan's status + findings by ID), init (coding-agent + CI setup).
Programmatic API
from prodcycle import scan, gate
# Full Repository Scan
response = scan(
repo_path='/path/to/repo',
frameworks=['soc2', 'hipaa'],
options={
'severityThreshold': 'high',
'failOn': ['critical', 'high'],
}
)
print(f"Found {len(response['findings'])} findings")
print(f"Exit code: {response['exitCode']}")
# Gate function (for coding agents)
result = gate(
files={
'src/config.ts': 'export const DB_PASSWORD = "hardcoded-secret";',
'terraform/main.tf': 'resource "aws_s3_bucket" "data" { }',
},
frameworks=['soc2', 'hipaa'],
)
if not result['passed']:
print('Compliance issues found:')
print(result['prompt']) # Pre-formatted remediation instructions
API Key
An API key is required for production use to authenticate with ProdCycle. Set it via environment variable:
export PRODCYCLE_API_KEY=pc_your_api_key_here
API keys are created in the ProdCycle dashboard — see https://docs.prodcycle.com to get started. To save a key for agent hooks (no env var needed), run prodcycle init --api-key pc_... (writes ~/.config/prodcycle/config.json, readable only by you).
Exit codes
scan, gate, and hook use exit codes designed for CI gates and agent hooks:
| Code | Meaning |
|---|---|
0 |
Pass — no findings at or above the --fail-on threshold (default: critical,high). |
1 |
Findings present — code is not clean. |
2 |
Scanner unavailable or usage error — the scan could not be certified either way (fail-closed). Distinguish this from 1 so CI/agents can treat "fix your code" differently from "investigate the scanner." |
The Claude Code
hookpath is special-cased: a missing/rejected API key or a clean result exits0so the agent is never blocked on setup; violations are returned to the agent as structured feedback.
Requirements
- Python >= 3.12
License
MIT — see LICENSE.
Metadata
Release files for prodcycle 0.6.17
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 |
|---|---|---|---|---|
| prodcycle-0.6.17.tar.gz | 65.5 kB | With provenance | Details for prodcycle-0.6.17.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| prodcycle-0.6.17-py3-none-any.whl | Python 3 | none | any | Details for prodcycle-0.6.17-py3-none-any.whl |
Total release size: 112.8 kB
Release files / prodcycle-0.6.17.tar.gz
| Download URL | prodcycle-0.6.17.tar.gz |
|---|---|
| Size | 65.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5bdc158f4fbb8c58f059ae61a75ea1e28495fda580bc4abccbdedeae4b1b1c65
|
|
BLAKE2b-256 checksum How to use checksums |
317834be2781649e0b1f6b0a0d61238950b95c0f65b608b5b2bd45dece46a793
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
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 Jun 9, 2026.
Transparency logRelease files / prodcycle-0.6.17-py3-none-any.whl
| Download URL | prodcycle-0.6.17-py3-none-any.whl |
|---|---|
| Size | 47.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
7bac56ddb8ec5e3d40b6fbb980bb79cff3717376f88f577af1168c358551ce2b
|
|
BLAKE2b-256 checksum How to use checksums |
6dc861337efeb1ddccf2f1e2f30eae02ea48079f813c5d759e632ff3acf71f08
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
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 Jun 9, 2026.
Transparency logSecurity for prodcycle 0.6.17
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 prodcycle-0.6.17.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 Jun 9, 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.