Picodi

Latest version: v0.21.0

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

Scan your dependencies

Page 1 of 5

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

0.19.0

- `ignore_manual_init` argument of `dependency` decorator now can be callable type

0.18.0

- Added `helpers.enter` context manager for resolving dependencies in pytest fixtures

0.17.1

- Fixed typehints
- Fixed rare error when `shutdown_dependencies` raises "RuntimeError: There is no current event loop"

0.17.0

- Updated docstrings

Page 1 of 5

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.