load and upload datasense platform of data
Project description
sdk-py
dsdata 使用样例:
from dsdata import DsClient
endpoint = 'https://xxxx.com'
AppKey = 'xxx'
AppSecret = 'xxxx'
ds = DsClient(endpoint=endpoint, app_key=AppKey, app_secret=AppSecret)
# 测试获取主体数据和定义
data = ds.load_objects('/api-service/220sc/default/12334/objects-definitions',
'select * from object_lhc_product', columns=['subject_id'], chunksize=2)
# 测试获取指标主题和定义
data = ds.load_metrics('/api-service/220sc/default/12323/definitions',
'SELECT * FROM h5', columns=None, chunksize=2)
# 测试获取数据集
data = ds.load_dataset('/api-service/220sc/default/dataset-ms-test1', 20)
# 测试上传标签
tags = {"objects":[{'object_id':"3", 'tag_code':'tag_wbbq2', 'tag_values': 123}]}
msg, valid_nums = ds.upload_object_tags('/api-service/220sc/default/dsdata0830/tags-upload', tags)
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
dsdata-1.1.0.3.tar.gz
(4.4 MB
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 dsdata-1.1.0.3.tar.gz.
File metadata
- Download URL: dsdata-1.1.0.3.tar.gz
- Upload date:
- Size: 4.4 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.7.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
aaa49c542905972bae98ac77981318a50dc1ebedd66082676426838a35f42a4f
|
|
| MD5 |
a09a1963ee5992cffc51abd3c0c8621c
|
|
| BLAKE2b-256 |
9f6d9714c3dd4e31ad189d2f0ab45fad8ce1951ec175f91b4ff7e43094e0492a
|
File details
Details for the file dsdata-1.1.0.3-py3-none-any.whl.
File metadata
- Download URL: dsdata-1.1.0.3-py3-none-any.whl
- Upload date:
- Size: 4.4 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.7.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
348d218b56e87881b02072278871c09b37fc53c689ad654385b23aa5edde4e0a
|
|
| MD5 |
9de63bdefd10b80a41bd34098ef7fbea
|
|
| BLAKE2b-256 |
5df4b79778deedee811a3417f484908372d11010dcc8b86fc48b167aa33f59e8
|