【文件属性】:
文件名称:alquimia:在SQLAlchemy中使用JSON模式的API
文件大小:34KB
文件格式:ZIP
更新时间:2021-05-15 23:15:42
Python
阿尔基米亚
一个与SQLAlchemy中的JSON模式一起使用的API。
安装方式
$ pip install alquimia
用法示例
from alquimia import AlquimiaModels
models_dict = {
'person' : {
'name' : 'string' ,
'age' : 'integer' ,
'relationships' : [ 'address' ]
},
'address' : {
'street' : 'string'
}
}
models = AlquimiaModels ( 'sqlite://' , models_dict , create = True )
person = {
'name' : 'John' ,
【文件预览】:
alquimia-master
----setup.py(2KB)
----.gitignore(765B)
----LICENSE(7KB)
----README.md(778B)
----tests()
--------conftest.py(6KB)
--------test_modelmeta.py(8KB)
--------__init__.py(0B)
--------test_models.py(7KB)
--------models_expected.py(11KB)
--------test_model.py(3KB)
----alquimia()
--------modelmeta.py(5KB)
--------models_attrs.py(7KB)
--------__init__.py(1KB)
--------schemas()
--------models_attrs_reflect.py(5KB)
--------models.py(3KB)
--------utils.py(960B)
--------model.py(3KB)
----pytest.ini(71B)
----.coveragerc(21B)
----docs()
--------Makefile(7KB)
--------index.rst(429B)
--------conf.py(11KB)
--------make.bat(7KB)
--------example.py(490B)