$npx skillfedfor your agent

dishka

Cute DI framework with scopes and agreeable API

Worth itPyPI LibrariesReleased Apr 2026636.6K downloads / moApache-2.0Pure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — dishka-1.10.1-py3-none-any.whl
v1.10.1 · released 2026-04-25 · Python >=3.10 · 1 runtime deps: exceptiongroup

Yes. dishka is actively maintained, has no known vulnerabilities, installs with minimal friction, and solves a real problem—managing complex object graphs without global state or scattered markers. It's a good fit if you're building a modular application with multiple dependency scopes or need resource finalization. Not necessary for small scripts or projects with simple, flat dependencies.AI-flagged interpretation of the facts on this page — verify before relying

Before you install

  • Requires Python 3.10 or later.
  • Low friction: pure Python wheel with a single runtime dependency (exceptiongroup).
  • Active maintenance with recent releases; repository shows 1241 stars and last commit on 2026-08-14.

License · maintenance · safety

Apache-2.0 (permissive) — Apache-2.0 permissive license allows commercial and private use with minimal restrictions, making it suitable for most projects.

last release 2026-04-25 (111 days) · last repo commit 2026-08-14 · 1,241 stars

0 known vulnerabilities (OSV.dev, 2026-08-14) · 636,639 downloads/mo, #5,623 on PyPI

Verify before relying

pip install dishka

from dishka import Provider, Scope, make_container, provide

provider = Provider(scope=Scope.APP)
provider.provide(MyService)
container = make_container(provider)
service = container.get(MyService)
container.close()
  • Performance comparison claims against other DI frameworks—fact sheet notes it 'outperforms many alternatives' but provides no benchmarks.
  • Specific framework integrations supported beyond the documentation reference—which frameworks are 'out of the box'.
  • Whether finalization (cleanup on scope exit) works reliably with all dependency types or has known limitations.
Same gist for agents: .md · .json

What it is and what it does

dishka is a dependency injection container that solves the problem of passing objects through layers of constructors by centralizing dependency creation and lifecycle management. It lets you define providers that specify how to create dependencies, assign them to scopes (app-wide, per-request, or custom), and automatically handle resource cleanup when scopes end. The library focuses narrowly on DI without mixing in configuration, logging, or other concerns.

You define your classes with type hints, create providers that specify factories and scopes, combine them into a container, and then retrieve dependencies through the container. Higher-scoped dependencies (like app-level singletons) are accessible from lower scopes (like request-level), and finalization hooks let you close database connections or release other resources when a scope ends. It supports multiple Python versions from 3.10 onward and integrates with popular web frameworks.

Use it for

  • Web application request handling: create app-level singletons (database pools, config) and request-level instances (services, DAOs) with automatic cleanup.
  • Modular service architecture: split dependency factories into reusable provider classes instead of monolithic configuration.
  • Resource management: define cleanup logic (e.g., closing connections) alongside creation, ensuring resources are released when scopes exit.
  • Testing: swap real implementations for mocks by providing alternate providers without changing application code.
  • Multi-scope applications: manage dependencies with custom lifetimes beyond just app and request (e.g., per-user, per-transaction).
  • Framework integration: use built-in middleware or decorators to wire dishka into FastAPI, Starlette, or other supported frameworks.

Worth the install?

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

Worth it

Yes.

dishka is actively maintained, has no known vulnerabilities, installs with minimal friction, and solves a real problem—managing complex object graphs without global state or scattered markers. It's a good fit if you're building a modular application with multiple dependency scopes or need resource finalization. Not necessary for small scripts or projects with simple, flat dependencies.

Install

dishka on PyPI

Before you install

Low friction: pure Python wheel with a single runtime dependency (exceptiongroup). Active maintenance with recent releases; repository shows 1241 stars and last commit on 2026-08-14.

Requires Python 3.10 or later.

License in practice

Apache-2.0 permissive license allows commercial and private use with minimal restrictions, making it suitable for most projects.

Quickstart

pip install dishka

from dishka import Provider, Scope, make_container, provide

provider = Provider(scope=Scope.APP)
provider.provide(MyService)
container = make_container(provider)
service = container.get(MyService)
container.close()

Verify before relying

  • Performance comparison claims against other DI frameworks—fact sheet notes it 'outperforms many alternatives' but provides no benchmarks.
  • Specific framework integrations supported beyond the documentation reference—which frameworks are 'out of the box'.
  • Whether finalization (cleanup on scope exit) works reliably with all dependency types or has known limitations.

Package facts

LicenseApache-2.0 permissive
Python supportSupports the current Python release >=3.10
Install frictionLow. Pure-Python wheel
Runtime dependencies
1 package
exceptiongroup
MaintenanceActively maintained 111 days since the last release
Last repo commit
First released
Downloads636,639 / month, #5,623 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 :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14Topic :: Software Development :: LibrariesTyping :: Typed

Evidence: dishka-1.10.1-py3-none-any.whl

Tags

Capabilities
dependency injection containerIoC container Pythonscoped dependency managementresource finalization DIfactory pattern frameworkapplication lifecycle managementmodular provider pattern
Topics
dependency-injectionioc-containerscope-management

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 › “scoped dependency management”

  • dishkadishka is an IoC container that manages dependency injection with…
  • rodiRodi is a dependency injection container for Python that resolves and…
  • wireupWireup is a type-driven dependency injection container for Python…

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

More Libraries packages

urllib3 Worth it
PyPI · Libraries · released May 2026

urllib3 is an HTTP client library that provides thread-safe connection pooling, SSL/TLS verification, multipart file uploads, request retries, compression support, and proxy handling for Python applications.

MITpure Python · 3.10+
1.8Bdownloads / mo
requests Worth it
PyPI · Libraries · released May 2026

Requests is a Python HTTP library that simplifies sending HTTP/1.1 requests with automatic handling of headers, authentication, cookies, and response parsing.

Apache-2.0pure Python · 3.10+
1.8Bdownloads / mo
pluggy Worth it
PyPI · Libraries · released May 2025

Pluggy provides a plugin system that lets you define hook specifications and register implementations to be called in sequence, enabling extensible Python applications without tight coupling.

Install it if you're building an extensible application or framework.

MITpure Python · 3.9+aging
1.3Bdownloads / mo
python-dateutil Worth it
PyPI · Libraries · released Mar 2024

Provides parsing, arithmetic, and recurrence rule computation for dates and times, with timezone support and iCalendar RFC compliance.

Install it if you need to parse flexible date strings, compute relative dates, handle timezones, or work with recurrence rules—it's the de facto choice for these tasks.

Apache-2.0pure Python
1.2Bdownloads / mo
six With conditions
PyPI · Libraries · released Dec 2024

Six provides utility functions to write Python code that runs on both Python 2.7 and Python 3.3+, smoothing over language differences between the two versions.

MITpure Python
1.2Bdownloads / mo
pytest Worth it
PyPI · Libraries · released Jun 2026

pytest is a testing framework that lets you write test functions using plain assert statements and automatically discovers and runs them, with detailed failure reporting.

MITpure Python · 3.10+
1.1Bdownloads / mo

See also slack · kink · rodi · dependency-injector · wireup · alluka · simple-di · injector · fast-depends · in-n-out