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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file nsingleton-0.1.0.tar.gz.
File metadata
- Download URL: nsingleton-0.1.0.tar.gz
- Upload date:
- Size: 3.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.18
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c0a227684abcc236cc9087f694bbc4437ec342abf4ebb4a605f7bd40d962e838
|
|
| MD5 |
f8f2cc825cc0a69dd81d146ab0e0e477
|
|
| BLAKE2b-256 |
71767e0b8c65915ea51b15d6abd317a9798d6b424b7451223b038a49881ae2ed
|
File details
Details for the file nsingleton-0.1.0-py3-none-any.whl.
File metadata
- Download URL: nsingleton-0.1.0-py3-none-any.whl
- Upload date:
- Size: 3.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.18
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
376b393b6dc9e0799a51659c6c7b3b49978da3c3a4f65d70a4a4f72e1eb12781
|
|
| MD5 |
2bccbd495dbfbffd63e50f70f32ea561
|
|
| BLAKE2b-256 |
0ef20a233c5d272aa877681f4b52630d6cfd62f462fff36bde3f538546d75642
|