# dependency-groups

> A tool for resolving PEP 735 Dependency Group data

- **URL**: https://www.freshcrate.ai/projects/dependency-groups
- **Author**: pypi
- **Category**: Developer Tools
- **Latest version**: `1.3.1` (2026-04-21)
- **License**: Unknown
- **Source**: https://github.com/pypa/dependency-groups/blob/main/CHANGELOG.rst
- **Homepage**: https://pypi.org/project/dependency-groups/
- **Language**: Python
- **GitHub**: 14 stars, 4 forks
- **Registry**: pypi (`dependency-groups`)
- **Tags**: `pypi`

## Description

Dependency Groups
=================

An implementation of Dependency Groups (`PEP 735 <https://peps.python.org/pep-0735/>`_).

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 <https://dependency-groups.readthedocs.io/>`_.

## Recent releases

| Version | Date | Urgency | Changes |
| --- | --- | --- | --- |
| `1.3.1` | 2026-04-21 | Low | Imported from PyPI (1.3.1) |
| `1.3.0` | 2024-11-01 | Low | - Bugfix: raise a `TypeError` on non-list groups (was `ValueError`). Thanks @henryiii!  - Several improvements to the CLI interfaces! Thanks @henryiii!    - Add support for a `cli` extra, as in `pip install "dependency-groups[cli]"`, which ensures that `tomli` is present on older Pythons.    - Add support for `dependency-groups` as an entrypoint, as an alias of `python -m dependency_groups`.    - The `dependency-groups` command now supports a `--list` flag to list groups instead of resolving the |
| `1.2.0` | 2024-10-29 | Low | - Switch to `flit-core` as the build backend - Add support for supplying multiple dependency groups to the functional `resolve()` API: `resolve(dependency_groups, *groups: str)`. Thanks @henryiii! |
| `1.1.0` | 2024-10-28 | Low | - Add support for Python 3.8 |
| `1.0.0` | 2024-10-15 | Low | - Update metadata to 1.0.0 and "Production" status - Support Python 3.13 |
| `0.3.0` | 2024-10-02 | Low | - Add a new command, `pip-install-dependency-groups`, which is capable of installing dependency groups by invoking `pip` |
| `0.2.2` | 2024-09-11 | Low | - The pre-commit hook sets `pass_filenames: false` - The error presentation in the lint CLI has been improved |
| `0.2.1` | 2024-09-11 | Low | - Bugfix to pre-commit config |
| `0.2.0` | 2024-09-11 | Low | - Add a new CLI component, `lint-dependency-groups`, which can be used to lint dependency groups - Provide a pre-commit hook, named `lint-dependency-groups` |
| `0.1.1` | 2024-09-10 | Low | - Fix a bug in cycle detection for nontrivial cycles |

## Citation

- HTML: https://www.freshcrate.ai/projects/dependency-groups
- Markdown: https://www.freshcrate.ai/projects/dependency-groups.md
- Dependencies JSON: https://www.freshcrate.ai/api/projects/dependency-groups/deps

_Generated by freshcrate.ai. Indexes pypi releases for AI-agent ecosystem packages._
