$npx skillfedfor your agent

taskiq-dependencies

FastAPI like dependency injection implementation

With conditionsPyPI Application FrameworksReleased Feb 20251.8M downloads / moPure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — taskiq_dependencies-1.5.7-py3-none-any.whl
v1.5.7 · released 2025-02-26 · Python <4.0,>=3.9 · 1 runtime deps: typing-extensions

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—suitable for stable use but not for projects requiring active upstream support.AI-flagged interpretation of the facts on this page — verify before relying

Before you install

  • Low install friction with a single runtime dependency (typing-extensions).
  • Maintenance status is aging—last release was 534 days ago—so expect slower response to issues, though the package remains stable for existing use.

License · maintenance · safety

(unclear) — License status is unclear; no SPDX identifier or raw license text is available in the metadata. Verify the actual license before using in proprietary or restricted contexts.

last release 2025-02-26 (534 days)

0 known vulnerabilities (OSV.dev, 2026-08-14) · 1,806,804 downloads/mo, #3,534 on PyPI

Verify before relying

pip install taskiq-dependencies

from taskiq_dependencies import Depends, DependencyGraph

def dep1() -> int:
    return 1

def target_func(some_int: int = Depends(dep1)):
    return some_int + 1

graph = DependencyGraph(target_func)
with graph.sync_ctx() as ctx:
    result = target_func(**ctx.resolve_kwargs())
  • Whether the package is still actively maintained or in maintenance-only mode
  • What the actual license is (unclear in metadata)
  • Performance characteristics when resolving large or deeply nested dependency graphs
Same gist for agents: .md · .json

What it is and 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.

The 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–3.13.

Use it for

  • 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.

Worth the install?

AI-flagged interpretation of the facts on this page. Verify before relying on it.

With conditions

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—suitable for stable use but not for projects requiring active upstream support.

Install

taskiq-dependencies on PyPI

Before you install

Low install friction with a single runtime dependency (typing-extensions). Maintenance status is aging—last release was 534 days ago—so expect slower response to issues, though the package remains stable for existing use.

License in practice

License status is unclear; no SPDX identifier or raw license text is available in the metadata. Verify the actual license before using in proprietary or restricted contexts.

Quickstart

pip install taskiq-dependencies

from taskiq_dependencies import Depends, DependencyGraph

def dep1() -> int:
    return 1

def target_func(some_int: int = Depends(dep1)):
    return some_int + 1

graph = DependencyGraph(target_func)
with graph.sync_ctx() as ctx:
    result = target_func(**ctx.resolve_kwargs())

Verify before relying

  • Whether the package is still actively maintained or in maintenance-only mode
  • What the actual license is (unclear in metadata)
  • Performance characteristics when resolving large or deeply nested dependency graphs

Package facts

LicenseNot declared unclear
Python supportSupports the current Python release <4.0,>=3.9
Install frictionLow. Pure-Python wheel
Runtime dependencies
1 package
typing-extensions
MaintenanceAging 534 days since the last release
First released
Downloads1,806,804 / month, #3,534 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone known OSV.dev, checked 2026-08-14
Classifiers
Intended Audience :: DevelopersOperating System :: OS IndependentProgramming Language :: PythonProgramming Language :: Python :: 3Programming Language :: Python :: 3 :: OnlyProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.9Typing :: Typed

Evidence: taskiq_dependencies-1.5.7-py3-none-any.whl

Tags

Capabilities
dependency injection frameworkfastapi-like di systemasync dependency resolutiondependency graph resolverpython di libraryfunction parameter injectiondependency lifecycle management
Topics
dependency-injectionasync-supportfastapi-inspired
PyPI keywords
taskiqdependenciesinjectionasyncDI

Let your AI agent find packages like this

Example. Real query, live index.

You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.

wish › “fastapi-like di system”

  • taskiq-dependenciesProvides FastAPI-style dependency injection for Python projects,…
  • fast-dependsFastDepends provides a standalone dependency injection system…
  • allukaAlluka is a type-based dependency injection framework that uses…

Give your agent the search over MCP, or paste the wish link into any chat.

More Application Frameworks packages

fastapi Worth it
PyPI · Software Development · released Jul 2026

FastAPI is a Python web framework for building REST APIs using type hints, with automatic request validation, serialization, and interactive API documentation.

MITpure Python · 3.10+
568.6Mdownloads / mo
annotated-doc With conditions
PyPI · Software Development · released Jul 2026

Provides a way to document function parameters, class attributes, return types, and variables inline using Python's `Annotated` type hint syntax instead of traditional docstrings.

MITpure Python · 3.9+
456.2Mdownloads / mo
textual Worth it
PyPI · Application Frameworks · released Jun 2026

Textual is a Python framework for building cross-platform user interfaces that run in the terminal or web browser using a modern, component-based API.

Install it if you're developing CLI tools, dashboards, or interactive terminal applications.

MITpure Python
443.6Mdownloads / mo
typer Worth it
PyPI · Software Development · released Aug 2026

Typer builds command-line applications from Python functions using type hints, automatically generating help text, argument parsing, and shell completion.

Install it if you are building CLIs in Python.

MITpure Python · 3.10+
369.3Mdownloads / mo
mcp Worth it
PyPI · Application Frameworks · released Jul 2026

Build and connect to Model Context Protocol servers that expose tools, resources, and prompts to LLM applications over stdio, HTTP, or SSE transports.

Install it if you need to build or connect to servers.

MITpure Python · 3.10+
319.3Mdownloads / mo
Werkzeug Worth it
PyPI · Application Frameworks · released Apr 2026

Werkzeug is a WSGI utility library providing request/response objects, URL routing, an interactive debugger, HTTP utilities, and a development server for building web applications.

BSD-3-Clausepure Python · 3.9+
268.1Mdownloads / mo

See also fast-depends · taskiq-fastapi · fastapi-injectable · typer-injector · rodi · taskiq · alluka · taskiq-redis · injector · wireup