This repository was archived by the owner on Aug 10, 2024. It is now read-only.
v0.11.0
Features -------- - Add scope support. - Add annotated type hints support (PEP-593). - Add async injection support. - Multiple factories can be defined for the same class. - Cleaner testing support, by separating explicitly the case where test existing dependencies or want to create new ones. - All methods of `Service`, `Factory` and `Constants` are automatically wired to support annotated type hints anywhere. Breaking changes ---------------- - Remove `public` configuration for `Factory` and `Constants`. They didn't really bring any value, you hardly hide anything in Python. - Removed tags. They didn't bring enough value. - Reworked `inject`: it will only inject annotated type, nothing else anymore. `use_type_hint` has been replaced by `auto_provide` and `use_names` has been removed. - Reworked `Constants` to be more flexible. - Removed `world.singletons`. There was no way to track back where a singleton was defined. - Reworked `Wiring` to be simpler, not super class wiring