https://github.com/timofurrer/pysingleton
module which provides a decorator to create thread-safe singleton classes
https://github.com/timofurrer/pysingleton
Last synced: 6 months ago
JSON representation
module which provides a decorator to create thread-safe singleton classes
- Host: GitHub
- URL: https://github.com/timofurrer/pysingleton
- Owner: timofurrer
- Created: 2013-02-17T19:48:56.000Z (almost 13 years ago)
- Default Branch: master
- Last Pushed: 2017-04-04T07:38:26.000Z (almost 9 years ago)
- Last Synced: 2025-04-04T13:17:08.427Z (9 months ago)
- Language: Python
- Size: 5.86 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# pysingleton
> module which provides a decorator to create thread-safe singleton classes
> *Version: 0.2.1*
## ABANDONED!!!
Please, don't use this anymore ..
***
**Author:** Timo Furrer
**Version:** 0.00.01
## I know
I know that singletons are **evil**!
## How to install
Install it with:
$ sudo python setup.py install
## Use
Use it in your python programs with:
```python
from singleton import singleton
@singleton()
class MySingleton(object):
pass
o = MySingleton()
o2 = MySingleton()
print o is o2
```