dataops-sdk
Python SDK for the DataOps platform.
安装
# 基础安装
pip install dataops_sdk
# 含数据库驱动
pip install "dataops_sdk[runner]"
快速开始
from dataops_sdk.session import configure
from dataops_sdk.services import service_list_tables, service_get_table_data_by_code
# 配置认证
configure(base_url="https://your-platform.com", api_key="your-api-key")
# 查询数据表
tables = service_list_tables("doris")
print(tables)
核心模块
session — 认证配置
from dataops_sdk.session import configure, get_session
configure(base_url, api_key) # 设置全局会话
schemas — 数据模型
| 模块 | 说明 |
|---|---|
MetaType |
元数据类型枚举 |
SqlQueryParam |
SQL 查询参数 |
Meta |
元数据通用模型 |
Datasource |
数据源模型 |
DataTable |
数据表模型 |
Dataset |
数据集模型 |
Metrics |
指标模型 |
Report |
报表模型 |
Widget |
组件模型 |
Workflow |
工作流模型 |
Alarm |
告警模型 |
Hazard |
隐患模型 |
Api |
API 模型 |
Dict |
字典模型 |
Skill |
技能模型 |
Ref |
引用模型 |
services — 平台操作
每个服务模块对应一类实体的操作,提供 list、detail 等通用接口:
service_*_list— 列表查询service_*_detail— 详情查询service_*_create— 创建service_*_update— 更新service_*_delete— 删除
依赖
- Python >= 3.11
- pydantic >= 2
- httpx2 >= 2.5.0
- pydantic-settings >= 2.14.2
- jinja2 >= 3.1.6
- cryptography >= 49.0.0
可选依赖 (runner)
- paramiko > 4 — 文件传输
- pandas — 数据分析
- sqlalchemy / pymysql / doris-python / oracledb — 关系数据库
- neo4j — 图数据库
- kafka-python > 3 — 队列驱动
Metadata
Release files for dataops-sdk 0.5.6
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| dataops_sdk-0.5.6.tar.gz | 156.1 kB | Without provenance | Details for dataops_sdk-0.5.6.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| dataops_sdk-0.5.6-py3-none-any.whl | Python 3 | none | any | Details for dataops_sdk-0.5.6-py3-none-any.whl |
Total release size: 342.6 kB
Release files / dataops_sdk-0.5.6.tar.gz
| Download URL | dataops_sdk-0.5.6.tar.gz |
|---|---|
| Size | 156.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
509deb12ba6748c8b0c903056296378ce99f182bf1f6b1e973a06c4d212bdb84
|
|
BLAKE2b-256 checksum How to use checksums |
5dcfeedadde042941e9a672975c44de94061df058a456473fd7b8c110ece510f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.10.2 {"installer":{"name":"uv","version":"0.10.2","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Release files / dataops_sdk-0.5.6-py3-none-any.whl
| Download URL | dataops_sdk-0.5.6-py3-none-any.whl |
|---|---|
| Size | 186.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d7481aa769a65c790dbac9d8cfc8fe24b6ebf38ab7c7902fbb4d3917c1bc0879
|
|
BLAKE2b-256 checksum How to use checksums |
52f935886d8e5744fb16f11d9a934b79f988d87980f07d8a41259acfa5ec66a2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.10.2 {"installer":{"name":"uv","version":"0.10.2","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Security for dataops-sdk 0.5.6
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.