2015-08-31 13:31:38 +00:00
|
|
|
"""Dependency injector."""
|
2015-01-04 13:54:25 +00:00
|
|
|
|
2015-11-10 08:42:29 +00:00
|
|
|
from .catalog import DeclarativeCatalog
|
2015-03-22 23:04:18 +00:00
|
|
|
from .catalog import AbstractCatalog
|
2015-11-10 15:58:04 +00:00
|
|
|
from .catalog import DynamicCatalog
|
2015-10-19 09:12:38 +00:00
|
|
|
from .catalog import CatalogBundle
|
2015-08-03 09:57:42 +00:00
|
|
|
from .catalog import override
|
2015-01-04 13:54:25 +00:00
|
|
|
|
2015-03-10 09:51:13 +00:00
|
|
|
from .providers import Provider
|
2015-03-13 22:02:01 +00:00
|
|
|
from .providers import Delegate
|
2015-05-14 08:35:41 +00:00
|
|
|
from .providers import Factory
|
2015-03-10 09:51:13 +00:00
|
|
|
from .providers import Singleton
|
|
|
|
from .providers import ExternalDependency
|
2015-09-14 07:53:24 +00:00
|
|
|
from .providers import StaticProvider
|
2015-03-10 09:51:13 +00: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 13:54:25 +00:00
|
|
|
|
2015-09-01 12:01:15 +00:00
|
|
|
from .injections import Injection
|
2015-10-14 11:30:01 +00:00
|
|
|
from .injections import Arg
|
2015-03-22 23:04:18 +00:00
|
|
|
from .injections import KwArg
|
2015-03-10 09:51:13 +00:00
|
|
|
from .injections import Attribute
|
|
|
|
from .injections import Method
|
2015-08-03 09:57:42 +00:00
|
|
|
from .injections import inject
|
2015-04-14 20:17:53 +00:00
|
|
|
|
2015-09-01 12:01:15 +00:00
|
|
|
from .utils import is_provider
|
|
|
|
from .utils import ensure_is_provider
|
|
|
|
from .utils import is_injection
|
|
|
|
from .utils import ensure_is_injection
|
2015-10-14 11:30:01 +00:00
|
|
|
from .utils import is_arg_injection
|
2015-09-01 12:01:15 +00:00
|
|
|
from .utils import is_kwarg_injection
|
|
|
|
from .utils import is_attribute_injection
|
|
|
|
from .utils import is_method_injection
|
2015-10-07 10:36:28 +00:00
|
|
|
from .utils import is_catalog
|
2015-10-19 09:12:38 +00:00
|
|
|
from .utils import is_catalog_bundle
|
|
|
|
from .utils import ensure_is_catalog_bundle
|
2015-09-01 12:01:15 +00:00
|
|
|
|
2015-03-13 22:02:01 +00:00
|
|
|
from .errors import Error
|
|
|
|
|
2015-03-10 09:51:13 +00:00
|
|
|
|
2015-11-04 14:32:04 +00:00
|
|
|
VERSION = '0.10.5'
|
2015-10-23 12:20:25 +00:00
|
|
|
|
|
|
|
|
2015-09-01 12:01:15 +00:00
|
|
|
__all__ = (
|
|
|
|
# Catalogs
|
2015-11-10 08:42:29 +00:00
|
|
|
'DeclarativeCatalog',
|
2015-09-01 12:01:15 +00:00
|
|
|
'AbstractCatalog',
|
2015-11-10 15:58:04 +00:00
|
|
|
'DynamicCatalog',
|
2015-10-19 09:12:38 +00:00
|
|
|
'CatalogBundle',
|
2015-09-01 12:01:15 +00:00
|
|
|
'override',
|
|
|
|
|
|
|
|
# Providers
|
|
|
|
'Provider',
|
|
|
|
'Delegate',
|
|
|
|
'Factory',
|
|
|
|
'Singleton',
|
|
|
|
'ExternalDependency',
|
2015-09-14 07:53:24 +00:00
|
|
|
'StaticProvider',
|
2015-09-01 12:01:15 +00:00
|
|
|
'Class',
|
|
|
|
'Object',
|
|
|
|
'Function',
|
|
|
|
'Value',
|
|
|
|
'Callable',
|
|
|
|
'Config',
|
|
|
|
|
|
|
|
# Injections
|
2015-09-01 12:08:42 +00:00
|
|
|
'Injection',
|
2015-10-14 11:30:01 +00:00
|
|
|
'Arg',
|
2015-09-01 12:01:15 +00:00
|
|
|
'KwArg',
|
|
|
|
'Attribute',
|
|
|
|
'Method',
|
|
|
|
'inject',
|
|
|
|
|
|
|
|
# Utils
|
|
|
|
'is_provider',
|
|
|
|
'ensure_is_provider',
|
|
|
|
'is_injection',
|
|
|
|
'ensure_is_injection',
|
2015-10-14 11:30:01 +00:00
|
|
|
'is_arg_injection',
|
2015-09-01 12:01:15 +00:00
|
|
|
'is_kwarg_injection',
|
|
|
|
'is_attribute_injection',
|
|
|
|
'is_method_injection',
|
2015-10-07 10:36:28 +00:00
|
|
|
'is_catalog',
|
2015-10-19 09:12:38 +00:00
|
|
|
'is_catalog_bundle',
|
|
|
|
'ensure_is_catalog_bundle',
|
2015-09-01 12:01:15 +00:00
|
|
|
|
|
|
|
# Errors
|
|
|
|
'Error',
|
2015-10-23 12:20:25 +00:00
|
|
|
|
|
|
|
# Version
|
|
|
|
'VERSION'
|
2015-09-01 12:01:15 +00:00
|
|
|
)
|