Metadata-Version: 2.3
Name: dependency-container
Version: 0.3.0
Summary: Support delayed dependency injection in FastApi to enable app constructor pattern.
Project-URL: Homepage, https://klmatlock.github.io/dependency-container
Project-URL: Documentation, https://klmatlock.github.io/dependency-container
Project-URL: Changelog, https://klmatlock.github.io/dependency-container/changelog
Project-URL: Repository, https://github.com/klmatlock/dependency-container
Project-URL: Issues, https://github.com/klmatlock/dependency-container/issues
Project-URL: Discussions, https://github.com/klmatlock/dependency-container/discussions
Project-URL: Gitter, https://gitter.im/dependency-container/community
Author-email: Kevin Matlock <kevin.matlock@gmail.com>
License: MIT
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Topic :: Documentation
Classifier: Topic :: Software Development
Classifier: Topic :: Utilities
Classifier: Typing :: Typed
Requires-Python: >=3.10
Requires-Dist: fastapi>=0.95.0
Provides-Extra: faststream
Requires-Dist: faststream>=0.5.26; extra == 'faststream'
Description-Content-Type: text/markdown

# Delayed Dependency Injection in Python

Dependency Container is a Python library that enables a delayed dependency injection approach, allowing you to build your application using an app constructor pattern. It's particularly useful for scenarios where dependencies are defined later in the application lifecycle.

Currently supports [FastAPI](https://fastapi.tiangolo.com/) and [FastStream](https://faststream.airt.ai/latest/).

## Installation

For installation we suggest using [uv](https://github.com/astral-sh/uv):

```bash
uv add dependency-container
```

If you wish to use with `FastStream`:

```bash
uv add "dependency-container[faststream]"
```

Alternatively you can install with `pip`:

```bash
pip install dependency-container
```
