Picodi

Latest version: v0.25.0

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

Scan your dependencies

Page 1 of 6

0.25.0

- Patch dependency tree when resolving dependencies with overrides
- Breaking changes:
- If you try to override a dependency that is already is use in another override, you will get an error

0.24.0

- revert tags

0.23.0

- Now you can mark you dependencies with tags for more granular control over their lifecycle
- Breaking changes:
- Removed `ignore_manual_init` argument from `dependency` decorator
- `lifespan` now has new signature

0.22.0

- `enter` now respects overrides
- `lifespan` is a factory decorator now

0.21.0

- Make `Dependency.__call__` async because FastAPI always runs Picodi deps in threadpool even if they are async
- Rename `Dependency` to `Depends` [internal change]
- Run mypy in tests directory
- Make sure that `inject` doesn't change type of wrapped function (e.g. coroutinefunction, generatorfunction, etc.)
- Added Starlette integration
- Added FastAPI integration
- Breaking changes:
- Return value of `Provide` no longer has `__call__` method

0.20.0

- Fixed bug with contextvars when `init_dependencies` run in different context
- Breaking changes:
- Changed default scope class of `init_dependencies` and `shutdown_dependencies` to `SingletonScope

Page 1 of 6

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.