Opyoid

Latest version: v2.0.2

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

Scan your dependencies

Page 2 of 4

1.5.0

Features
- Added `named` and `scope` parameters to item bindings, by default they keep the parent MultiBinding name and scope
(as they did before)

1.4.0

Features
- Module classes can now be installed (instances can still be installed), the contained bindings will be created only
once if the module class installed multiple times
- Provider bindings can now bind any typed function as a provider, this is now the preferred way to create providers but
provider classes are still supported

Fixed
- Fixed missing bindings in log when adding item bindings to a previously existing multi binding

1.3.0

Features
- Instances created from a class in a MultiBinding with a Singleton scope can now be reused
- If you have a class A that requires List[B], a multibinding on B that binds subclasses B1 and B2,
and another class C that requires B1, the same instance of B1 will be shared between A and the list in C

1.2.0

Features
- Added `conditional_on_env_var` decorator that can be put on modules to easily enable / disable them through
environment variables

1.1.0

Features
- Added official support for Python 3.10
- Added support for Union[...] type, which injects the first item type for which bindings exist
- Added support for List[Union[...]] type, which injects a list combining all the items types in the union

1.0.1

Fixes

- Using auto bindings does not ignore existing bindings anymore (bug introduced in 0.10.0)
- The error message in cyclic dependency errors is now displaying the dependencies in a more logical order (from the parent class to the dependencies)

Page 2 of 4

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.