django-rest-models:django数据库驱动程序,用于查询RestAPI而不是关系数据库

时间:2021-05-05 02:00:57
【文件属性】:
文件名称:django-rest-models:django数据库驱动程序,用于查询RestAPI而不是关系数据库
文件大小:393KB
文件格式:ZIP
更新时间:2021-05-05 02:00:57
Python django-rest-models 允许使用与django ORM相同的接口查询django RestAPI。 (目标API必须使用django-rest-framework + dynamic-rest库)实际上,它的工作原理与任何其他数据库引擎一样。 您将rest_models引擎添加到备用数据库中,并将rest_models数据添加到路由器中。 然后将APIMeta类添加到查询API的模型中,voilà! 稳定的分支 发展状况 安装 使用pip安装: pip install django-rest-models 另外,您可以下载或克隆此仓库,并使用以下命令进行安装: pip install -e . 。 要求 该数据库包装器可与 python3.5、3.6 Django 2.0、2.1、2.2 在api上,针对 django-rest-framework 3.7、3
【文件预览】:
django-rest-models-master
----setup.py(2KB)
----.gitignore(1KB)
----testsettings_psql.py(355B)
----testapi()
--------viewset.py(2KB)
--------urls.py(1KB)
--------__init__.py(0B)
--------badapi()
--------serializers.py(2KB)
--------models.py(2KB)
--------admin.py(153B)
--------migrations()
--------fixtures()
----requirements.txt(162B)
----testappsimple()
--------__init__.py(151B)
--------models.py(258B)
----LICENSE.md(1KB)
----test_runner.py(357B)
----.travis.yml(1KB)
----MANIFEST.in(149B)
----assets()
--------okami.jpg(278KB)
----setup.cfg(235B)
----rest_models()
--------checks.py(5KB)
--------__init__.py(150B)
--------storage.py(4KB)
--------utils.py(6KB)
--------backend()
--------tests()
--------test.py(14KB)
--------router.py(4KB)
----testsettings.py(6KB)
----README.rst(9KB)
----testapp()
--------__init__.py(27B)
--------models.py(2KB)
--------badapp()
--------migrations()
--------fixtures()
----test_requirements.txt(17B)
----CONTRIBUTING.rst(3KB)
----manage.py(266B)
----docs()
--------Makefile(7KB)
--------source()
----tox.ini(2KB)

网友评论