Picodi

Latest version: v0.30.0

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

Scan your dependencies

Page 4 of 7

0.15.0

- Added ability to pass custom `scope_class` to `init_dependencies` and `shutdown_dependencies`
- Added `ContextVarScope` for storing dependencies in `contextvars`
- Renamed `_internal` module to `support`
- Breaking changes:
- Removed `ParentCallScope`
- Renamed `enter_decorator` and `exit_decorator` to `enter_inject` and `exit_inject`
- Renamed `LocalScope` and `GlobalScope` to `AutoScope` and `ManualScope`
- `Scope` now can't be imported, instead use `AutoScope` or `ManualScope`
- Replaced `Scope.close_local` and `Scope.close_global` with `[AutoScope | ManualScope].enter` and `[AutoScope | ManualScope].shutdown`

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

Page 4 of 7

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.