Skip to content

_Framework.Dependency (runtime)

Live 11 — Live Object Model & framework reference (descriptions and signatures).

Functions

depends(**dependencies)

get_dependency_for(obj, name, default=None)

inject(**k)

union(a, b)

wraps(wrapped, assigned=('__module__', '__name__', '__qualname__', '__doc__', '__annotations__'), updated=('__dict__',))

Classes

class DependencyError(Exception)

Common base class for all non-exit exceptions.

Methods

__init__(self, /, *args, **kwargs)

Initialize self. See help(type(self)) for accurate signature.

with_traceback(...)

Exception.with_traceback(tb) -- set self.traceback to tb and return self.

Attributes

  • args = <attribute 'args' of 'BaseException' objects>

class InjectionFactory

Methods

__init__(self, provides=None, *a, **k)

Initialize self. See help(type(self)) for accurate signature.

everywhere(self)

Attributes

  • into_class = NotImplemented
  • into_object = NotImplemented

class InjectionRegistry

Methods

__init__(self, parent=None, *a, **k)

Initialize self. See help(type(self)) for accurate signature.

get(self, key, default=None)
register_key(self, key, injector)
unregister_key(self, key, injector)

class Injector

Properties

  • provides

Methods

__init__(self, /, *args, **kwargs)

Initialize self. See help(type(self)) for accurate signature.

register(self)
unregister(self)

class RegistryInjector(Injector)

Properties

  • provides

Methods

__init__(self, provides=None, registry=None, *a, **k)

Initialize self. See help(type(self)) for accurate signature.

register(self)
unregister(self)

class dependency

Methods

__init__(self, **k)

Initialize self. See help(type(self)) for accurate signature.