What are Optional Dependencies and Dependency Groups?

1 · Python Developer Tooling Handbook – pydevtools.com · July 27, 2026, 11:13 a.m.
Summary
This blog post explains optional dependencies in Python, detailing how they can be declared in the `pyproject.toml` file according to the PEP 621 standard. It offers an example of defining optional dependencies for AWS and visualization features, enabling users to install specific features as needed.