【文件属性】:
文件名称:yamb:YAml 元绑定微框架
文件大小:6KB
文件格式:ZIP
更新时间:2021-07-06 13:29:11
Python
山药
YAml 元绑定微框架
为 YAML 文档定义架构,如 SQLAlchemy,以像 Python 对象一样读取、写入和操作数据。
基本示例
from yamb import Literal , Nested , Collection , YAMBObject
class Address ( YAMBObject ):
city = Literal ( default = 'New York' )
street = Literal ()
class Person ( YAMBObject ):
name = Literal ()
phone = Literal ()
address = Nested ( Address )
def lives_close_to ( self , another_person ):
re
【文件预览】:
yamb-master
----setup.py(673B)
----.gitignore(544B)
----.travis.yml(400B)
----LICENSE(543B)
----README.rst(1KB)
----test.py(4KB)
----yamb()
--------__init__.py(4KB)
----tox.ini(357B)