skillfed

pyproject-dependencies

pyproject-dependencies v1.3.2 78.7K downloads/30d#14,413 on PyPI7
Permissive license Active released

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-dependencies

uv

uv add pyproject-dependencies

poetry

poetry add pyproject-dependencies

Installing 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

Development Status :: 4 - BetaLicense :: OSI Approved :: MIT License

Tags

list python project dependenciesextract pyproject.toml dependenciesanalyze project requirementsdependency extraction toolinspect build backend dependenciespyproject dependencies parser
dependency-analysisbuild-backend

More Build Tools packages