{"categories":[{"label":"Application Frameworks","url":"https://skillfed.io/packages/category/software-development-libraries-application-frameworks/4"}],"enrichment":{"capability":"A strictly typed dependency injection library that lets you define and inject dependencies into functions using type annotations and a container pattern.","skillfed_tags":["dependency-injection","type-hints"],"use_cases":["Wiring configuration values (database URLs, API keys, feature flags) into application functions without passing them as arguments","Testing by temporarily overriding provider values without modifying production code","Building modular applications where components declare their dependencies declaratively rather than instantiating them directly","Creating factory-based object graphs where computed dependencies depend on other dependencies in a defined order"],"what_it_does":"simple-di is a dependency injection framework for Python that uses type annotations to wire dependencies into functions and methods. It provides a container pattern where you define providers (Static, Factory, SingletonFactory, Configuration) that compute or store values, then use the @inject decorator to automatically pass those values into function arguments. The library supports runtime value overrides via set() and reset() methods, making it useful for testing and configuration management.\n\nThe package depends only on dataclasses and types-dataclasses, keeping the runtime footprint minimal. It supports Python 3.6 through 3.9 and is actively maintained, though it remains in pre-alpha status. The strict typing support means you get IDE autocomplete and type checking for injected dependencies.","worth_installing":"Yes, if you need lightweight typed dependency injection for Python 3.6+. The low install friction, permissive license, and active maintenance make it safe to adopt. However, be aware it remains pre-alpha\u2014verify that its feature set and stability match your project's needs before relying on it in production."},"id":"simple-di","links":{"html":"https://skillfed.io/packages/simple-di","md":"https://skillfed.io/packages/simple-di.md","pypi":"https://pypi.org/project/simple-di/"},"maintenance":{"status":"active"},"meta":{"latest_release":"2022-02-22","license_spdx":null,"license_treatment":"permissive","name":"simple-di","python_support":"supports_current","summary":"simple dependency injection library"},"popularity":{"monthly_downloads":171836,"position":10352,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"0.1.5"}
