Punq

Latest version: v0.7.0

Safety actively analyzes 622295 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 1 of 2

0.7.0

-------------------
Dropped Python3.7 support.

0.6.0

-------------------
Replaced pipenv and Makefiles on Travis with this Hypermodern gubbins on
Github Actions.

Deprecated
The types `MissingDependencyException`, `InvalidForwardReferenceException`, and
`InvalidRegistrationException` have been given the flake8 compatible names,
`MissingDependencyError`, `InvalidForwardReferenceError`, and
`InvalidRegistrationError` respectively.

The original classes are still present and usable, but will be removed from the
code with the upcoming 1.0 release.

0.4.1

-------------------
The container now includes itself as a dependency. This makes some funky
use-cases simple to implement, eg. dynamic dispatch to multiple
implementations.

0.4.0

-------------------
Punq now supports registering implementations as singleton. Singleton
instances are cached per-container, and instantiation is lazy, ie. we defer
creation until we first resolve the service.
Hat tip to `jbcpollak`_

0.3.0

-------------------
Fixes
Punq only passes required arguments to nested dependencies. Previously, we would pass
all the arguments in our context as kwargs, which caused unintuitive failures if constructors
weren't expecting them.
Fixed by `Thielen B`_

0.2.1

-------------------
Fixes
Punq will now prefer to use a provided resolution argument instead of creating it anew.

Page 1 of 2

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.