marshmallow-peewee:Peewee ORM与棉花糖(反)序列化库的集成

时间:2021-05-26 21:55:54
【文件属性】:
文件名称:marshmallow-peewee:Peewee ORM与棉花糖(反)序列化库的集成
文件大小:15KB
文件格式:ZIP
更新时间:2021-05-26 21:55:54
Python 棉花糖Peewee Marshmallow-Peewee- 与(反序列化)库的集成。 对于Marshmallow<3 / Python<3请使用Marshmallow-Peewee<3 。 import peewee as pw class Role ( pw . Model ): name = pw . CharField ( 255 , default = 'user' ) class User ( pw . Model ): created = pw . DateTimeField ( default = dt . datetime . now ()) name = pw . CharField ( 255 ) title = pw . CharField ( 127 , null = True ) active = pw . Bool
【文件预览】:
marshmallow-peewee-develop
----.gitignore(546B)
----setup.cfg(202B)
----README.rst(4KB)
----.vimrc(70B)
----Changelog(87B)
----tests()
--------test_marshmallow3.py(4KB)
--------conftest.py(226B)
--------models.py(548B)
--------__init__.py(0B)
----CONTRIBUTING.rst(3KB)
----LICENSE(1KB)
----.bumpversion.cfg(128B)
----requirements-tests.txt(78B)
----requirements.txt(51B)
----marshmallow_peewee()
--------schema.py(3KB)
--------convert.py(3KB)
--------fields.py(2KB)
--------__init__.py(188B)
----MANIFEST.in(209B)
----setup.py(2KB)
----.travis.yml(279B)
----tox.ini(261B)
----AUTHORS.rst(263B)
----Makefile(2KB)

网友评论