This package contains a bunch of metaclasses that can be of use in many occasions. In particular we have:
Singleton: for Singleton objects;
AbstractSingleton: for abstract classes whose children will be Singletons;
NoDuplicates: this is a generalization of the Singleton concept. If a user calls this class more than once with the same arguments, it will always get the same instance of the first time (but different instances if it is called with other arguments).
Installation
$ pip install myusefulmetaclasses
Usage
import mum #that's the real name of the module
Documentation
That’s it. I have nothing to say more.
Release files for myusefulmetaclasses 0.0.7
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| myusefulmetaclasses-0.0.7.tar.gz | 2.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| myusefulmetaclasses-0.0.7-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 23.1 kB
Release files / myusefulmetaclasses-0.0.7.tar.gz
| Download URL | myusefulmetaclasses-0.0.7.tar.gz |
|---|---|
| Size | 2.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
022eecd82cca6437b6c8cd44db3a45e9ac22c025954bc4ed10cb55fb687ece12
|
|
BLAKE2b-256 checksum How to use checksums |
fbe8b123cee9a902d9ec7f3f981d28aa6bc2e10fdfe5cd115c322ea6a8abe6f5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.22.0 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.63.0 importlib-metadata/4.11.3 keyring/18.0.1 rfc3986/2.0.0 colorama/0.4.3 CPython/3.8.10
|
Release files / myusefulmetaclasses-0.0.7-py3-none-any.whl
| Download URL | myusefulmetaclasses-0.0.7-py3-none-any.whl |
|---|---|
| Size | 20.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f3afefe0a7ee1a3c00ad87a2d76ecb161d3f46f089c2eb484f389aab714a3906
|
|
BLAKE2b-256 checksum How to use checksums |
32f14526dfcc975627339554f2ce31c7b8eea795e48c63fcfb7444762e96f6ed
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.22.0 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.63.0 importlib-metadata/4.11.3 keyring/18.0.1 rfc3986/2.0.0 colorama/0.4.3 CPython/3.8.10
|