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.3.tar.gz
(7.7 kB
view hashes)
Built Distribution
Close
Hashes for pytel_inject-0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 65384188cb1e08ad49c48aabd7c62754379945f4971f2171bb8e0acbf85ef0c0 |
|
MD5 | 1f0019acec8ce0a366a92da4adfafe1d |
|
BLAKE2b-256 | 58e184642d4d7c86576a7940be30929e950d8f43c7fdde74a290de78ed1639aa |