Skip to main content

peta

CI Coverage Documentation Status PyPI - Version PyPI - Python Version License - MIT GitHub Stars Latest Commit

Checked with mypy linting - Ruff OpenSSF Scorecard GitHub Tag

Downloads Downloads/Month Downloads/Week

Human-friendly Python package metadata viewer. Think cargo info for Python.

peta shows detailed metadata for a Python package — from your local environment or from PyPI — with clean, Rich-formatted terminal output.

Features

  • Local + remote — inspect installed packages or any package on PyPI
  • Rich output — readable tables, panels, and trees
  • Dependency listing — see a package's declared dependencies
  • File listing — list files installed by a local package
  • Version listing — browse published versions from PyPI
  • Release artifacts — wheels, sdists, digests, compatibility, and provenance
  • Structured output — Rich, plain text, versioned JSON, or Markdown

Installation

peta is an end-user CLI tool; install it into an isolated environment:

# Run without installing
uvx peta requests

# Install as a tool
uv tool install peta
pipx install peta

On macOS/Linux via Homebrew:

brew install hasansezertasan/tap/peta

On Windows via Scoop:

scoop bucket add hasansezertasan https://github.com/hasansezertasan/scoop-bucket
scoop install peta

Requires: Python 3.14+

Usage

peta requests                 # info (local first, falls back to PyPI)
peta info requests            # explicit info
peta info requests==2.31.0    # a specific version from PyPI
peta deps flask               # recursive dependency tree
peta deps flask --why certifi # why is certifi pulled in?
peta files rich               # files installed locally
peta versions httpx           # published versions on PyPI
peta artifacts cryptography   # what the latest release ships
peta artifacts numpy==2.3.0 --files --python 3.12
peta compare requests httpx   # side-by-side metadata comparison
peta requests --format json   # versioned machine-readable output
peta requests --json          # compatibility alias for --format json

Flags

Flag Applies to Meaning
--format <format> all rich, text, json, or markdown (default rich)
--json all compatibility alias for --format json
--local / -l info, compare, deps force local lookup
--remote / -r info, compare, deps force PyPI lookup
--limit / -n versions max versions to show (default 20)
--python <x.y> artifacts target Python version for compatibility (default: running)
--files artifacts list every distribution file
--provenance artifacts fetch PEP 740 provenance for publisher identity
--why <target> deps show why <target> is a dependency
--depth <n> deps max recursion depth (default 10)
--no-osv info, compare skip OSV vulnerability lookup
--no-stats info, compare skip download/dependent count lookups
--no-color (root) disable colored output (also via NO_COLOR)
--version / -V (root) print version and exit

License

MIT

Metadata

Release files for peta 0.2.0

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

Source distribution (sdist)

Source distribution for peta 0.2.0
File Size Uploaded Provenance
peta-0.2.0.tar.gz 139.2 kB With provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for peta 0.2.0
File Interpreter ABI Platform
peta-0.2.0-py3-none-any.whl Python 3 none any Details

Total release size: 237.1 kB

Release files / peta-0.2.0.tar.gz

Download URL peta-0.2.0.tar.gz
Size 139.2 kB
Tags Source
SHA-256 checksum
How to use checksums
a00ac60e6de4170ebeae7d4d771348db472645e6cffeeb3f155ea21ceec33f5a
BLAKE2b-256 checksum
How to use checksums
81cab4bec5ddba3de1305ae5f54f03c134719ef4060c3fe962da98a9bc220e5a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 18, 2026.

Transparency log

Release files / peta-0.2.0-py3-none-any.whl

Download URL peta-0.2.0-py3-none-any.whl
Size 97.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
89f0ad624ea553ca321108df4277fd8fa7596ec0a464b85a2503ba1f35508337
BLAKE2b-256 checksum
How to use checksums
bb3efacf7880f4b518f1d98fa6d7e73a248b276285a9f2c90ba6eba988f8b124
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 18, 2026.

Transparency log

Security for peta 0.2.0

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.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for peta-0.2.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 18, 2026.

Transparency log

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.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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