目录

REST DB Client

A simple Python3 library for connecting to RESTful databases.

Installation

Install via pip:

$ pip install rest-db-client

Example

from rest_db_client import RestDbClient
client = RestDbClient(port=6501)

domain = client['Galaxy']
model = domain['SolarSystem']

datasets = [
  {
    'planet': 'Jupiter',
    'moons': 69
  },
  {
    'planet': 'Mars'
  },
  {
    'planet': 'Earth',
    'moons': 1,
    'inhabited': True
  },
]
model.insert(datasets)

Documentation

The API documentation is in docs/api.md.

Contribute

To learn more on how to successfully contribute please read the contributing information in the LibreCube guidelines.

Support

If you are having issues, please let us know. Reach us at Matrix or via Email.

License

The project is licensed under the MIT license. See the LICENSE file for details.

关于

LibreCube(开源教育卫星与组件平台)开源仓库 python-rest-db-client。镜像收录自 https://gitlab.com/librecube/lib/python-rest-db-client,License:以源仓库 LICENSE 为准(MIT / CERN-OHL 等)

80.0 KB
邀请码
    Gitlink(确实开源)
  • 加入我们
  • 官网邮箱:gitlink@ccf.org.cn
  • QQ群
  • QQ群
  • 公众号
  • 公众号

版权所有:中国计算机学会技术支持:开源发展技术委员会
京ICP备13000930号-9 京公网安备 11010802047560号