damnever/pigar
:coffee: A tool to generate requirements.txt for Python project, and more than that. (IT IS NOT A PACKAGE MANAGEMENT TOOL) observed · 2026-08-28
Health v2 · maintenance only
71/100
- Activity 94
- Release rhythm 24
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: 326
- age_days: 3990
- days_rel: 297
- days_push: 40
- n_releases_24m: 2
Adoption not part of the score
1794 stars · 89 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
pigar is a Python CLI tool that automatically generates requirements.txt files by analyzing import statements in a project's source code, including Jupyter notebooks and dynamic imports. It can also search PyPI for distributions by top-level import name and check requirements for outdated versions.
Use cases
- generate requirements.txt from python project imports
- find which pypi package provides an import name like bs4
- check if requirements.txt dependencies are outdated
- generate requirements for jupyter notebooks
- create separate requirements files for python 2 and 3
- resolve ImportError by mapping module name to package
When to choose
- you need to bootstrap a requirements.txt for an existing codebase with no dependency file
- you want to trace imports (including dynamic ones and notebooks) to their distributions
- you need to look up the package behind an unfamiliar import name
When to avoid
- you need full dependency management with lockfiles - use pipenv, uv, or poetry instead
- you need transitive dependency resolution rather than direct import scanning
- your project relies heavily on packages not installed locally and not on PyPI
Facets
cli-tool · maturity active
developer-tools package-manager parser search-engine developer-tools python cli cross-platform requirements-txt dependency-analysis pypi import-scanning jupyter-notebook command-line python automation
3 sources
- readme: https://github.com/damnever/pigar · fetched 2026-08-28 · 0c22d19f2cb7
- homepage: https://damnever.github.io/pigar/ · fetched 2026-08-29 · b7dff3033b60
- registry_pypi: https://pypi.org/pypi/pigar/json · fetched 2026-08-29 · 2df1f7f9a81f
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| damnever/pigar | main | 71 |
For agents
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem