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
Release history Release notifications | RSS feed
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)
Built Distribution
Close
Hashes for nsingleton-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 376b393b6dc9e0799a51659c6c7b3b49978da3c3a4f65d70a4a4f72e1eb12781 |
|
MD5 | 2bccbd495dbfbffd63e50f70f32ea561 |
|
BLAKE2b-256 | 0ef20a233c5d272aa877681f4b52630d6cfd62f462fff36bde3f538546d75642 |