Skip to main content

Multi-framework policy-as-code compliance scanner for infrastructure and application code.

Project description

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, .env files
  • 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 . --framework soc2,hipaa

# Output as SARIF for GitHub Code Scanning
prodcycle . --framework soc2 --format sarif --output results.sarif

# Set severity threshold (only report HIGH and above)
prodcycle . --framework hipaa --severity-threshold high

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 PC_API_KEY=pc_your_api_key_here

API keys are created through the ProdCycle dashboard.

Requirements

  • Python >= 3.12

License

MIT

Project details


Download files

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

Source Distribution

prodcycle-0.3.0.tar.gz (13.6 kB view details)

Uploaded Source

Built Distribution

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

prodcycle-0.3.0-py3-none-any.whl (14.7 kB view details)

Uploaded Python 3

File details

Details for the file prodcycle-0.3.0.tar.gz.

File metadata

  • Download URL: prodcycle-0.3.0.tar.gz
  • Upload date:
  • Size: 13.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for prodcycle-0.3.0.tar.gz
Algorithm Hash digest
SHA256 53e0fe3ae7e63f08aca15eedc48f14729d4c6514d3de328c0ff21de09ebcbb61
MD5 e40d6fad8f2a122b72fe2033c55e7e80
BLAKE2b-256 aa4ce0eea0768158cba17de92bcd69ef23b086c48d712ab8080db4ad6ef7a0e6

See more details on using hashes here.

Provenance

The following attestation bundles were made for prodcycle-0.3.0.tar.gz:

Publisher: publish.yml on prodcycle/cli

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file prodcycle-0.3.0-py3-none-any.whl.

File metadata

  • Download URL: prodcycle-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 14.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for prodcycle-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 845946078a371a85bdcf0316163296f6775c6ece64968bcea7ab1224ca5cbd5a
MD5 70d51616bd6548f0ab9023965cdcf27c
BLAKE2b-256 8d6740966ff1f655d2ed289552b1fb1c1759f5ed0a8e321814205bd8e38bb2d4

See more details on using hashes here.

Provenance

The following attestation bundles were made for prodcycle-0.3.0-py3-none-any.whl:

Publisher: publish.yml on prodcycle/cli

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

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