Skip to main content

create perfect singletons meta

Reason this release was yanked:

while not used anywhere use new vertion!

Project description

singleton_meta

Features

  1. perfect singleton (maybe thread safe!)

License

See the LICENSE file for license rights and limitations (MIT).

Release history

See the HISTORY.md file for release history.

Installation

pip install singleton-meta

Import

from singleton_meta import *

GUIDE

See tests and source for other examples.

1. Use simple nesting (common)

from singleton_meta import *

class MySingleton(Singleton):
    pass

class MySingleton2(Singleton):
    pass

2. Use meta

from singleton_meta import *

class MySingleton(metaclass=SingletonMeta):
    pass

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

singleton_meta-0.0.1.tar.gz (2.9 kB view details)

Uploaded Source

Built Distribution

singleton_meta-0.0.1-py3-none-any.whl (3.2 kB view details)

Uploaded Python 3

File details

Details for the file singleton_meta-0.0.1.tar.gz.

File metadata

  • Download URL: singleton_meta-0.0.1.tar.gz
  • Upload date:
  • Size: 2.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.4

File hashes

Hashes for singleton_meta-0.0.1.tar.gz
Algorithm Hash digest
SHA256 e1bb8cea1d5ac2ebbed376401a1ff4bb291af0f9b148f09485d870bd76b44e2a
MD5 97fc583f80f1b1ba4bd59cd2a14d1549
BLAKE2b-256 d313b247737e38d59ccb1aef9f218d3d630695bf9afe4c0c1e311fd44f64e5c8

See more details on using hashes here.

File details

Details for the file singleton_meta-0.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for singleton_meta-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 ddb48845483489360a11f4e3ac512265a307a3fc1b92a3a0be74848eb52f5368
MD5 8ab8f7db7abc9946d43038a7fc647dec
BLAKE2b-256 5d1d00c95873f42382556a388fb6ff63de349c5fb6cbfd086ce130933c5939a4

See more details on using hashes here.

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