Metadata-Version: 2.4
Name: whatdeps
Version: 0.1.1
Summary: CLI tool to inspect Python package informations from PyPI and GitHub.
Project-URL: Homepage, https://github.com/EmmanuelNiyonshuti/whatdeps
Project-URL: Changelog, https://github.com/EmmanuelNiyonshuti/whatdeps/blob/main/CHANGELOG.md
Project-URL: Repository, https://github.com/EmmanuelNiyonshuti/whatdeps
Project-URL: documentation, https://github.com/EmmanuelNiyonshuti/whatdeps#readme
Project-URL: Issues, https://github.com/EmmanuelNiyonshuti/whatdeps/issues
Author-email: NIYONSHUTI Emmanuel <emmanuelniyonshuti13@gmail.com>
License-Expression: MIT
License-File: LICENSE
Keywords: dependencies,github,metadata,package,pypi
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Programming Language :: Python :: 3.14
Requires-Python: >=3.11
Requires-Dist: httpx>=0.27.0
Requires-Dist: orjson>=3.9.0
Requires-Dist: rich>=13.7.0
Provides-Extra: dev
Requires-Dist: pytest-asyncio>=0.23.0; extra == 'dev'
Requires-Dist: pytest-cov>=4.1.0; extra == 'dev'
Requires-Dist: pytest-mock>=3.12.0; extra == 'dev'
Requires-Dist: pytest>=8.0.0; extra == 'dev'
Description-Content-Type: text/markdown

# whatdeps
[![Tests](https://github.com/EmmanuelNiyonshuti/whatdeps/actions/workflows/test.yml/badge.svg)](https://github.com/EmmanuelNiyonshuti/whatdeps/actions)
[![codecov](https://codecov.io/gh/EmmanuelNiyonshuti/whatdeps/graph/badge.svg?token=6HA3SJLM0F)](https://codecov.io/gh/EmmanuelNiyonshuti/whatdeps)
[![PyPI](https://img.shields.io/pypi/v/whatdeps.svg)](https://pypi.org/project/whatdeps/)
[![Python](https://img.shields.io/pypi/pyversions/whatdeps.svg)](https://pypi.org/project/whatdeps/)
[![](https://img.shields.io/github/license/EmmanuelNiyonshuti/whatdeps.svg)](https://github.com/EmmanuelNiyonshuti/whatdeps/blob/master/LICENSE.md)
![t](https://img.shields.io/badge/status-maintained-yellow.svg)

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

## Installtion

You can install it as a commandline tool with pipx or uv tool
```bash
uv tool install whatdeps

pipx install whatdeps
```
or

You can install it in your project environment with pip or uv
```bash
pip install whatdeps

uv add whatdeps
```

## Usage

Run it in any Python project with a dependency specification file:
```bash
whatdeps
```
Or point it at a specific file:
```bash
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](https://peps.python.org/pep-0621/), Poetry, Hatch)
- `requirements.txt` and other common formats (`requirements-dev.txt`, etc.)
Dependencies are parsed according to [PEP 508](https://peps.python.org/pep-0508/). Development dependencies follow [PEP 735](https://peps.python.org/pep-0735/) groupings.

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