nickosh / nsingleton

Just another singleton pattern implementation. Thread-safe, with type casting.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

NSingleton

🌟 Features | πŸ“Œ What and why | βš™οΈ Run and configuration | πŸ“œ License

New Singleton decorator. Just another singleton pattern implementation. Thread-safe, with type casting.

🌟 Features

  • Yet another singleton decoration implementation. This one just works;
  • Thread-safe decorator?! I'm not really sure it works or is needed, but let it be;
  • Type casting! VSCode's linters are not screaming and auto-completion works as expected;

πŸ“Œ What and why

Just wanted to push my singleton as a library to be able to reuse it in my projects. Going to support it as well. Please do not hesitate to ask questions or make suggestions if anything.

βš™οΈ Run and configuration

Install library with PyPi, import and use.

πŸ“œ License

Distributed under the MIT License license. See LICENSE for more information.

About

Just another singleton pattern implementation. Thread-safe, with type casting.

License:MIT License


Languages

Language:Python 100.0%