# reagento/dishka

Cute dependency injection (DI) framework for Python with agreeable API and everything you need

Repository: https://github.com/reagento/dishka
Canonical: https://ross.abutalabs.com/products/dishka
Homepage: https://dishka.readthedocs.io
Language: Python
License: Apache-2.0
License Family: permissive
Topics: di, di-container, di-framework, ioc-container, python, dependency-injector, dependency-injection, dishka
Last push: 2026-08-25T11:46:08+00:00

## Health v2 (maintenance only)
Score: 86/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 99, release rhythm 81, longevity 68
- inputs: {"age_days": 963, "days_push": 8, "days_rel": 130, "gap_med": 14, "n_releases_24m": 16}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1265, forks 126 (observed 2026-08-28T04:04:10.858113+00:00)

## What it is
Dishka is a dependency injection (DI) framework for Python providing an IoC container with scoped lifecycles and a clean API. It focuses solely on DI without pulling in unrelated concerns, helping manage object wiring in applications.

## Use cases
- manage dependency injection in a python app
- replace manual object wiring with an ioc container
- scoped dependencies for web request lifecycles
- decouple service construction from business logic
- find a lightweight python di framework
- inject dependencies into fastapi or aiogram handlers

## When to choose
- you want a focused DI-only library with scoped lifecycles
- you are tired of passing dependencies through many layers
- you need framework integrations for popular Python web/bot frameworks

## When to avoid
- your project is small enough for simple manual wiring
- you want an all-in-one framework that also handles config, logging, etc.

## Facets
- artifact type: library
- maturity: active
- function: middleware, developer-tools
- domain: developer-tools, backend, web-development
- platform: python, cross-platform
- tags: dependency-injection, ioc-container, di-framework, scopes, python-library

## Member repositories
- reagento/dishka (main) score 86

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:10.858113+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T05:03:53.675974+00:00, confidence not recorded.
  - readme: https://github.com/reagento/dishka (fetched 2026-08-28T04:04:10.858113+00:00, sha 11fc5bdd4e23)
  - registry_pypi: https://pypi.org/pypi/dishka/json (fetched 2026-08-29T12:16:46.001316+00:00, sha b4bf1f61e35c)
- Data as of 2026-08-30T08:39:29.467469+00:00.
