pyproject-dependencies
What it is and what it does
pyproject-dependencies is a command-line tool that reads Python project metadata and outputs their direct dependencies. It works by parsing pyproject.toml or setup.py files, or by invoking the project's build backend to extract declared requirements. The tool is useful for understanding what a project directly depends on without installing it or running a full dependency resolver.
The package depends on build, packaging, tomli, and typing-extensions to handle build backends, version parsing, TOML reading, and type hints. It supports filtering dependencies by name regex and can optionally exclude projects from their own dependency lists when analyzing multiple interdependent projects.
Use it for:
- Audit direct dependencies of a project before deciding whether to use or contribute to it.
- Generate dependency reports for compliance or security scanning workflows.
- Extract requirements from projects that don't have a requirements.txt file.
- Analyze build-time dependencies separately from runtime dependencies.
- Filter and list only specific dependency categories using regex patterns.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Extracts and prints the direct dependencies declared in Python projects by parsing pyproject.toml, setup.py, or invoking build backends.
Yes, if you need to inspect or extract Python project dependencies programmatically or from the command line. The low install friction, permissive license, active maintenance, and zero known vulnerabilities make it a safe choice. Not necessary if you only work with projects that already expose their dependencies clearly through standard files.
Install
pyproject-dependencies on PyPI
pip
pip install pyproject-dependenciesuv
uv add pyproject-dependenciespoetry
poetry add pyproject-dependenciesInstalling pyproject-dependencies
Before you install
Low friction install with four straightforward runtime dependencies. Active maintenance with a recent commit on 2026-08-10, though the package itself last released on 2023-09-23.
License in practice
MIT license (permissive) means you can use, modify, and distribute this package freely with minimal restrictions.
Quickstart
pip install pyproject-dependencies
pyproject-dependencies /path/to/project
# Or with filtering:
pyproject-dependencies --name-filter '^requests' /path/to/project
Requires Python 3.7 or later. The --no-isolation flag requires the build backend to be available in the current environment.
Verify before relying
- Whether the package handles all modern dependency specifiers and conditional dependencies correctly.
- Performance characteristics when analyzing projects with large dependency trees.
- How well it handles environment markers and extras in dependency declarations.
Package facts
| License | not declared (permissive) |
| Python support | supports the current Python release (>=3.7) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 4 — build, packaging, tomli, typing-extensions |
| Maintenance | actively maintained — 1,056 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 78,728/month — #14,413 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: pyproject_dependencies-1.3.2-py3-none-any.whl
Tags
More Build Tools packages
Provides reusable utilities for Python…
permissive · top 100 on PyPI
tqdmWraps any iterable to display a real-time…
copyleft · top 100 on PyPI
pippip is the standard installer for Python…
permissive · top 100 on PyPI
hatchlingHatchling is a standards-compliant Python build…
permissive · top 100 on PyPI
grpcio-toolsGenerates Python gRPC service stubs and message…
permissive · top 1,000 on PyPI
pre-commitpre-commit is a framework for installing and…
permissive · top 1,000 on PyPI
pyproject-parserParses and extracts metadata from…
permissive · top 15,000 on PyPI
pyproject-hooksCalls build-backend hooks defined in…
permissive · top 1,000 on PyPI
single-sourceExtracts your package version from…
permissive · top 15,000 on PyPI
pyproject-apiProvides a programmatic API to read and…
permissive · top 5,000 on PyPI
pyproject-tomlParses and validates Python project metadata…
permissive · top 15,000 on PyPI
pyproject2condaConverts Python project dependencies from…
unclear · top 15,000 on PyPI
sphinx-pyprojectLoads Sphinx documentation configuration from…
permissive · top 15,000 on PyPI
pip-check-reqsAudits Python project imports against…
permissive · top 15,000 on PyPI
validate-pyproject-schema-storeProvides a versioned snapshot of SchemaStore…
permissive · top 15,000 on PyPI
pipreqsScans Python project source code to detect…
permissive · top 5,000 on PyPI