nf-server CLI — 面向生信工程师和 AI Agent 的命令行工具
Project description
nfctl
nf-server CLI — 面向生信工程师和 AI Agent 的命令行工具。
安装
pip install nfctl
配置
# 设置服务地址(默认 http://localhost:8000)
nfctl config set url http://nf-server:8000
# 或通过环境变量
export NFCTL_URL=http://nf-server:8000
命令
查询
nfctl overview # 系统概览
nfctl list [--status running] [-n 20] # 工作流列表
nfctl list --all # 获取全部工作流(自动翻页)
nfctl list --sort created_at --sort-order asc # 按创建时间升序
nfctl list --pipeline WGS --env prod # 按 Pipeline / 环境过滤
nfctl list --project-sn P2026001 # 按 LIMS 项目编号过滤
nfctl list --query sample1 # 按 workflow_id / launch_dir 搜索
nfctl status <id> # 工作流详情
nfctl tasks <id> [--status failed] # 子任务列表
nfctl tasks <id> --sort duration --sort-order desc # 按耗时排序
nfctl task <id> <task_id> # 子任务详情
nfctl log <id> [--grep ERROR] # 日志查看
nfctl resources <id> # 资源统计
管理
nfctl submit <dir> --pipeline <name> # 投递工作流
nfctl submit <dir> --pipeline <name> --env prod # 指定环境(test/gray/prod)
nfctl submit <dir> --pipeline <name> --project-sn P2026001 # 绑定 LIMS 项目编号
nfctl submit <dir> --pipeline <name> --dry-run # 仅验证,不实际投递
nfctl resume <id> # 恢复失败/取消的工作流
nfctl cancel <id> [--reason "原因"] # 取消运行中的流程
nfctl delete <id> # 删除工作流
其他
nfctl pipeline list # Pipeline 配置
nfctl config set/show # 配置管理
AI Agent 使用
所有命令支持 --format json,输出标准信封格式:
nfctl -f json list
# {"ok": true, "data": {"total": 5, "items": [...]}}
使用 --jq 过滤 JSON 输出:
nfctl --jq '.data.items[].workflow_id' list
nfctl --jq '.data.items[] | select(.status=="failed")' list
安装 Agent Skills:
npx skills add huangzhibo/nfctl
开发
uv sync
uv run nfctl --help
uv run pytest
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
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
File details
Details for the file nfctl-0.5.0.tar.gz.
File metadata
- Download URL: nfctl-0.5.0.tar.gz
- Upload date:
- Size: 33.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e531cc7923a565d59a4165933e4712d804fa78074d1cde3992c5155151311384
|
|
| MD5 |
df066889b4feb300b86a358f4ae7ec04
|
|
| BLAKE2b-256 |
8dce98e2ee3c3ebcc0efbef79f4522c37a5c3b4b801836a8381ecec030b25a48
|
Provenance
The following attestation bundles were made for nfctl-0.5.0.tar.gz:
Publisher:
publish.yml on huangzhibo/nfctl
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
nfctl-0.5.0.tar.gz -
Subject digest:
e531cc7923a565d59a4165933e4712d804fa78074d1cde3992c5155151311384 - Sigstore transparency entry: 1345228231
- Sigstore integration time:
-
Permalink:
huangzhibo/nfctl@d8bef448de17df6a49caf058057d2dba778001aa -
Branch / Tag:
refs/tags/v0.5.0 - Owner: https://github.com/huangzhibo
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@d8bef448de17df6a49caf058057d2dba778001aa -
Trigger Event:
release
-
Statement type:
File details
Details for the file nfctl-0.5.0-py3-none-any.whl.
File metadata
- Download URL: nfctl-0.5.0-py3-none-any.whl
- Upload date:
- Size: 16.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0fcdc51064b3a08c1c6b72d4024896a185c971450d24b6b21390f33773d1483f
|
|
| MD5 |
c9efa1952855065e721e62712ab9b254
|
|
| BLAKE2b-256 |
302933e3112d343ba02c67344b4b4ffade47d4afde16f73e0c5d74693e01ebe0
|
Provenance
The following attestation bundles were made for nfctl-0.5.0-py3-none-any.whl:
Publisher:
publish.yml on huangzhibo/nfctl
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
nfctl-0.5.0-py3-none-any.whl -
Subject digest:
0fcdc51064b3a08c1c6b72d4024896a185c971450d24b6b21390f33773d1483f - Sigstore transparency entry: 1345228271
- Sigstore integration time:
-
Permalink:
huangzhibo/nfctl@d8bef448de17df6a49caf058057d2dba778001aa -
Branch / Tag:
refs/tags/v0.5.0 - Owner: https://github.com/huangzhibo
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@d8bef448de17df6a49caf058057d2dba778001aa -
Trigger Event:
release
-
Statement type: