Install & Compatibility
Where this runs
tested against v0.2.1 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
muslpy 3.10–3.95 runs
installs and imports cleanly · install 0.0s · import 0.000s · 17.9MB
glibcpy 3.10–3.95 runs
installs and imports cleanly · install 1.5s · import 0.000s · 18MB
16MB installed
● package 16MB
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
Store
✓ from in_n_out import Store
✗ from in_n_out import Injector
inject
✓ from in_n_out import inject
provide
✓ from in_n_out import provide
Simple dependency injection and result processing example.
from in_n_out import Injector, Processor, intake
class MyService:
def greet(self, name: str) -> str:
return f"Hello, {name}!"
injector = Injector()
processor = Processor()
@injector.register
@processor.register
def my_function(name: str) -> str:
service = MyService()
return service.greet(name)
result = processor.process(my_function, name="World")
print(result)
Upgrade
Version history
0.2.1latest on PyPI · released Apr 22, 2024
Audit
Dependencies
No dependency data recorded yet.