Skip to main content

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

Project description

NSingleton

:star2: Features | :pushpin: What and why | :gear: Run and configuration | :scroll: License

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

:star2: 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;

:pushpin: 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.

:gear: Run and configuration

Install library with PyPi, import and use.

:scroll: License

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

nsingleton-0.1.0.tar.gz (3.1 kB view hashes)

Uploaded Source

Built Distribution

nsingleton-0.1.0-py3-none-any.whl (3.9 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page