Skip to content

Glossary: Software Design Patterns

DI container

Also written: dependency injection container

A library that builds objects and their dependencies from a list of rules. Python programs rarely need one, because plain calls in a composition root stay readable.

Where the book teaches it

Related terms

Composition rootDependency injection