python-dependency-injector/src/dependency_injector/providers/__init__.py
2016-12-02 13:53:37 +02:00

83 lines
1.3 KiB
Python

"""Dependency injector providers."""
from .base import (
Provider,
Object,
Delegate,
ExternalDependency,
OverridingContext,
)
from .configuration import (
Configuration,
)
from .callables import (
Callable,
DelegatedCallable,
)
from .factories import (
Factory,
DelegatedFactory,
)
from .singletons import (
BaseSingleton,
Singleton,
DelegatedSingleton,
ThreadSafeSingleton,
DelegatedThreadSafeSingleton,
ThreadLocalSingleton,
DelegatedThreadLocalSingleton,
)
from .injections import (
Injection,
PositionalInjection,
NamedInjection,
)
from .utils import (
is_provider,
ensure_is_provider,
is_delegated,
represent_provider,
deepcopy,
)
__all__ = (
'Provider',
'Object',
'Delegate',
'ExternalDependency',
'OverridingContext',
'Configuration',
'Callable',
'DelegatedCallable',
'Factory',
'DelegatedFactory',
'BaseSingleton',
'Singleton',
'DelegatedSingleton',
'ThreadSafeSingleton',
'DelegatedThreadSafeSingleton',
'ThreadLocalSingleton',
'DelegatedThreadLocalSingleton',
'Injection',
'PositionalInjection',
'NamedInjection',
'is_provider',
'ensure_is_provider',
'is_delegated',
'represent_provider',
'deepcopy',
)