Introduction:
This is a small python module to design a singleton class python (will add more later on).I have been using python for 2 years and fell in love with it and I would really love to give something (even as small as this module) to the community. If you like it give it a start,hate it tell me why I will try to fix it and you could help too.
Design Patterns Supported
Singleton
Example
from design_patterns import singleton
@singleton
class HelloWorld:
def __init__(self):
self.name = "one instance"
h = HelloWorld()
r = HelloWorld()
if __name__ == "__main__":
print(r == h)
Release files for design-patterns-WS 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| design-patterns-WS-1.0.0.tar.gz | 1.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| design_patterns_WS-1.0.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 4.6 kB
Release files / design-patterns-WS-1.0.0.tar.gz
| Download URL | design-patterns-WS-1.0.0.tar.gz |
|---|---|
| Size | 1.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7ffe4d492729be2d31aa11de95333dbafbbcb4017d2d7e0f74ae245839b168a8
|
|
BLAKE2b-256 checksum How to use checksums |
8799e01b9419415055798db37ae791a13a8885704b9fec61c46ba65a72674703
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.7.4
|
Release files / design_patterns_WS-1.0.0-py3-none-any.whl
| Download URL | design_patterns_WS-1.0.0-py3-none-any.whl |
|---|---|
| Size | 2.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
9c42998b8ed1d1e903a31277ecf3c46333b069503fb1f99857bee0578ff8008c
|
|
BLAKE2b-256 checksum How to use checksums |
cd85abc629e0b6b4140c739e5d381efe3ac0e67cfc0fe2281c7f94f8241e7551
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.7.4
|