Skip to main content

Dependency Injector containers for Zeroshot infrastructure components.

Project description

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:

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,
    )

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

zeroshot_commons_injectors-0.1.5.tar.gz (1.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

zeroshot_commons_injectors-0.1.5-py3-none-any.whl (3.3 kB view details)

Uploaded Python 3

File details

Details for the file zeroshot_commons_injectors-0.1.5.tar.gz.

File metadata

File hashes

Hashes for zeroshot_commons_injectors-0.1.5.tar.gz
Algorithm Hash digest
SHA256 491fff6107d7905d2bc81f8a009f2442fba1dcc7a5ce82640478da1173922d73
MD5 c9fb9a3631f737c83fa4f2e037ef0233
BLAKE2b-256 c853026f739c700cc4803336ae24497b7e75b4faba329d88da74569f79b2cbcf

See more details on using hashes here.

File details

Details for the file zeroshot_commons_injectors-0.1.5-py3-none-any.whl.

File metadata

File hashes

Hashes for zeroshot_commons_injectors-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 766c469e55c84adfc4bfcb848f88c0523f319c7cff0f8531f753972262540c3a
MD5 b4086c2ef6e3196c882e35d04168f9bb
BLAKE2b-256 af2f858e80fd29e8380261f68d6746b6f6971f4d8e1ef646a290162674b772ff

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page