Clean-ioc

Latest version: v0.18.0

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

Scan your dependencies

Page 1 of 4

0.18.0

-----
container.register(ServiceType, ImplementationType) now allows resolving from implementation types
container.resolve(ServiceType) and container.resolve(ImplementationType) both work for resolving.

0.17.0

-----
improvements to how generic type args are mapped in generic dependencies
export fast api extension dependencies as already wrapped in Depends
Remove dynamic name generation when regestering subclasses
more node filters
more registration filters
improve typing for nodes

0.16.1

-----
make Tag class destructurable for filter functions

0.16.0

-----
BREAKING CHANGES:
Removed ParentContext and DecoratorContext and just use Nodes directly
DecoratorContextFilter replaced with NodeFilter
ParentContextFilter replaced with NodeFilter
clean_ioc.dependency_context_filters replaces with clean_ioc.node_filters
parent_context_filter arg replaced with parent_node_filter in all registartion methods
decorator_context_filter arg replaced with decorator_node_filter in all decorator methods

0.12.0

-----
Added predicates for registration filters
Fix bug with OnlyRunOncePerInstanceBundle
Added future support for python 3.12 generics

0.11.0

-----
Remove deprecated container.append_module()
Add unparenting to cached nodes after resolving context is complete to avoid potential memory leaks

Page 1 of 4

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.