Skip to main content

No project description provided

Project description

install

pip install singletonify

usage

@singleton
class YourClass:
    pass

assert YourClass() is YourClass()

why not other

There are many singleton libraries on pypi, but their all has problem:

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

singletonify-0.1.2.0.tar.gz (2.1 kB view hashes)

Uploaded Source

Built Distribution

singletonify-0.1.2.0-py3.6.egg (3.1 kB view hashes)

Uploaded Source

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