Releases: sukovanej/inseminator
Releases · sukovanej/inseminator
use poetry
preload_injected functionality
- add
preload_injected
interface that will preload cache in all injected functions
add caching for inject decorator
- support caching in
inject
decorator by default - add new
inject_scoped
for per-call resolving of dependencies
inject decorator: calculate the inspect once
- a little speed up of the inject decorator
add possibility to collect metrics
- measure inseminator overhead in injected functions
add better error message for missing dependencies
when dependency can't be constructed the inseminator will raise an error with the dependency path
upgrade test requirements and fix injector
- upgrade test requirements
- fix function decorators
lazy injection and fix of mixed arguments invocation
inject
method is now lazy in the evaluation and constructs dependencies in the call-time- injected function can now be called with position and kw-args and dependencies independently of the position of the dependency parameter
py.typed added
now mypy will recognize inseminator during the static analysis
Pydantic's BaseSettings support
The resolver is now able to automatically construct BaseSettings
object specified as a dependency.