针对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
Contributors
| Name | Contact |
|---|---|
| ghostlitao | |
| chenmo_wang |
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.17.tar.gz
(9.0 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.17.tar.gz.
File metadata
- Download URL: mingdaoyun_sdk-0.0.17.tar.gz
- Upload date:
- Size: 9.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.9.25
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a812c80ee7b80ed55423b23fc927b9c86f1f658d480bb539f43df5732e8f0114
|
|
| MD5 |
b8ffbf3bf4b3747aac73f1530f99ffac
|
|
| BLAKE2b-256 |
752e69815ff019a59ae77f6316f8aa78e7d7c058cd4b88f85476975fbbc17895
|
File details
Details for the file mingdaoyun_sdk-0.0.17-py3-none-any.whl.
File metadata
- Download URL: mingdaoyun_sdk-0.0.17-py3-none-any.whl
- Upload date:
- Size: 9.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.9.25
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
354c21023b83eb9f1898aa4298133f162fd00a981bea585b2878e30ff1455f8f
|
|
| MD5 |
f17b68fdcabe350e8061f8aacd3e914b
|
|
| BLAKE2b-256 |
64a3bc5d86f5b3c0ff96fe1e42850ae9c9908637f764a8d66fa84f6873d7f3dd
|