Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

myusefulmetaclasses-0.0.6.tar.gz (2.9 kB view hashes)

Uploaded Source

Built Distribution

myusefulmetaclasses-0.0.6-py3-none-any.whl (20.1 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page