A tool to extract dependencies from pyproject.toml files in a robust way. Supports both static and dynamic dependency resolution, including optional dependencies (extras). Compatible with Python 3.7+. Current version: 1.3.2. Release cadence: irregular.
pip install pyproject-dependenciesNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Extract dependencies from a pyproject.toml file. Returns a dict with 'dependencies' (list of strings) and 'extras' (dict mapping group name to list of strings).
Access results['extras'] to get optional dependency groups.
If using CLI, use --extras flag to see optional dependencies. For API, use results['extras'].
Ensure the project can be resolved (e.g., run pip install -e .) before calling get_dependencies, or pre-compute static dependencies.