Skip to main content

A small example package

Project description

Cauldron: Simple singletons

Cauldron is a small, simple package that provides singleton functionality. Here's an example of how Cauldron can be used:

>>> class MySingleton(other_base_classes, SingletonMixin):
...    def __init__(self, *args, **kwargs):
...        # do stuff here
...        pass
...
>>> singleton = MySingleton()
>>> other_singleton = MySingleton()
>>> id(singleton) == id(other_singleton)
True

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

cauldron_hedgenull-0.0.1.tar.gz (2.6 kB view hashes)

Uploaded Source

Built Distribution

cauldron_hedgenull-0.0.1-py3-none-any.whl (3.7 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