Skip to main content

CLI tool to inspect Python package informations from PyPI and GitHub.

Project description

whatdeps

Tests codecov PyPI Python t Docs

A tiny CLI tool that shows basic information about a Python project’s dependencies using few pieces of information from PyPI and GitHub.

it shows

  • Supported Python versions - minimum version required
  • Disk size - space it takes up
  • Last release - when it was last updated on PyPI
  • Last push - recent activity on GitHub
  • Issues - open/closed ratio (to give a sense of maintenance)
  • Stars - popularity on GitHub

Installation

You can install it from PyPI

# With uv
uv tool install whatdeps

# or pipx
pipx install whatdeps

or You can install it in your project environment(not recommended!)

# With pip
pip install whatdeps

# Or uv
uv add whatdeps

Usage

Run it in any Python project with a dependency specification file:

whatdeps

Or point it at a specific file:

whatdeps -f requirements.txt
whatdeps -f pyproject.toml

Example output

 Inspecting 4 packages (4 prod, 0 dev)
  Fetching metadata from PyPI and GitHub... ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 100%

                                     Production Dependencies
╭──────────────┬──────────────┬──────────┬───────────────┬──────────────┬──────────────┬─────────╮
│              │  Supported   │  Size on │ Last Release  │  Last Push   │ Issues (O/C) │  Stars  │
│ Package      │    Python    │   Disk   │   on PyPI     │  on GitHub   │  on GitHub   │         │
├──────────────┼──────────────┼──────────┼───────────────┼──────────────┼──────────────┼─────────┤
│ authlib      │    >=3.9     │   1.3MB  │  2024-12-12   │  2025-01-21  │   130/414    │  5,184  │
│ fastapi      │    >=3.9     │   1.3MB  │  2024-12-27   │  2025-01-23  │  212/3471    │ 94,390  │
│ pwdlib       │    >=3.10    │  32.2KB  │  2024-10-25   │  2024-12-11  │    2/10      │   126   │
│ pytest       │    >=3.10    │  25.2KB  │  2024-12-06   │  2025-01-19  │  980/5373    │ 13,483  │
├──────────────┼──────────────┼──────────┼───────────────┼──────────────┼──────────────┼─────────┤
│              │     Total    │          │     2.7MB     │              │              │         │
╰──────────────┴──────────────┴──────────┴───────────────┴──────────────┴──────────────┴─────────╯

╭─────────────────────────────────── Summary ───────────────────────────────────╮
│ Total Packages: 4                                                             │
│ Total Disk Usage: 2.7MB                                                       │
│                                                                               │
│ Issues shown as Open/Closed ratio                                            │
╰───────────────────────────────────────────────────────────────────────────────╯

Supported formats

  • pyproject.toml (PEP 621, Poetry, Hatch)
  • requirements.txt and other common formats (requirements-dev.txt, etc.) Dependencies are parsed according to PEP 508. Development dependencies follow PEP 735 groupings.

Packages in requirements.txt are treated as production dependencies; those from other pip requirements files are considered as other dependencies.

Local development

this project uses tox for testing and documentation building, sphinx for docs, and pytest for tests.

build the docs:

tox -e docs

output goes to docs/_build.

run tests on a specific Python version:

tox -e py3.x -- tests

run tests across all environments in parallel:

tox -p -- tests

you can also use uv to create a virtual environment and sync dependencies:

uv sync

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

whatdeps-0.1.2.tar.gz (65.8 kB view details)

Uploaded Source

Built Distribution

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

whatdeps-0.1.2-py3-none-any.whl (12.4 kB view details)

Uploaded Python 3

File details

Details for the file whatdeps-0.1.2.tar.gz.

File metadata

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

File hashes

Hashes for whatdeps-0.1.2.tar.gz
Algorithm Hash digest
SHA256 e37270dfc0d007d9b39c699ba95ca6d83cfa4815f61b60bd803908289d4f1704
MD5 951fd0cff3068476e25d2b3684beda92
BLAKE2b-256 4c561202862eeac1a0e2e9f52fa5f606caec909cbdc25d1a23290584584df594

See more details on using hashes here.

Provenance

The following attestation bundles were made for whatdeps-0.1.2.tar.gz:

Publisher: release.yml on EmmanuelNiyonshuti/whatdeps

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

File details

Details for the file whatdeps-0.1.2-py3-none-any.whl.

File metadata

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

File hashes

Hashes for whatdeps-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 58a447e31a27b0a55cac46f5153867205e0780ec58a0b71a41eaf88f1b94e762
MD5 4c255fcff9a2190ed124fd25a3279e88
BLAKE2b-256 f8b721aac6672a67c7b67449c06776ab43e4024dbcfcf2be6100a8d0ebd27fde

See more details on using hashes here.

Provenance

The following attestation bundles were made for whatdeps-0.1.2-py3-none-any.whl:

Publisher: release.yml on EmmanuelNiyonshuti/whatdeps

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