Metaclass that defines a class as a singleton
Project description
Alone
Metaclass that defines a class as a singleton.
Kudo to theheadofabroom from SO for the implementation
Getting started
Python 2:
import alone.MetaSingleton
class YourClass(alone.MetaSingleton):
pass
Python 3:
import alone.MetaSingleton
class YourClass(metaclass=alone.MetaSingleton):
pass
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
alone-0.1.7.tar.gz
(1.5 kB
view details)
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
alone-0.1.7-py3-none-any.whl
(2.7 kB
view details)
File details
Details for the file alone-0.1.7.tar.gz.
File metadata
- Download URL: alone-0.1.7.tar.gz
- Upload date:
- Size: 1.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.0 CPython/3.6.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
86e0b9a48efcf22cd62296439e645ad62c503b0d0c1ad13c4ef468a2b77e8fd5
|
|
| MD5 |
f142c76d2c235e6f92384310ed454aa3
|
|
| BLAKE2b-256 |
3082de5fdbeb59394ae063c8a8afa0b2c961cdeb9f70155bf22dbb6c3ce3b72a
|
File details
Details for the file alone-0.1.7-py3-none-any.whl.
File metadata
- Download URL: alone-0.1.7-py3-none-any.whl
- Upload date:
- Size: 2.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.0 CPython/3.6.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d72272d0e1411689bd0f71f949c8f9e589656abbf6fec9a55635a8cb255e7401
|
|
| MD5 |
8f7ad93b8372b9d35c15cb843ed1df41
|
|
| BLAKE2b-256 |
b7472e0702b5355ce0544282d7b3a7e830668354e7f5478bf30447d5f87481d5
|