{"categories":[{"label":"Application Frameworks","url":"https://skillfed.io/packages/category/software-development-libraries-application-frameworks/4"}],"enrichment":{"capability":"Lightweight dependency injection framework using type hints to automatically resolve and inject dependencies into functions, with optional result processing via registered processors.","skillfed_tags":["dependency-injection","type-hints","decorator-based"],"use_cases":["Inject database connections or configuration objects into handler functions without passing them explicitly","Register mock providers in tests to override real dependencies without modifying source code","Build plugin systems where different implementations of a type can be swapped at runtime","Attach logging or monitoring processors to function results for cross-cutting concerns","Manage service instances in web frameworks or CLI applications with dependency scoping"],"what_it_does":"in-n-out is a dependency injection framework that uses Python type hints to automatically resolve and provide dependencies to decorated functions. It lets you register provider functions that return instances of specific types, then mark functions with @ino.inject to have those dependencies automatically supplied at call time based on their type annotations. The framework also supports registering result processors\u2014functions that receive and handle return values from injected functions, enabling intentional side effects.\n\nThe design emphasizes minimal code changes: you decorate functions and register providers, and the framework handles resolution at runtime. It supports weighted providers (allowing temporary overrides via context managers) and works across Python 3.8\u20133.12. With no runtime dependencies and low install friction, it's suitable for applications ranging from simple scripts to larger frameworks that need pluggable dependency resolution.","worth_installing":"Yes, if you need lightweight dependency injection with type-hint-based resolution and minimal overhead. The permissive license, zero runtime dependencies, and active maintenance make it low-risk. However, it's still in Alpha status; evaluate whether the API is stable enough for your use case, and consider that more mature alternatives exist if you need battle-tested production guarantees."},"id":"in-n-out","links":{"html":"https://skillfed.io/packages/in-n-out","md":"https://skillfed.io/packages/in-n-out.md","pypi":"https://pypi.org/project/in-n-out/"},"maintenance":{"status":"active"},"meta":{"latest_release":"2024-04-22","license_spdx":null,"license_treatment":"permissive","name":"in-n-out","python_support":"supports_current","summary":"plugable dependency injection and result processing"},"popularity":{"monthly_downloads":179778,"position":10163,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"0.2.1"}
