针对mingdaoyun的API封装的Python-SDK包
Project description
mingdaoyun-Python-SDK
针对mingdaoyun的API封装的Python-SDK包
如果你在寻找PHP版本的,请点击(https://github.com/Lany-w/mingdaoyun-php-sdk)
Installing
$ pip install mingdaoyun-sdk
Usage
```python
from mingdaoyun_sdk import Mingdaoyun
mingdaoyun = Mingdaoyun('your app id', 'your app sign','host')
mingdaoyun.table("table_alias").set_view("view_id").where("state", "=", "生效中").sort("autoid", True).find(all=True)
```
API
- table("table_alias/worksheetId") 设置表名
- set_view("view_id") 设置视图
- where("field", "operator", "value") 设置查询条件
- operator:
- contains
- =
- startWith
- endWith
- notContain
- !=
- None 或者 "is null"
- not null
- >
- >=
- <
- <=
- RCEq
- RCNe
- between
- nBetween
- DateEnum
- NDateEnum
- DateBetween
- DateNBetween
- value: 如果是 DateBetween , DateNBetween 要传 maxValue 和 minValue
- operator:
- find(rowid=None, pageSize=1000, pageIndex=1, all=False) 查询数据
- rowid 查询单条数据
- pageSize 每页条数
- pageIndex 页码
- all 是否查询所有
- add 添加数据
- batch_add 批量添加数据
- delete (rowid) 删除数据 rowid 为逗号拼接的字符串
- edit (rowid, controls) 编辑数据
- batch_edit (rowids, control) 批量编辑数据
- count() 统计数据
License
MIT
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
mingdaoyun_sdk-0.0.12.tar.gz
(6.7 kB
view hashes)
Built Distribution
Close
Hashes for mingdaoyun_sdk-0.0.12-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | dd4abc801b48e37fa75de013c715931d939ddb71030dee51caa82127606d4725 |
|
MD5 | 10eb73c69171d51d94a19d8874466404 |
|
BLAKE2b-256 | 9ec9339b0e79f235c347b6db94127ce1867d4806a1aa634b4be7d180178cedac |