{"categories":[{"label":"Python Modules","url":"https://skillfed.io/packages/category/software-development-libraries-python-modules/20"}],"enrichment":{"capability":"Wireup is a type-driven dependency injection container for Python that resolves and manages application dependencies at startup, supporting singletons, scoped, and transient lifetimes across sync and async code.","skillfed_tags":["dependency-injection","inversion-of-control","async-support"],"use_cases":["FastAPI applications: inject database, service, and config dependencies into route handlers without per-request overhead","Django projects: centralize service and repository wiring for views, middleware, and management commands","CLI tools (Click, Typer): inject config and services into command handlers with automatic lifecycle management","Background workers (Celery): share the same dependency graph across task definitions and ensure cleanup on task completion","Microservices: define dependencies once and reuse the container across multiple entry points (API, worker, scheduler)","Testing: override dependencies with context managers to isolate tests and restore the original graph automatically"],"what_it_does":"Wireup is a dependency injection container that uses Python type annotations to automatically resolve and wire dependencies at container startup. It supports multiple lifetimes (singleton, scoped, transient), async/await, resource cleanup via generators, configuration injection, and collection injection. The container validates the entire dependency graph on startup\u2014if it starts successfully, your wiring is correct\u2014avoiding runtime surprises. It integrates natively with FastAPI, Django, Flask, Starlette, Celery, Click, and Typer, and works equally well in standalone scripts, CLI tools, and background workers.\n\nThe library is designed for reuse: you write your application code once and inject the same dependencies into APIs, CLIs, workers, and scripts without rewriting wiring logic. It emphasizes fail-fast validation, thread-safety, and PEP 703 (no-GIL) readiness. Dependencies are registered via the @injectable decorator on classes, functions, generators, or dataclasses; the decorator's behavior adapts to the function signature (e.g., a generator becomes a resource with cleanup, an async function becomes an async dependency).","worth_installing":"Yes. Wireup is production-ready (Development Status 5), actively maintained, has no known vulnerabilities, and low install friction. It solves a real problem\u2014centralizing dependency management across multiple entry points\u2014with a clean API and fail-fast validation. Use it if you're building multi-entry-point applications (APIs, CLIs, workers) or want to avoid manual wiring boilerplate in frameworks like FastAPI or Django."},"id":"wireup","links":{"html":"https://skillfed.io/packages/wireup","md":"https://skillfed.io/packages/wireup.md","pypi":"https://pypi.org/project/wireup/"},"maintenance":{"status":"active"},"meta":{"latest_release":"2026-07-09","license_spdx":null,"license_treatment":"permissive","name":"wireup","python_support":"supports_current","summary":"Python Dependency Injection Library"},"popularity":{"monthly_downloads":99426,"position":13022,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"2.12.0"}
