di-ioc
Inversion of control / dependency injection for python
TODO:
- Add AbstractLifetime class for singleton and scoped lifetimes
- Use ServiceRequest as the key to retrieve a service instead of just a type
- This would change AbstractServiceProvider, AbstractServiceContainer, ServiceFactory to accept a ServiceRequest object that defines what service needs to be returned. It still allows for retrieving based on a type, but also allows for more complex resolving needs.
- Maybe add a Resolver layer inside the ServiceProvider that takes the request and ChainMap of service factories to resolve the requested service. It could be customized by user if needed.
Release files for di-ioc 0.0.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| di_ioc-0.0.5.tar.gz | 7.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| di_ioc-0.0.5-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 14.9 kB
Release files / di_ioc-0.0.5.tar.gz
| Download URL | di_ioc-0.0.5.tar.gz |
|---|---|
| Size | 7.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
48f79cef4aea73de3fb04400d3c53ebc686f9ac8776920927603fa58bcb61eea
|
|
BLAKE2b-256 checksum How to use checksums |
53b72dd41e12b40e9b1fae10f7936abb81f98f0abdd50993a8cb069691d6ba25
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
python-httpx/0.23.0
|
Release files / di_ioc-0.0.5-py3-none-any.whl
| Download URL | di_ioc-0.0.5-py3-none-any.whl |
|---|---|
| Size | 7.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
7e28e3920b3d4f90ce33cbd1991885d38213cccc34fcb7855e85fc8ec31be9e6
|
|
BLAKE2b-256 checksum How to use checksums |
67b27173802c58613d0d87bf4c074db26e34561e770768cde4f3d1486aea429d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
python-httpx/0.23.0
|