peta
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 —
--jsonon 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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c8f4b94f254c256736c850103c1c29067a5e264b05342132fca53c65eba2e758
|
|
| MD5 |
a788e2b39b06450368a812e8793ade65
|
|
| BLAKE2b-256 |
91fe4e57bcf70c6d885385c1dee716a09182a60faedb27242b9b731d302d880c
|
Provenance
The following attestation bundles were made for peta-0.1.0.tar.gz:
Publisher:
release.yml on hasansezertasan/peta
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
peta-0.1.0.tar.gz -
Subject digest:
c8f4b94f254c256736c850103c1c29067a5e264b05342132fca53c65eba2e758 - Sigstore transparency entry: 2345808965
- Sigstore integration time:
-
Permalink:
hasansezertasan/peta@cbc1f1374e2dd96e8ba5ddd527da56d489fd33e8 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/hasansezertasan
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@cbc1f1374e2dd96e8ba5ddd527da56d489fd33e8 -
Trigger Event:
push
-
Statement type:
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
91eabe2af1229f6d3b901319c6e4019aef982514c1745f6da81a6c09fa83db9c
|
|
| MD5 |
e52c269464e27f02f08f81957606bb89
|
|
| BLAKE2b-256 |
f5347e704e8ed1fd05749f2b8e9fc47f59385e248a72bddc8aaeee609c3b212d
|
Provenance
The following attestation bundles were made for peta-0.1.0-py3-none-any.whl:
Publisher:
release.yml on hasansezertasan/peta
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
peta-0.1.0-py3-none-any.whl -
Subject digest:
91eabe2af1229f6d3b901319c6e4019aef982514c1745f6da81a6c09fa83db9c - Sigstore transparency entry: 2345809096
- Sigstore integration time:
-
Permalink:
hasansezertasan/peta@cbc1f1374e2dd96e8ba5ddd527da56d489fd33e8 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/hasansezertasan
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@cbc1f1374e2dd96e8ba5ddd527da56d489fd33e8 -
Trigger Event:
push
-
Statement type: