{"categories":[{"label":"Software Development","url":"https://skillfed.io/packages/category/software-development/4"},{"label":"Libraries","url":"https://skillfed.io/packages/category/software-development-libraries/3"},{"label":"Python Modules","url":"https://skillfed.io/packages/category/software-development-libraries-python-modules/6"}],"enrichment":{"capability":"FastDepends provides a standalone dependency injection system extracted from FastAPI, supporting both sync and async code with automatic type casting and pydantic validation.","skillfed_tags":["dependency-injection","type-validation","async-sync"],"use_cases":["Add FastAPI-style dependency injection to Flask or other non-async frameworks for cleaner parameter handling.","Build CLI tools or background job runners that need type validation and dependency resolution without a web server.","Create a custom framework or message queue handler (like Propan or FastStream) with built-in DI support.","Write testable async code with easy dependency mocking via the dependency override system.","Validate and cast function arguments automatically using pydantic without writing custom decorators."],"what_it_does":"FastDepends is a lightweight dependency injection container extracted from FastAPI's internals, stripped of HTTP-specific logic to work as a standalone library. It lets you decorate functions with @inject to automatically resolve dependencies, cast arguments to their annotated types, and validate inputs using pydantic\u2014all without requiring a web framework. Both synchronous and asynchronous functions are supported equally, and return values are also cast according to type annotations.\n\nThe library is designed to bring FastAPI's familiar DI patterns into non-web applications, legacy frameworks like Flask, or as a foundation for building custom frameworks. It includes a dependency override system for testing and a custom field mechanism for extending behavior, making it useful for message queues, CLI tools, and other contexts where you want structured dependency resolution without HTTP overhead.","worth_installing":"Yes. FastDepends is actively maintained, has no known vulnerabilities, minimal dependencies, and solves a real problem\u2014bringing FastAPI's clean DI patterns to non-web code. It's worth installing if you want structured dependency injection with type validation in sync or async code outside a web framework, or as a building block for custom frameworks."},"id":"fast-depends","links":{"html":"https://skillfed.io/packages/fast-depends","md":"https://skillfed.io/packages/fast-depends.md","pypi":"https://pypi.org/project/fast-depends/"},"maintenance":{"status":"active"},"meta":{"latest_release":"2026-03-02","license_spdx":"MIT","license_treatment":"permissive","name":"fast-depends","python_support":"supports_current","summary":"FastDepends - extracted and cleared from HTTP domain logic FastAPI Dependency Injection System. Async and sync are both supported."},"popularity":{"monthly_downloads":2039686,"position":3348,"tier":"top_5000"},"security":{"n_vulnerabilities":0},"version":"3.0.8"}
