Singleton Pattern

Implements the GoF Singleton pattern for controlled object lifecycle management in Python using module-level singletons, metaclass-based enforcement, threading-safe lazy initialization, and async-compatible variants.

paulpas 9955947 14.3 KB Updated

File contents

paulpas/agent-skill-router/tree/main/skills/coding/singleton-pattern commit 99559479d9

Frequently asked questions

npx skillmds@latest add paulpas/singleton-pattern