针对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.16.tar.gz
(7.3 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file mingdaoyun_sdk-0.0.16.tar.gz.
File metadata
- Download URL: mingdaoyun_sdk-0.0.16.tar.gz
- Upload date:
- Size: 7.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.9.23
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
540cc8577f080f7d236a0f9eb9b31a37477557204b4c8abcf6d7e25fdc65d3fe
|
|
| MD5 |
ab8a48abd70f626b735ccb3102770753
|
|
| BLAKE2b-256 |
e3a024b8da29ecff71ac0fc4f3f5d702ce18545441b33120f748842883dae54d
|
File details
Details for the file mingdaoyun_sdk-0.0.16-py3-none-any.whl.
File metadata
- Download URL: mingdaoyun_sdk-0.0.16-py3-none-any.whl
- Upload date:
- Size: 7.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.9.23
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2772ce6b0d06986b6b2fb2bb4868f035d8e7d303c7a58e44107a0c9b0e3bfe41
|
|
| MD5 |
c92da558d79e9b3e4119c9d4b336b585
|
|
| BLAKE2b-256 |
202650a199404e5ecd5779999b7871b9d645334f66f6913a92e11f768c240877
|