A Testable Singleton Decorator
JSON →The `singleton-decorator` is a Python library (version 1.0.0, last released in 2017) that provides a simple decorator to implement the singleton design pattern for classes. It aims to address common pitfalls of other singleton implementations, specifically making the decorated classes more amenable to unit testing by exposing the original class via a `__wrapped__` attribute. The library is stable but not actively developed.
Traffic · last 30 days ↑900% vs prev 7d
total hits 13
actors 5 distinct systems
last hit 3d ago AhrefsBot
top countries 🇺🇸 United States · 🇩🇪 Germany · 🇫🇷 France · 🇨🇦 Canada
Resources
API endpoints
full doc /v1/registry/singleton-decorator
compatibility /v1/registry/singleton-decorator/compatibility