Skip to main content

Unintrusive dependency injection for Python 3.6 +

Project description

.. image:: https://travis-ci.org/bobthemighty/punq.svg?branch=master
:target: https://travis-ci.org/bobthemighty/punq
.. image:: https://img.shields.io/codecov/c/github/bobthemighty/punq.svg?style=flat
:target https://codecov.io/gh/bobthemighty/punq

Punq
====

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

## [0.2.0] 2019-02-12
### Fixes https://github.com/bobthemighty/punq/issues/9
- 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 https://github.com/bobthemighty/punq/issues/6


## 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.

Source Distribution

punq-0.2.tar.gz (19.1 kB view details)

Uploaded Source

File details

Details for the file punq-0.2.tar.gz.

File metadata

  • Download URL: punq-0.2.tar.gz
  • Upload date:
  • Size: 19.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.1

File hashes

Hashes for punq-0.2.tar.gz
Algorithm Hash digest
SHA256 3e7d531f99d35fb2f03ca1007c134bc0682a369057df0c7083c9369b665f7add
MD5 b717e8e09aace99c87ad5cdd896dc8e6
BLAKE2b-256 152087a6c98b2db54ffeadf29b84cbe8eaed2440a3c926fb7f3c7584561728ad

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page