Skip to main content

针对mingdaoyun的API封装的Python-SDK包

Project description

mingdaoyun-Python-SDK

针对mingdaoyun的API封装的Python-SDK包

如果你在寻找PHP版本的,请点击(https://github.com/Lany-w/mingdaoyun-php-sdk)

Warning

0.0.17 版本无法使用,请升级到0.0.18版本或者0.0.16版本

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
  • 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


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.18.tar.gz (8.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mingdaoyun_sdk-0.0.18-py3-none-any.whl (9.5 kB view details)

Uploaded Python 3

File details

Details for the file mingdaoyun_sdk-0.0.18.tar.gz.

File metadata

  • Download URL: mingdaoyun_sdk-0.0.18.tar.gz
  • Upload date:
  • Size: 8.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.25

File hashes

Hashes for mingdaoyun_sdk-0.0.18.tar.gz
Algorithm Hash digest
SHA256 2356db419792c8cbb299dfaf5f0eada2c84fbc235f2221eb0927e8a76f65655c
MD5 ff5381b022d18d8d5a5681ac02694561
BLAKE2b-256 679efc6c773cff42dc5f09be522e0e89ff595c2c0d24206020a14285e49b8daf

See more details on using hashes here.

File details

Details for the file mingdaoyun_sdk-0.0.18-py3-none-any.whl.

File metadata

File hashes

Hashes for mingdaoyun_sdk-0.0.18-py3-none-any.whl
Algorithm Hash digest
SHA256 8df2cba7bebf572c0227bbf630d52671bc80bd1f1d3169d2123b3b4735dec413
MD5 521950458a71a487d307ce1e1e7a46da
BLAKE2b-256 ad852b0a42bff3de9b37f63567bf8e6895a76a3910223bcd4c96b9a56b816af0

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page