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
Close
Hashes for myusefulmetaclasses-0.0.6.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | f8666b72880255b6dd3040597d4da84fc9706a8d6353f9aa0a092f1caf3f1045 |
|
MD5 | 837b99eeb85d60b04b63613d992e1263 |
|
BLAKE2b-256 | 71907e2fe1497878407f1eb44f822f814635615f8a18003ec3caa76c7c5198d2 |
Close
Hashes for myusefulmetaclasses-0.0.6-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a79765bc5925a133f7b8b61b7c2fa6bc7f5f3ce2117009490c3126b3b0b2cd13 |
|
MD5 | ae0baf5d98856cf86ea7df3dcd86d95f |
|
BLAKE2b-256 | 4ec31ac5f1b436f9ef2c987e04d76fb2fda7820de8116fe71bdda4a7b7dcb2fe |