Picodi

Latest version: v0.30.0

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

Scan your dependencies

Page 2 of 7

0.26.0

- Rewrite `helpers.enter` as class-based context manager (now it behaves more predictably)
- Added `registry.touched` property and `registry.clear_touched` method for tracking
dependencies usage (useful for testing)
- Added pytest integration for simpler testing

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

Page 2 of 7

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.