Skip to main content

Package trust and provenance verification for PyPI consumers.

Project description

trustcheck

CI Source Build PyPI Python 3.10 | 3.11 | 3.12 | 3.13 | 3.14 PyPI Downloads

trustcheck is a Python package and CLI for evaluating the trust posture of PyPI releases before they are installed, promoted, or approved.

It combines PyPI metadata, vulnerability records, provenance availability, cryptographic attestation verification, Trusted Publisher identity hints, and repository matching into a single operator-friendly report.

What it checks

For a selected package version, trustcheck can:

  • fetch project and release metadata from PyPI
  • verify published provenance against artifact digests
  • surface Trusted Publisher repository and workflow identity hints
  • compare expected repository input against declared and attested signals
  • flag publisher drift, missing verification, and known vulnerabilities
  • emit concise text output or structured JSON for automation

Installation

pip install trustcheck

Requirements:

  • Python >=3.10
  • Network access to PyPI

Quick start

Inspect the latest release:

trustcheck inspect requests

Inspect a specific version:

trustcheck inspect sampleproject --version 4.0.0

Require a release to match an expected repository:

trustcheck inspect sampleproject \
  --version 4.0.0 \
  --expected-repo https://github.com/pypa/sampleproject

Emit JSON for another tool:

trustcheck inspect sampleproject --version 4.0.0 --format json

Fail CI when full verification is missing:

trustcheck inspect sampleproject --version 4.0.0 --strict

Use it from Python:

from trustcheck import inspect_package

report = inspect_package("sampleproject", version="4.0.0")
print(report.recommendation)

Documentation

Full documentation: https://halfblood-prince.github.io/trustcheck/

License

Trustcheck Personal Use License

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

trustcheck-1.4.2.tar.gz (622.9 kB view details)

Uploaded Source

Built Distribution

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

trustcheck-1.4.2-py3-none-any.whl (29.1 kB view details)

Uploaded Python 3

File details

Details for the file trustcheck-1.4.2.tar.gz.

File metadata

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

File hashes

Hashes for trustcheck-1.4.2.tar.gz
Algorithm Hash digest
SHA256 1f8fd31669a8222f6e04866240afd22ee24bdff821a3df53c9dee5eb97e5952c
MD5 b88322e0f66b3067c04bc957a2098e24
BLAKE2b-256 ec15652058cb1b2f2dd103625c981bfe97b58a6f88eed489b27a27f51b25a1de

See more details on using hashes here.

Provenance

The following attestation bundles were made for trustcheck-1.4.2.tar.gz:

Publisher: publish.yml on Halfblood-Prince/trustcheck

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

File details

Details for the file trustcheck-1.4.2-py3-none-any.whl.

File metadata

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

File hashes

Hashes for trustcheck-1.4.2-py3-none-any.whl
Algorithm Hash digest
SHA256 41f0d514e05ddbd7c94b77f884a4c7026b2074a0a0a57fd1b1222888d1152c52
MD5 6027bf340a3d3a3693ba3e294dc9144f
BLAKE2b-256 aeef62da9ff521c9d7a3a44a4605bf6f986e502a286c561940777e9777b36267

See more details on using hashes here.

Provenance

The following attestation bundles were made for trustcheck-1.4.2-py3-none-any.whl:

Publisher: publish.yml on Halfblood-Prince/trustcheck

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