create perfect singletons meta
Reason this release was yanked:
while not used anywhere use new vertion!
Project description
singleton_meta
Features
- 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
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
singleton_meta-0.0.1.tar.gz
(2.9 kB
view hashes)
Built Distribution
Close
Hashes for singleton_meta-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ddb48845483489360a11f4e3ac512265a307a3fc1b92a3a0be74848eb52f5368 |
|
MD5 | 8ab8f7db7abc9946d43038a7fc647dec |
|
BLAKE2b-256 | 5d1d00c95873f42382556a388fb6ff63de349c5fb6cbfd086ce130933c5939a4 |