pyplus is extension libarary of python.
# setup pyplus
git clone https://github.com/tornadoyi/pyplus.git
cd pyplus
sudo python setup.py install
QDict (use dict like lua table)
from pyplus import *
d = qdict(a=1, b=2)
d.c = 3
print(d)
# {'a': 1, 'c': 3, 'b': 2}
Enum
from pyplus import *
e = enum(a=1,b=2)
Singleton
from pyplus import *
@singleton
class Manager(object):
def __init__(self):
print("init once")
def unused(self): return
Manager().unused()
Manager().unused()
For any bugs or feature requests please:
File a new issue or submit a new pull request if you have some code you'd like to contribute
For other questions and discussions please post a email to 390512308@qq.com
We are releasing pyplus under an open source Apache 2.0 License. We welcome you to contact us (390512308@qq.com) with your use cases.