{"categories":[{"label":"Application Frameworks","url":"https://skillfed.io/packages/category/software-development-libraries-application-frameworks/5"}],"enrichment":{"capability":"Adds FastAPI-style dependency injection to Typer CLI applications, allowing you to define reusable parameter dependencies and inject them into multiple commands.","skillfed_tags":["cli-framework","dependency-injection","typer"],"use_cases":["Share parsed configuration (host, port, credentials) across multiple CLI commands without repeating option definitions.","Build composite parameters from multiple CLI options\u2014e.g., combine host and port into an Address tuple for reuse.","Centralize validation logic for common parameter types across a multi-command CLI tool.","Reduce boilerplate in CLI tools with many commands that accept overlapping sets of options.","Organize CLI parameter handling using dependency injection patterns familiar from web frameworks."],"what_it_does":"typer-injector bridges Typer CLI applications with FastAPI-style dependency injection, letting you define reusable parameter factories and inject them into commands via type annotations. Instead of repeating the same option parsing logic across multiple commands, you write a dependency function once and reference it by annotating parameters with Depends().\n\nThe package wraps Typer's InjectingTyper class and works with Typer's Option and Argument annotations. It's useful when your CLI has multiple commands that share common parameters\u2014like database connections, configuration objects, or parsed composite arguments\u2014that you want to define and validate in one place. The dependency system resolves these at command invocation time, similar to how FastAPI resolves dependencies for route handlers.","worth_installing":"Yes, if you're building a Typer CLI with multiple commands that share parameters or need centralized dependency logic. The package is actively maintained, has low install friction, carries no security vulnerabilities, and uses a permissive MIT license. Start with it if you're already using Typer and find yourself repeating option definitions across commands."},"id":"typer-injector","links":{"html":"https://skillfed.io/packages/typer-injector","md":"https://skillfed.io/packages/typer-injector.md","pypi":"https://pypi.org/project/typer-injector/"},"maintenance":{"status":"active"},"meta":{"latest_release":"2026-04-29","license_spdx":"MIT","license_treatment":"permissive","name":"typer-injector","python_support":"supports_current","summary":"Dependency injection for typer"},"popularity":{"monthly_downloads":102870,"position":12839,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"0.3.0"}
