PYPI PACKAGE AUDIT v0.2.0 Verbesserungsbedarf

patchops-guard

PatchOps Guard CLI – SBOM, Scans und KI-Korrekturen von Ihrem Terminal aus.

PyPkgScore patchops-guard
Methodik & Kriterien ♥ Donate
555 / 1000
Schnellinstallation
pip install patchops-guard
1. Governance
50/200
2. PEP-Metadaten
200/200
3. Sicherheit
150/200
4. Doku & SEO
155/200
5. CI-Engineering
0/200
📣 Prüfung teilen: Teilen Sie diesen Bericht und die Vorschau in der aktuellen Sprache
Advertisement
PYPI-TELEMETRIE

Downloads & Community-Verbreitung

Letzte 30 Tage (ohne Spiegelserver)
Letzte 7 Tage
115
Letzte 30 Tage
115
Gesamt (180 Tage)
115
Metrik / Ökosystem Status / Wert Quelle
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

Gesundheits- & Engineering-Analyse (5 Säulen)

1. Governance & Community50 / 200 ▾
LICENSE✓ 50 pts
SECURITY.md✕ 0 pts
CONTRIBUTING.md✕ 0 pts
CODE_OF_CONDUCT.md✕ 0 pts
2. PEP-Metadaten & Paketierung200 / 200 ▾
Wheel (.whl)✓ 50 pts
pyproject.toml✓ 50 pts
Project URLs✓ 50 pts
Trove Classifiers✓ 50 pts
3. Sicherheit & Lieferkette150 / 200 ▾
Null CVEs (OSV)✓ 60 pts
Trusted Publishing (OIDC)✕ 0 pts
Snyk / Audit Link✓ 40 pts
HTTPS-Repository✓ 50 pts
4. Dokumentation, SEO & Ökosystem155 / 200 ▾
Strukturierte README✓ 60 pts
Read the Docs✓ 50 pts
Django Packages✕ 0 pts
Webseite / Fachartikel✓ 45 pts
5. Engineering, CI & Qualität0 / 200 ▾
Automatisierte Tests✕ 0 pts
GitHub Actions CI✕ 0 pts
CHANGELOG.md✕ 0 pts
Env & Lockfile (uv/rye/poetry/pdm/hatch)✕ 0 pts
Advertisement
README & DOCS

Offizielle Dokumentation & Nutzungsleitfaden — patchops-guard

PyPI Metadata v0.2.0
Vollständige Originaldokumentation anzeigen (Englisches 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