定义组件之间的通信模型,处理编组(m9g)
m9g的Python项目详细描述
m9g:定义组件之间通信的模型,处理编组(m9g)
用法
importm9gclassBook(m9g.Model):id=m9g.IntField(pk=True)author=m9g.StringField()book=Book(id=1,author="Hemingway")book.serialize()# JSON as default'{"id": 1, "author": "Hemingway"}'
复杂类型
^{pr2}$贡献
运行Python2.7/3.6的测试
tox
运行一次性测试
tox -- tests/<test_file>.py::<test_name>
- 项目
标签: