Skip to main content

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)

Source distribution for di-ioc 0.0.5
File Size Uploaded
di_ioc-0.0.5.tar.gz 7.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for di-ioc 0.0.5
File Interpreter ABI Platform
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

Release history Release notifications | RSS feed

This release

0.0.5 This release

2 release files

0.0.4

2 release files

0.0.3

2 release files

0.0.2

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page