python-dependency-injector/dependency_injector/__init__.py

105 lines
2.3 KiB
Python
Raw Normal View History

2015-08-31 16:31:38 +03:00
"""Dependency injector."""
2015-01-04 16:54:25 +03:00
from .catalogs import DeclarativeCatalog
from .catalogs import AbstractCatalog
from .catalogs import DynamicCatalog
from .catalogs import CatalogBundle
from .catalogs import override
2015-01-04 16:54:25 +03:00
2015-03-10 12:51:13 +03:00
from .providers import Provider
2015-03-14 01:02:01 +03:00
from .providers import Delegate
from .providers import Factory
2015-03-10 12:51:13 +03:00
from .providers import Singleton
from .providers import ExternalDependency
2015-09-14 10:53:24 +03:00
from .providers import StaticProvider
2015-03-10 12:51:13 +03:00
from .providers import Class
from .providers import Object
from .providers import Function
from .providers import Value
from .providers import Callable
from .providers import Config
2015-01-04 16:54:25 +03:00
from .injections import Injection
from .injections import Arg
from .injections import KwArg
2015-03-10 12:51:13 +03:00
from .injections import Attribute
from .injections import Method
from .injections import inject
from .utils import is_provider
from .utils import ensure_is_provider
from .utils import is_injection
from .utils import ensure_is_injection
from .utils import is_arg_injection
from .utils import is_kwarg_injection
from .utils import is_attribute_injection
from .utils import is_method_injection
from .utils import is_catalog
from .utils import is_dynamic_catalog
from .utils import is_declarative_catalog
from .utils import is_catalog_bundle
from .utils import ensure_is_catalog_bundle
2015-03-14 01:02:01 +03:00
from .errors import Error
2015-11-12 14:43:54 +03:00
from .errors import UndefinedProviderError
2015-03-14 01:02:01 +03:00
# Backward compatibility for versions < 0.11.*
from . import catalogs
catalog = catalogs
2015-03-10 12:51:13 +03:00
2015-11-04 17:32:04 +03:00
VERSION = '0.10.5'
__all__ = (
# Catalogs
'DeclarativeCatalog',
'AbstractCatalog',
2015-11-10 18:58:04 +03:00
'DynamicCatalog',
'CatalogBundle',
'override',
# Providers
'Provider',
'Delegate',
'Factory',
'Singleton',
'ExternalDependency',
2015-09-14 10:53:24 +03:00
'StaticProvider',
'Class',
'Object',
'Function',
'Value',
'Callable',
'Config',
# Injections
'Injection',
'Arg',
'KwArg',
'Attribute',
'Method',
'inject',
# Utils
'is_provider',
'ensure_is_provider',
'is_injection',
'ensure_is_injection',
'is_arg_injection',
'is_kwarg_injection',
'is_attribute_injection',
'is_method_injection',
'is_catalog',
'is_dynamic_catalog',
'is_declarative_catalog',
'is_catalog_bundle',
'ensure_is_catalog_bundle',
# Errors
'Error',
2015-11-12 14:43:54 +03:00
'UndefinedProviderError',
# Version
'VERSION'
)