Skip to main content

Unintrusive dependency injection for Python 3.6 +

Project description

.. image::
.. image::


An unintrusive library for dependency injection and inversion of control in Python 3.6+

## [0.2.0] 2019-02-12
### Fixes
- Added handling for typing.ForwardRef

## [0.1.0] 2019-02-11
### Breaking Changes
- Added explicit `instance` kwarg to `register` which replaces the previous behaviour where
`container.register(Service, someInstance)` would register a concrete instance.
This fixes

## 0.0.1
- Basic resolution and registration works
- Punq is almost certainly slow as a dog, non thread-safe, and prone to weird behaviour in the edge cases.

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for punq, version 0.2
Filename, size File type Python version Upload date Hashes
Filename, size punq-0.2.tar.gz (19.1 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page