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.6.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.6-py3-none-any.whl
(2.7 kB
view details)
File details
Details for the file alone-0.1.6.tar.gz.
File metadata
- Download URL: alone-0.1.6.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 |
94caf0485b5cb47a53526afe47f7a59e19802ae1c4445a94e79155775c23f72a
|
|
| MD5 |
d0452e4fd201828c6977680ec262e078
|
|
| BLAKE2b-256 |
97275375519d503c14e7ee7105ea713830314601875a3d651c6c8e9b909d1f1a
|
File details
Details for the file alone-0.1.6-py3-none-any.whl.
File metadata
- Download URL: alone-0.1.6-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 |
07d4d6893f9f35e1e6d82f40d64ef725a88f6d1871cd7afabdfcd1a266b544d1
|
|
| MD5 |
0949ca0062b8c2659bb45c1a2664c6a7
|
|
| BLAKE2b-256 |
8a0509b2b0da70a142921af43a5a80b5ea6858e25bf06246ec67d20070fc508e
|