"""Containers module."""

from dependency_injector import containers, providers

from . import redis, services


class Container(containers.DeclarativeContainer):

    config = providers.Configuration()

    redis_pool = providers.Resource(
        redis.init_redis_pool,
        host=config.redis_host,
        password=config.redis_password,
    )

    service = providers.Factory(
        services.Service,
        redis=redis_pool,
    )

ead874fb3a8d9e38be80d669dba547743e08dd54
<mask token>

<mask token>


class Container(containers.DeclarativeContainer):
    <mask token>
    <mask token>
    <mask token>

<mask token>


class Container(containers.DeclarativeContainer):
    config = providers.Configuration()
    redis_pool = providers.Resource(redis.init_redis_pool, host=config.
        redis_host, password=config.redis_password)
    service = providers.Factory(services.Service, redis=redis_pool)

<mask token>
from dependency_injector import containers, providers
from . import redis, services


class Container(containers.DeclarativeContainer):
    config = providers.Configuration()
    redis_pool = providers.Resource(redis.init_redis_pool, host=config.
        redis_host, password=config.redis_password)
    service = providers.Factory(services.Service, redis=redis_pool)

"""Containers module."""

from dependency_injector import containers, providers

from . import redis, services


class Container(containers.DeclarativeContainer):

    config = providers.Configuration()

    redis_pool = providers.Resource(
        redis.init_redis_pool,
        host=config.redis_host,
        password=config.redis_password,
    )

    service = providers.Factory(
        services.Service,
        redis=redis_pool,
    )
