This is MUM: My Useful Metaclasses
Project description
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.
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 myusefulmetaclasses-0.0.7.tar.gz.
File metadata
- Download URL: myusefulmetaclasses-0.0.7.tar.gz
- Upload date:
- Size: 2.9 kB
- Tags: Source
- Uploaded using 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
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
022eecd82cca6437b6c8cd44db3a45e9ac22c025954bc4ed10cb55fb687ece12
|
|
| MD5 |
6ec339e0450a8a873b65a1e1849c0b21
|
|
| BLAKE2b-256 |
fbe8b123cee9a902d9ec7f3f981d28aa6bc2e10fdfe5cd115c322ea6a8abe6f5
|
File details
Details for the file myusefulmetaclasses-0.0.7-py3-none-any.whl.
File metadata
- Download URL: myusefulmetaclasses-0.0.7-py3-none-any.whl
- Upload date:
- Size: 20.2 kB
- Tags: Python 3
- Uploaded using 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
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f3afefe0a7ee1a3c00ad87a2d76ecb161d3f46f089c2eb484f389aab714a3906
|
|
| MD5 |
b5f3454194b02b9f50c44098780faa27
|
|
| BLAKE2b-256 |
32f14526dfcc975627339554f2ce31c7b8eea795e48c63fcfb7444762e96f6ed
|