Package xinject
Used to lazily created shared singleton-like objects in a decoupled way.
Expand source code
"""
Used to lazily created shared singleton-like objects in a decoupled way.
"""
from .context import XContext
from .dependency import Dependency, DependencyPerThread
from .proxy import CurrentDependencyProxy
Sub-modules
xinject.context
-
Manage shared dependency and dependency injection …
xinject.dependency
-
Easily create singleton-like classes in a sharable/injectable/decoupled way …
xinject.errors
xinject.proxy
-
Used to have a normal looking object that can be imported directly into other modules and used …
xinject.pytest_plugin
-
Auto-loaded common fixtures for helping with unit-testing …