PlayBook
YouQu 任务调度系统
安装
pip3 install youqu-playbook
运行
playbook -p path/to/json/file.json
# 如果提示找不到命令,请检查是否在 PATH 中添加了 Python 的 bin 目录。
export PATH=$PATH:$HOME/.local/bin
输入JSON配置文件
JSON 配置示例:
{
"apps": [
{
"app_name": "autotest_dde_file_manager",
"git_url": "git_url",
"git_branch": "at-develop/eagle",
"framework": "youqu2",
"split_run": true,
"order": 1,
"device": "USB"
},
{
"app_name": "kernel",
"git_url": "git_url",
"git_branch": "at-develop/v25",
"framework": "youqu3",
"split_run": false,
"order": 2,
"device": null
},
...
],
"clients": [
{
"host": "uos@10.8.xx.xx",
"device": "USB"
},
{
"host": "uos@10.8.xx.xx",
"device": null
},
...
],
"tags": "xxxx",
"task_id": "xxxx",
"json_backfill_base_url": "xxxx",
"json_backfill_user": "xxxx",
"json_backfill_password": "xxxx",
"pms_task_id": "xxxx",
"pms_user": "xxxx",
"pms_password": "xxxx"
}
说明:
apps: 应用列表,用于指定运行应用的应用。app_name: 应用名称,对应app_name字段,用于区分应用,例如autotest_dde_file_manager。git_url: 应用 Git 仓库地址,用于下载应用代码。检查git_url是否正确,可以通过git clone ${git_url}命令进行验证。git_branch: 应用 Git 分支,用于下载应用代码,例如at-develop/eagle。framework: 应用框架,用于区分应用框架,可选值有youqu2和youqu3,分别对应youqu2和youqu3框架。split_run: 是否启用多线程运行,boolean 类型, 默认为false。order: 应用运行顺序,int 类型,默认为 1。device: 外设标签
clients: 客户端列表,用于指定运行应用的客户端。tags: 任务标签,用于区分任务。task_id: 任务 ID,用于区分任务。json_backfill_base_url: 数据回填地址。json_backfill_user: 数据回填用户名。json_backfill_password: 数据回填密码。pms_task_id: PMS 任务 ID,用于获取任务。pms_user: PMS 用户名,用于获取任务。pms_password: PMS 密码,用于获取任务。
流程示意图
Metadata
Release files for youqu-playbook 2025.1.7
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 |
|---|---|---|---|---|
| youqu_playbook-2025.1.7.tar.gz | 95.4 kB | Without provenance | Details for youqu_playbook-2025.1.7.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| youqu_playbook-2025.1.7-py3-none-any.whl | Python 3 | none | any | Details for youqu_playbook-2025.1.7-py3-none-any.whl |
Total release size: 111.9 kB
Release files / youqu_playbook-2025.1.7.tar.gz
| Download URL | youqu_playbook-2025.1.7.tar.gz |
|---|---|
| Size | 95.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
57d4d33f14e0d69aa23ddbc5a14eef4e4d28e1409d065895c1a6dc85ea9a47eb
|
|
BLAKE2b-256 checksum How to use checksums |
d4ff57d1d75d67586222e9689b62f0f61c22915276be522acf2ae3a350bfa134
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.7.3
|
Release files / youqu_playbook-2025.1.7-py3-none-any.whl
| Download URL | youqu_playbook-2025.1.7-py3-none-any.whl |
|---|---|
| Size | 16.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b6febbce4b6be8ee8129340efe5399f0759c871a6fcbb384b999ea71b61dd493
|
|
BLAKE2b-256 checksum How to use checksums |
2ec5eb90102796a2b3d5775cbbc0fabb5711daae24fe0c3bd6bd8fef115ad868
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.7.3
|
Security for youqu-playbook 2025.1.7
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.