Picodi

Latest version: v0.25.0

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

Scan your dependencies

Page 3 of 6

0.14.0

- Added `helpers.lifespan` function for simple resource management

0.13.0

- Fix async singleton through sync resolving

0.12.0

- `inject` now can be placed on bottom with `contxtlib.asyncontextmanager`
- Fix scopes closing when injecting in generator functions
- Fix scopes closing in dependencies

0.11.0

- Removed dead code branches
- Refactor injection logic
- Fix problems with generators
- Register dependencies in `inject`, not in `Provide`
- Get rid of `in_use` parameter in `Provider`

0.10.0

- Backward incompatible changes
- Renamed `init_resources` and `shutdown_resources` to `init_dependencies` and `shutdown_dependencies`
- Removed `resource` decorator (use `dependency` decorator with `SingletonScope` instead)
- Expose scopes to public API

0.9.0

- Experimental release (all changes are under the hood, there is no public API yet)
- Add `dependency` decorator, now you can specify scope_class, even user-defined
- Add `ParentCallScope` - dependency result cached for lifetime of parent function call

Page 3 of 6

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.