requirements-detector
Python tool to find and list requirements of a Python project
Decision gist · record as of 2026-08-14
Yes. The package is actively maintained, has no known vulnerabilities, uses permissive MIT licensing, and solves a concrete problem with low install friction. It is well-suited for anyone needing to programmatically or manually discover a Python project's dependencies.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python 3.10 or later (supports up to Python 3.14).
- Low install friction with four lightweight runtime dependencies (astroid, packaging, semver, tomli).
- Package is actively maintained with a recent release and has been stable since its early releases.
License · maintenance · safety
MIT (permissive) — MIT license permits commercial and private use with minimal restrictions; you may use, modify, and distribute this package freely provided you include the license notice.
last release 2026-08-11 (3 days) · last repo commit 2026-08-11 · 48 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 567,178 downloads/mo, #5,971 on PyPI
Alternatives
Verify before relying
pip install requirements-detector
from requirements_detector import find_requirements
import os
reqs = find_requirements(os.getcwd())- Whether the tool correctly handles all modern dependency specification formats (e.g., PEP 508, extras syntax).
- Performance characteristics when scanning large projects with many requirements files.
What it is and what it does
requirements-detector is a command-line tool and Python library that automatically discovers what packages a Python project depends on. It searches for dependencies in standard locations—setup.py, pyproject.toml, requirements.txt, and other conventional files—then outputs them in pip-compatible format. You can run it from the command line to get a quick inventory of a project's dependencies, or import it into your own code to programmatically extract requirements.
The tool uses a fallback strategy: it checks setup.py first, then pyproject.toml (if Poetry is configured), then requirements files in the root and in a requirements/ subdirectory. This makes it useful for auditing unfamiliar projects, automating dependency documentation, or integrating dependency detection into build pipelines. It depends on astroid, packaging, semver, and tomli to parse various configuration formats.
Use it for
- Audit an unfamiliar Python project to quickly see what external packages it requires.
- Automate dependency extraction for documentation or dependency tracking in CI/CD pipelines.
- Programmatically check a project's dependencies from within another Python tool or script.
- Identify dependencies across multiple requirements files in a project with non-standard layout.
- Generate a standardized requirements list from mixed configuration formats (setup.py, pyproject.toml, etc.).
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes.
The package is actively maintained, has no known vulnerabilities, uses permissive MIT licensing, and solves a concrete problem with low install friction. It is well-suited for anyone needing to programmatically or manually discover a Python project's dependencies.
Install
requirements-detector on PyPI
Before you install
Low install friction with four lightweight runtime dependencies (astroid, packaging, semver, tomli). Package is actively maintained with a recent release and has been stable since its early releases.
Requires Python 3.10 or later (supports up to Python 3.14).
License in practice
MIT license permits commercial and private use with minimal restrictions; you may use, modify, and distribute this package freely provided you include the license notice.
Quickstart
pip install requirements-detector
from requirements_detector import find_requirements
import os
reqs = find_requirements(os.getcwd())
Verify before relying
- Whether the tool correctly handles all modern dependency specification formats (e.g., PEP 508, extras syntax).
- Performance characteristics when scanning large projects with many requirements files.
Package facts
| License | MIT permissive |
| Python support | Supports the current Python release <4.0,>=3.10 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 4 packagesastroidpackagingsemvertomli |
| Maintenance | Actively maintained 3 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 567,178 / month, #5,971 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 5 - Production/StableEnvironment :: ConsoleIntended Audience :: DevelopersLicense :: OSI Approved :: MIT LicenseOperating System :: UnixProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14Topic :: Software Development :: Quality Assurance |
Evidence: requirements_detector-1.6.0-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “detect python project dependencies”
- requirements-detectorScans a Python project to detect and list its dependencies by parsing…
- fawltydepsFawltydeps identifies undeclared dependencies (imports without…
- safetySafety CLI scans Python project dependencies for known…
Give your agent the search over MCP, or paste the wish link into any chat.
More Quality Assurance packages
Coverage.py measures which lines of Python code are executed during test runs, reporting coverage percentages and identifying untested code paths.
Install it if you want to measure test completeness or enforce coverage thresholds in your project.
Ruff is a Python linter and code formatter written in Rust that combines linting, formatting, and code fixing into a single tool, replacing Flake8, Black, isort, and related utilities.
Pexpect spawns and controls interactive console applications by sending input and matching output patterns, automating tasks that would otherwise require manual interaction.
Black reformats Python source code to a consistent style by parsing entire files and rewriting them according to an opinionated, deterministic set of rules, eliminating manual formatting decisions.
pytest-xdist distributes pytest tests across multiple CPU cores or machines to speed up test execution, with the simplest usage being `pytest -n auto` to spawn workers equal to available CPUs.
Install it if your test suite takes long enough that parallelization would save meaningful time.
Validates AWS CloudFormation templates in YAML or JSON format against resource provider schemas and best practices, checking property values and configuration correctness.
Install it if you work with CloudFormation templates.
See also dparse · depgather · pip-check-reqs · dparse2 · hatch-requirements-txt · hashin · pip-tools · pip-upgrader · pip-requirements-parser · licensecheck