{"categories":[{"label":"Libraries","url":"https://skillfed.io/packages/category/software-development-libraries/9"},{"label":"Python Modules","url":"https://skillfed.io/packages/category/software-development-libraries-python-modules/18"}],"enrichment":{"capability":"Kink is a lightweight dependency injection container for Python that automatically resolves and injects dependencies into classes and functions using decorators and type annotations.","skillfed_tags":["dependency-injection","inversion-of-control","autowiring"],"use_cases":["Bootstrap configuration and database connections at startup, then inject them throughout your application without passing through signatures.","Build testable class hierarchies by injecting mock implementations in tests while using real implementations in production.","Create plugin or factory patterns where the container automatically instantiates the correct implementation based on type annotations.","Manage async service initialization and lifecycle in asyncio-based applications without manual state management.","Reduce boilerplate in multi-layer applications by letting the container wire dependencies automatically."],"what_it_does":"Kink is a dependency injection container that manages object creation and dependency resolution for Python applications. It allows you to register services (either eagerly or on-demand) in a central container and then automatically inject them into classes and functions via the @inject decorator. The container supports both name-based and type-annotation-based dependency matching, with a clear priority system: manually passed arguments override name matches, which override type annotations.\n\nThe package solves the problem of tightly coupled code by letting you define dependencies externally rather than hardcoding them. It supports factories (services created fresh on each request), lazy initialization via lambdas, and async operations. With only typing_extensions as a dependency, it integrates cleanly into modern Python projects supporting versions 3.8 through 3.14.","worth_installing":"Yes. Kink is a solid choice for Python projects that want dependency injection without heavyweight frameworks. It has low install friction, active maintenance, no known vulnerabilities, a permissive MIT license, and broad Python version support. Use it when you want to decouple components and improve testability without adopting a full web framework."},"id":"kink","links":{"html":"https://skillfed.io/packages/kink","md":"https://skillfed.io/packages/kink.md","pypi":"https://pypi.org/project/kink/"},"maintenance":{"status":"active"},"meta":{"latest_release":"2026-03-19","license_spdx":null,"license_treatment":"permissive","name":"kink","python_support":"supports_current","summary":"Dependency injection for python."},"popularity":{"monthly_downloads":132726,"position":11539,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"0.9.0"}
