Skip to main content

A tool for resolving PEP 735 Dependency Group data

Project description

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.

Interfaces

dependency-groups provides the following:

  • A DependencyGroupResolver which 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 GROUPNAME prints a dependency group’s contents

    • lint-dependency-groups loads all dependency groups to check for correctness

    • pip-install-dependency-groups GROUPNAME... wraps a pip invocation to install the contents of a dependency group

  • A pre-commit hooks which runs lint-dependency-groups

Documentation

Full documentation is available on the Dependency Groups doc site.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

dependency_groups-1.3.0.tar.gz (9.8 kB view hashes)

Uploaded Source

Built Distribution

dependency_groups-1.3.0-py3-none-any.whl (8.6 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page