Packaged selections from Python Decorator Library on wiki.python.org
Project description
###Singleton Decorator Library
A decorator from wiki.python.org Python Decorators Library, namely https://wiki.python.org/moin/PythonDecoratorLibrary#Singleton
This has some fixes, plus a threadsafe version
from singleton_decorator1 import singleton
or
from singleton_decorator1 import threadsafe_singleton as singleton
The library can be built with poetry >= 2.0: [Recommended] if needed, install pyenv pyenv install 3.10 pyenv local 3.10
[required] (pip show poetry | grep -q "Version: 2") || pip install --ignore installed poetry==2
poetry env use $(pyenv which python) or poetry env use $(which python)
poetry install
poetry build
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
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 singleton_decorator1-0.3.2.tar.gz.
File metadata
- Download URL: singleton_decorator1-0.3.2.tar.gz
- Upload date:
- Size: 15.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.1.3 CPython/3.10.17 Linux/6.8.0-63-generic
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4d6a311db52a0e5f73e8841e679a5b811c8352c490e8622083ad99faba3be624
|
|
| MD5 |
d15cfffd7884e0c8b6e4f4e2d08d9cbd
|
|
| BLAKE2b-256 |
9f36b09c4199864ff5d472a74c977d84a075e188ba66c8b3862a5183cfbb27b2
|
File details
Details for the file singleton_decorator1-0.3.2-py3-none-any.whl.
File metadata
- Download URL: singleton_decorator1-0.3.2-py3-none-any.whl
- Upload date:
- Size: 18.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.1.3 CPython/3.10.17 Linux/6.8.0-63-generic
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
75999b34de670c4414156f474cff43f657978364312008fc7ed2b8ec00974afa
|
|
| MD5 |
0666b5dbdcfbb3486d6dc3a5b1209827
|
|
| BLAKE2b-256 |
a358c82996fd0abf65440ac41e9a6b96d7150f4603c515516ea911bdb10b6dc9
|