Injection of dependencies for python 3
Project description
For when your object graph is too big
class A:
def __init__(self, b: B):
self.b = b
class B:
pass
svc = {
'a': A,
'b': B,
}
context = Pytel(PytelContext(svc))
assert context.a.b == context.b
See usage for more cases
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pytel-inject-0.4.tar.gz
(7.7 kB
view hashes)
Built Distribution
Close
Hashes for pytel_inject-0.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 31fc082757de52ed9adc4f363edcd2958b8376215cd76cbded9e8147a95ae745 |
|
MD5 | 457bc86b21c702039e3336288ab8058e |
|
BLAKE2b-256 | abb980a39709de464527ecae7b7b9bc8c48197506b8654815f12dd232c27c5ea |