
Open Source ยท Python ยท snoodleboot
The factory system
Python deserves
Thread-safe. Type-safe. Zero magic.
Register once, create anything.
$
uv add sweet-tea
What's in the box
๐
Thread-Safe Registry
RLock-backed global registry. Concurrent reads and writes without races.
๐งฌ
Type-Safe Generics
Full TypeVar support with
__class_getitem__. Your IDE stays happy.๐
Flexible Key Matching
MyClass, my_class, or myclass โ all resolve to the same entry.๐
Lazy Singletons
SingletonFactory caches on first create. No decorators, no metaclasses.
๐
Optional Dependencies
Graceful fallbacks with clear warnings. Nothing blows up at import time.
๐ฆ
Auto-Registration
Call
fill_registry() and every class in your package is registered instantly.60-second quickstart
Installation
Built by snoodleboot, LLC ยท Apache 2.0