# bndr/pipreqs

pipreqs - Generate pip requirements.txt file based on imports of any project. Looking for maintainers to move this project forward.

Repository: https://github.com/bndr/pipreqs
Canonical: https://ross.abutalabs.com/products/pipreqs
Language: Python
License: Apache-2.0
License Family: permissive
Last push: 2026-03-30T18:46:52+00:00

## Health v2 (maintenance only)
Score: 56/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 74, release rhythm 8, longevity 100
- inputs: {"age_days": 4151, "days_push": 156, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 7461, forks 421 (observed 2026-08-28T04:10:00.031539+00:00)

## What it is
pipreqs is a Python CLI tool that generates a requirements.txt file by scanning a project's source code for imports and mapping them to PyPI package names. It supports custom PyPI servers, proxies, Jupyter notebook scanning, and version pinning schemes.

## Use cases
- generate requirements.txt from project imports
- find missing dependencies in a python project
- clean unused packages from requirements.txt
- compare requirements.txt against actual imports
- scan jupyter notebooks for dependencies

## When to choose
- you need a requirements.txt for a project that never had one
- you want imports-based dependency detection instead of environment snapshots
- you need to diff or clean an existing requirements file

## When to avoid
- you want to pin exact versions of an existing working environment (use pip freeze)
- you manage dependencies with modern tools like poetry or uv
- the project is unmaintained and you need active support

## Facets
- artifact type: cli-tool
- maturity: maintenance
- function: developer-tools, package-manager, parser
- domain: developer-tools
- platform: python, cli, cross-platform
- tags: requirements-txt, dependency-management, pip, static-analysis, command-line, automation

## Member repositories
- bndr/pipreqs (main) score 56

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:10:00.031539+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T17:37:38.702645+00:00, confidence not recorded.
  - readme: https://github.com/bndr/pipreqs (fetched 2026-08-28T04:10:00.031539+00:00, sha 1c4128fc11b9)
  - registry_pypi: https://pypi.org/pypi/pipreqs/json (fetched 2026-08-29T08:33:01.826318+00:00, sha e9b802a1282b)
- Data as of 2026-08-30T08:39:29.467469+00:00.
