An open API service indexing awesome lists of open source software.

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

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
```