PYPI PACKAGE AUDIT v0.2.0 Needs Improvement

patchops-guard

PatchOps Guard CLI โ€” SBOM, scans, and AI fixes from your terminal.

PyPkgScore patchops-guard
Methodology & Criteria โ™ฅ Donate
555 / 1000
Quick Install
pip install patchops-guard
1. Governance
50/200
2. PEP Metadata
200/200
3. Security
150/200
4. Docs & SEO
155/200
5. CI Engineering
0/200
๐Ÿ“ฃ Share Audit: Share this report and visual preview in the current language
Advertisement
PYPI TELEMETRY

Downloads & Community Adoption

Last 30 days (without mirrors)
Last 7 days
115
Last 30 days
115
Total (180 days)
115
Metric / Ecosystem Status / Value Source
Downloads (30d / 180d) โ€” PyPI Stats (without mirrors)
Trusted Publishing (PEP 740) โœ• Not detected PyPI Integrity / Sigstore
Django Packages โ€” djangopackages.org
PyTech / PyPkgScore 555 / 1000 PyPkgScore Engine

Health & Engineering Analysis (5 Pillars)

1. Governance & Community50 / 200 โ–พ
LICENSEโœ“ 50 pts
SECURITY.mdโœ• 0 pts
CONTRIBUTING.mdโœ• 0 pts
CODE_OF_CONDUCT.mdโœ• 0 pts
2. PEP Metadata & Packaging200 / 200 โ–พ
Wheel (.whl)โœ“ 50 pts
pyproject.tomlโœ“ 50 pts
Project URLsโœ“ 50 pts
Trove Classifiersโœ“ 50 pts
3. Security & Supply Chain150 / 200 โ–พ
Zero CVEs (OSV)โœ“ 60 pts
Trusted Publishing (OIDC)โœ• 0 pts
Snyk / Audit Linkโœ“ 40 pts
HTTPS Repositoryโœ“ 50 pts
4. Documentation, SEO & Ecosystem155 / 200 โ–พ
Structured READMEโœ“ 60 pts
Read the Docsโœ“ 50 pts
Django Packagesโœ• 0 pts
Website / Technical Articlesโœ“ 45 pts
5. Engineering, CI & Quality0 / 200 โ–พ
Automated Testsโœ• 0 pts
GitHub Actions CIโœ• 0 pts
CHANGELOG.mdโœ• 0 pts
Env & Lockfile (uv/rye/poetry/pdm/hatch)โœ• 0 pts
Advertisement
README & DOCS

Official Documentation & Usage Guide โ€” patchops-guard

PyPI Metadata v0.2.0
Show full original documentation (English README) โ–พ

patchops CLI

Official command-line interface for PatchOps Guard โ€” SBOM generation, CVE scanning, and AI-driven fix jobs without leaving your terminal.

Install

pip install patchops-guard

Or install from source:

git clone https://github.com/superlabs-x/patchops-guard
pip install -e cli/

Authentication

patchops auth login --api-key pk_live_...
patchops auth status
patchops auth logout

Credentials are stored with permissions 0600 at:

  • Linux / macOS: ~/.config/patchops/config.toml
  • Windows: %APPDATA%\patchops\config.toml

Environment variables take precedence:

  • PATCHOPS_API_KEY โ€” bearer token
  • PATCHOPS_BASE_URL โ€” API host (default https://patchguard.ai)

Scans

# Auto-detect: URL, lockfile, or docker image
patchops scan auto package-lock.json
patchops scan auto https://example.com
patchops scan auto nginx:1.25

# Explicit commands
patchops scan manifest package-lock.json --format json --output scan.json
patchops scan website https://example.com --fail-on-severity high
patchops scan docker nginx:1.25 --format sarif --output scan.sarif

Common flags:

  • --format json|table|sarif โ€” output shape (default table)
  • --output FILE โ€” write to file (stdout is default)
  • --severity critical|high|medium|low โ€” show only findings at or above
  • --fail-on-severity SEVERITY โ€” exit non-zero when met (CI-friendly)

Findings

patchops findings list --status open --severity high
patchops findings get <finding-uuid>

AI Repair

patchops repair start <finding-uuid> --wait
patchops repair status <job-uuid>
patchops repair list --status completed

SBOM

# Emit CycloneDX 1.6 JSON from a lockfile
patchops sbom generate package-lock.json --output sbom.json

# Upload an SBOM for OSV vulnerability matching
patchops sbom upload sbom.json

Supported lockfiles: package-lock.json, package.json, requirements.txt, Pipfile.lock, pom.xml, go.mod, Gemfile.lock, Cargo.lock, composer.lock.

Exit codes

  • 0 โ€” success
  • 1 โ€” general error (network, API, IO)
  • 2 โ€” usage error (bad argument, missing auth)
  • 10-13 โ€” --fail-on-severity threshold hit (low / medium / high / critical)

License

MIT