An implementation of Dependency Groups (PEP 735).
This is a library which is able to parse dependency groups, following includes, and provide that data as output.
dependency-groups provides the following:
- A
DependencyGroupResolverwhich implements efficient resolution of dependency groups - A
resolve()function which converts a dependency group name to a list of strings (powered by the resolver) - Three CLI commands:
python -m dependency_groups GROUPNAMEprints a dependency group's contentslint-dependency-groupsloads all dependency groups to check for correctnesspip-install-dependency-groups GROUPNAME...wraps apipinvocation to install the contents of a dependency group
- A pre-commit hooks which runs
lint-dependency-groups
Full documentation is available on the Dependency Groups doc site.