{"categories":[{"label":"Application Frameworks","url":"https://skillfed.io/packages/category/software-development-libraries-application-frameworks/2"}],"enrichment":{"capability":"Provides FastAPI-style dependency injection for Python projects, resolving dependency graphs and managing both synchronous and asynchronous dependency lifecycles.","skillfed_tags":["dependency-injection","async-support","fastapi-inspired"],"use_cases":["Add dependency injection to web frameworks or custom async applications without pulling in a full framework.","Manage database sessions, connection pools, or other resources with automatic setup and cleanup via generator dependencies.","Mock or replace dependencies in unit tests by passing replaced_deps to the context without modifying production code.","Build plugin systems or modular architectures where components declare their dependencies as function parameters.","Handle async initialization and teardown logic in async generators for service startup and resource cleanup."],"what_it_does":"Taskiq-dependencies is a standalone dependency injection library inspired by FastAPI's design. It builds a dependency graph from function signatures, validates for cycles at initialization, and resolves dependencies in the correct order. You define dependencies using the Depends() marker and call DependencyGraph to analyze a target function, then use sync_ctx() or async_ctx() to resolve and inject them.\n\nThe library handles generator-based dependencies with setup/teardown semantics, supports async dependencies and async generators, allows runtime dependency replacement for testing, and can inject metadata about parameters via ParamInfo. It also supports generic type parameters for class-based dependencies. The package has no external dependencies beyond typing-extensions and works across Python 3.9\u20133.13.","worth_installing":"Yes, if you need lightweight dependency injection in a Python project and are comfortable with an aging but stable library. Low install friction and no external dependencies make it easy to adopt. Verify the license first, and be aware that maintenance is slow\u2014suitable for stable use but not for projects requiring active upstream support."},"id":"taskiq-dependencies","links":{"html":"https://skillfed.io/packages/taskiq-dependencies","md":"https://skillfed.io/packages/taskiq-dependencies.md","pypi":"https://pypi.org/project/taskiq-dependencies/"},"maintenance":{"status":"aging"},"meta":{"latest_release":"2025-02-26","license_spdx":null,"license_treatment":"unclear","name":"taskiq-dependencies","python_support":"supports_current","summary":"FastAPI like dependency injection implementation"},"popularity":{"monthly_downloads":1806804,"position":3534,"tier":"top_5000"},"security":{"n_vulnerabilities":0},"version":"1.5.7"}
