takflow
takflow(tak 取自 takler + flow)是面向 CEMC 数值天气预报模式系统的统一工作流生成框架。
它提供了一套通用的配置模型、作业资源描述契约、工作流引擎抽象和渲染工具,让业务工作流生成器专注于领域逻辑,而无需重复实现 ecFlow 定义生成、作业脚本渲染、资源载体切换等通用能力。 目前已应用如下系统流程中(内部访问):
- mcv-workflow
- cma-gfs-post-workflow
安装
要求 Python >= 3.10。
使用 pip 安装最新发布版本:
pip install takflow
或者通过源代码安装最新开发版本:
git clone https://github.com/cemc-oper/takflow.git
# or in CMA, use metcode
# git clone http://e.mc.met.cma/codingcorp/cemc-takler/takflow.git
cd takflow
pip install .
快速上手
from takflow.config import BaseWorkflowConfig, load_config_from_file
from takflow.flow import WorkflowEngine
from takflow.backends.ecflow import EcflowBackend
class MyConfig(BaseWorkflowConfig):
"""通用字段(目录、模式、workload、调度)全部继承,只加领域字段。"""
config = load_config_from_file("config/my_config.yaml", config_class=MyConfig)
engine = WorkflowEngine(EcflowBackend())
suite = engine.Suite(config.workflow_name)
suite.add_family("main").add_task("forecast")
完整的端到端最小应用见 examples/toyflow/。
文档
在线文档:https://takflow.readthedocs.io/
许可
takflow 采用 Apache-2.0 许可证。
Metadata
Release files for takflow 0.2.0
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 |
|---|---|---|---|---|
| takflow-0.2.0.tar.gz | 318.9 kB | With provenance | Details for takflow-0.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| takflow-0.2.0-py3-none-any.whl | Python 3 | none | any | Details for takflow-0.2.0-py3-none-any.whl |
Total release size: 422.7 kB
Release files / takflow-0.2.0.tar.gz
| Download URL | takflow-0.2.0.tar.gz |
|---|---|
| Size | 318.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
15a8d2085b2a9c03ccf95123b9cf60fca42f654c69264955bcd52e5853756d5f
|
|
BLAKE2b-256 checksum How to use checksums |
7c09f6b4e12dd720ad0857ba6af71faa5a98686c8b335f65cb1083f22636377b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 12, 2026.
Transparency logRelease files / takflow-0.2.0-py3-none-any.whl
| Download URL | takflow-0.2.0-py3-none-any.whl |
|---|---|
| Size | 103.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
283d5faecf5b879eb33ae283965fae68492a19bc00285cc162f0f90e5cbef096
|
|
BLAKE2b-256 checksum How to use checksums |
91a78a2353389ac4dd23ddf2a807dd1cf4eefc911a89453c60024ea69d2908c2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 12, 2026.
Transparency logSecurity for takflow 0.2.0
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.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for takflow-0.2.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 12, 2026.
Transparency logA 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.