插件生成等功能...
Project description
chariot-plugin
简介
chariot-plugin是千乘系统插件的生成器,用于生成插件基本架构.简单实用.
基本架构
.
├── actions
│ ├── __init__.py
│ ├── ???.py
│ ├── models.py
├── Dockerfile
├── help.md
├── icon.png
├── main.py
├── Makefile
├── plugin.spec.yaml
├── requirements.txt
├── SDK
│ ├── base.py
│ ├── chariot.py
│ ├── cli.py
│ ├── __init__.py
│ ├── models.py
│ ├── plugin.py
│ ├── subassembly.py
│ └── web.py
├── tests
│ ├── ???.json
└── triggers
└── models.py
└── ???.py
- plugin.spec.yaml: 编排文件,自行编写,用于生成插件,声明参数及类型验证.
- actions/???.py: 自动生成,用于编写脚本,是插件的最基本组件之一,也是最常使用的.
- triggers/???.py: 自动生成,用于编写需循环触发的脚本,常用于工作流开头分发任务.
- actions/models.py & triggers/models.py: 自动生成,也可自行修改,用于类型验证,语法参考pydantic
- tests/???.json: 自动生成,用于测试 action和trigger 脚本
环境要求
- python3.+
安装
pip install chariot-plugin
插件开发
官网
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
chariot-plugin-1.1.9.tar.gz
(48.5 kB
view details)
File details
Details for the file chariot-plugin-1.1.9.tar.gz
.
File metadata
- Download URL: chariot-plugin-1.1.9.tar.gz
- Upload date:
- Size: 48.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.6.0 pkginfo/1.7.0 requests/2.18.4 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.9.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | fdb0e680afb1626596888a7fbd69ddfd1bad295c192a78526707a8aa964adc1f |
|
MD5 | a19df2a696b86769e81a356cd533b747 |
|
BLAKE2b-256 | 0a9d1cd1aee86a65e2418f4e5f0b4681e85c0712973a64d0a89b2ec559d54157 |