mediapills.dependency_injection
¶
Submodules¶
Package Contents¶
Classes¶
Container DI implementation. |
- class Container(*args, **kw)[source]¶
Bases:
dict
Container DI implementation.
- update(self, others: Union[dict, MutableMapping]) None [source]¶
Update the dictionary with the key/value pairs from other, overwriting existing keys.
- template(self, key: str, template: str) None [source]¶
Format the specified value(s) and insert them inside the string’s placeholder.
- static _cp_func(func: Any) Any [source]¶
Make deepcopy of a function. Based on http://stackoverflow.com/a/6528148/190597 (Glenn Maynard)