Metadata-Version: 2.4
Name: zeroshot-commons-injectors
Version: 0.1.5
Summary: Dependency Injector containers for Zeroshot infrastructure components.
License-Expression: MIT
Requires-Dist: asyncpg>=0.30.0
Requires-Dist: dependency-injector>=4.46.0,<5
Requires-Dist: redis>=5.2.1
Requires-Dist: sqlalchemy>=2.0.40
Requires-Dist: zeroshot-commons==0.1.5
Requires-Python: >=3.12
Description-Content-Type: text/markdown

# zeroshot-commons-injectors

Dependency Injector containers for Zeroshot infrastructure components.

This package exposes `dependency-injector` containers for Redis and Postgres
resources so consuming microservices can compose them into an application-level
container without binding directly to a web framework.

Example:

```python
from dependency_injector import containers, providers
from zeroshot_commons_injectors import CommonsInfrastructureContainer


class AppContainer(containers.DeclarativeContainer):
    config = providers.Configuration()

    infrastructure = providers.Container(
        CommonsInfrastructureContainer,
        config=config.infrastructure,
    )
```
