mirror of
https://github.com/ets-labs/python-dependency-injector.git
synced 2024-11-29 21:14:00 +03:00
52 lines
1.1 KiB
Python
52 lines
1.1 KiB
Python
"""Dependency injector."""
|
|
|
|
from .catalog import AbstractCatalog
|
|
from .catalog import override
|
|
|
|
from .providers import Provider
|
|
from .providers import Delegate
|
|
from .providers import Factory
|
|
from .providers import Singleton
|
|
from .providers import ExternalDependency
|
|
from .providers import Class
|
|
from .providers import Object
|
|
from .providers import Function
|
|
from .providers import Value
|
|
from .providers import Callable
|
|
from .providers import Config
|
|
|
|
from .injections import KwArg
|
|
from .injections import Attribute
|
|
from .injections import Method
|
|
from .injections import inject
|
|
|
|
from .errors import Error
|
|
|
|
|
|
__all__ = ('AbstractCatalog',
|
|
|
|
# Providers
|
|
'Provider',
|
|
'Delegate',
|
|
'Factory',
|
|
'Singleton',
|
|
'ExternalDependency',
|
|
'Class',
|
|
'Object',
|
|
'Function',
|
|
'Value',
|
|
'Callable',
|
|
'Config',
|
|
|
|
# Injections
|
|
'KwArg',
|
|
'Attribute',
|
|
'Method',
|
|
|
|
# Decorators
|
|
'override',
|
|
'inject',
|
|
|
|
# Errors
|
|
'Error')
|