Skip to main content

patchguard-ai — PatchOps Guard Python SDK

Official Python client for the PatchOps Guard API.

Installation

pip install patchguard-ai

Distribution name is patchguard-ai but the import name is patchguard (Django-style split — patchguard alone is taken on PyPI).

Quick start

from patchguard import PatchopsClient

with PatchopsClient(
    base_url="https://patchguard.ai",
    api_key="pk_live_...",
) as client:
    health = client.health.check()
    print(health)  # {"status": "ok", "db": True, "redis": True}

    findings = client.findings.list_unified(kind="cve", limit=50)
    for f in findings.items:
        print(f"{f.severity:8s} {f.title}")

    lb = client.benchmark.leaderboard()
    print(lb["vendors"][0]["name"])

Resources

  • client.health.check() — ping /health
  • client.findings.list_unified(kind=, severity=, limit=, offset=) — unified findings across all 10 Lanes
  • client.benchmark.leaderboard() — full vendor comparison

Errors

All API errors raise PatchopsError(status_code, detail).

License

MIT. See LICENSE.

Metadata

Release files for patchguard-ai 0.1.1

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

Source distribution (sdist)

Source distribution for patchguard-ai 0.1.1
File Size Uploaded Provenance
patchguard_ai-0.1.1.tar.gz 4.0 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for patchguard-ai 0.1.1
File Interpreter ABI Platform
patchguard_ai-0.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 8.6 kB

Release files / patchguard_ai-0.1.1.tar.gz

Download URL patchguard_ai-0.1.1.tar.gz
Size 4.0 kB
Tags Source
SHA-256 checksum
How to use checksums
a1882faa8b54076e17942c236058cbccfb002a0fbf89b7c0c5561d53dd98d632
BLAKE2b-256 checksum
How to use checksums
653259118253a2f28cfcf8a70c7acc0a1747634571a387250b6296f1249db24a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.3

Release files / patchguard_ai-0.1.1-py3-none-any.whl

Download URL patchguard_ai-0.1.1-py3-none-any.whl
Size 4.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
790df232f617ebc3da476f902c4061074fa1c0abbf9c494570df13d4b17949e5
BLAKE2b-256 checksum
How to use checksums
5a5389e5f53544029e7286d2d0ea547e06a4ce5d95f55e1d581a9fe6dfc23d69
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.3

Security for patchguard-ai 0.1.1

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.

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files No provenance

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