极速 Python 工具集应用:DAG 任务调度 + 组合 CLI
Project description
fcmd
极速 Python 工具集应用:DAG 任务调度 + 组合 CLI。
特性
- 极速冷启动(< 100ms):三层懒加载,核心模块零外部依赖
- DAG 任务调度:四种执行策略(sequential/thread/async/dependency)
- 组合 API 简洁:
@fx.task装饰器 + 自动依赖推断 +@fx.toolCLI 工具 - 纯 CLI(rich 增强):彩色输出、表格、进度条
- 便捷脚本模式:
fcmd pymake b一键调用
快速上手
import fcmd as fx
@fx.task
def extract() -> list[int]: return [1, 2, 3]
@fx.task
def double(extract: list[int]) -> list[int]: return [x * 2 for x in extract]
graph = fx.graph(extract, double) # double 自动依赖 extract
report = fx.run(graph)
print(report["double"]) # [2, 4, 6]
fcmd pymake b # 构建
fcmd pymake tc # 类型检查
fcmd --list # 列出所有工具
许可证
MIT
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
fcmd-0.1.1.tar.gz
(295.9 kB
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
fcmd-0.1.1-py3-none-any.whl
(100.1 kB
view details)
File details
Details for the file fcmd-0.1.1.tar.gz.
File metadata
- Download URL: fcmd-0.1.1.tar.gz
- Upload date:
- Size: 295.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.11.29 {"installer":{"name":"uv","version":"0.11.29","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
73ccb1d4164b4da82bfd4de7d3a8a64c510f24a46254559a15fbed16cfb18444
|
|
| MD5 |
4abaac35131c140fec0f1aa826c8789d
|
|
| BLAKE2b-256 |
09633d8d5fb40f3868f2d11ad1f6a7fc42ce6da45b3c9d55165bd92582b1f473
|
File details
Details for the file fcmd-0.1.1-py3-none-any.whl.
File metadata
- Download URL: fcmd-0.1.1-py3-none-any.whl
- Upload date:
- Size: 100.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.11.29 {"installer":{"name":"uv","version":"0.11.29","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4a96a83866e7fec3e58d2d947f27981f45848e39a54bb0316c89c5693d1a23b7
|
|
| MD5 |
2b1a8293afc8b454e608347716bf86c1
|
|
| BLAKE2b-256 |
d3af0294e991a9e2fe7ac25f24f8784246a97921424a5b700b30d96c674e2f2f
|