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
  • JSON output--json on every command for scripting

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 compare requests httpx   # side-by-side metadata comparison
peta requests --json          # machine-readable output

Flags

Flag Applies to Meaning
--json all JSON output
--local / -l info, deps force local lookup
--remote / -r info, deps force PyPI lookup
--limit / -n versions max versions to show (default 20)
--why <target> deps show why <target> is a dependency
--depth <n> deps max recursion depth (default 10)
--no-color (root) disable colored output (also via NO_COLOR)
--version / -V (root) print version and exit

License

MIT

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

peta-0.1.0.tar.gz (39.6 kB view details)

Uploaded Source

Built Distribution

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

peta-0.1.0-py3-none-any.whl (30.4 kB view details)

Uploaded Python 3

File details

Details for the file peta-0.1.0.tar.gz.

File metadata

  • Download URL: peta-0.1.0.tar.gz
  • Upload date:
  • Size: 39.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for peta-0.1.0.tar.gz
Algorithm Hash digest
SHA256 c8f4b94f254c256736c850103c1c29067a5e264b05342132fca53c65eba2e758
MD5 a788e2b39b06450368a812e8793ade65
BLAKE2b-256 91fe4e57bcf70c6d885385c1dee716a09182a60faedb27242b9b731d302d880c

See more details on using hashes here.

Provenance

The following attestation bundles were made for peta-0.1.0.tar.gz:

Publisher: release.yml on hasansezertasan/peta

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

File details

Details for the file peta-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: peta-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 30.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for peta-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 91eabe2af1229f6d3b901319c6e4019aef982514c1745f6da81a6c09fa83db9c
MD5 e52c269464e27f02f08f81957606bb89
BLAKE2b-256 f5347e704e8ed1fd05749f2b8e9fc47f59385e248a72bddc8aaeee609c3b212d

See more details on using hashes here.

Provenance

The following attestation bundles were made for peta-0.1.0-py3-none-any.whl:

Publisher: release.yml on hasansezertasan/peta

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 Sentry Error logging StatusPage Status page