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 details)
Built Distribution
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
Algorithm | Hash digest | |
---|---|---|
SHA256 | e1bb8cea1d5ac2ebbed376401a1ff4bb291af0f9b148f09485d870bd76b44e2a |
|
MD5 | 97fc583f80f1b1ba4bd59cd2a14d1549 |
|
BLAKE2b-256 | d313b247737e38d59ccb1aef9f218d3d630695bf9afe4c0c1e311fd44f64e5c8 |
File details
Details for the file singleton_meta-0.0.1-py3-none-any.whl
.
File metadata
- Download URL: singleton_meta-0.0.1-py3-none-any.whl
- Upload date:
- Size: 3.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ddb48845483489360a11f4e3ac512265a307a3fc1b92a3a0be74848eb52f5368 |
|
MD5 | 8ab8f7db7abc9946d43038a7fc647dec |
|
BLAKE2b-256 | 5d1d00c95873f42382556a388fb6ff63de349c5fb6cbfd086ce130933c5939a4 |