{"categories":[{"label":"Libraries","url":"https://skillfed.io/packages/category/software-development-libraries/6"}],"enrichment":{"capability":"Picobox is a lightweight dependency injection framework that manages object creation and scoping through explicit box-based registration and retrieval, with support for both values and factories.","skillfed_tags":["dependency-injection","inversion-of-control","zero-dependencies"],"use_cases":["Inject configuration objects and database connections into request handlers in web applications.","Manage thread-local or context-local service instances in multi-threaded or async codebases.","Decouple business logic from external dependencies like HTTP clients or logging systems.","Create testable code by swapping real implementations with mocks via different boxes.","Organize factory functions for complex object creation without polluting module scope."],"what_it_does":"Picobox is a dependency injection framework that decouples code by managing object creation and lifecycle through explicit registration in named boxes. You register values or factories into a box, then use decorators to inject them into functions\u2014the framework handles scope management (singleton, threadlocal, contextvars) and ensures thread-safe access. It avoids implicit injection and complex dependency graphs in favor of pragmatic, explicit demands.\n\nThe framework is designed for developers who want clean decoupling without heavyweight machinery. It supports both static values and factory functions, allows you to push boxes onto a stack for context-aware resolution, and stays lightweight at ~500 lines of code with no external dependencies. It works across Python 3.8\u20133.12 and both CPython and PyPy.","worth_installing":"Yes, if you want a pragmatic, lightweight DI solution without external dependencies. The zero-dependency design, thread-safety, and explicit injection model make it suitable for small to medium projects. However, the aging maintenance status means you should verify compatibility with your target Python version and assess whether the lack of recent updates aligns with your project's stability requirements."},"id":"picobox","links":{"html":"https://skillfed.io/packages/picobox","md":"https://skillfed.io/packages/picobox.md","pypi":"https://pypi.org/project/picobox/"},"maintenance":{"status":"aging"},"meta":{"latest_release":"2023-11-20","license_spdx":null,"license_treatment":"permissive","name":"picobox","python_support":"supports_current","summary":"Dependency injection framework designed with Python in mind."},"popularity":{"monthly_downloads":310283,"position":7747,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"4.0.0"}
