Skip to main content

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 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> --dry-run  # 仅验证,不实际投递
nfctl resume <id>                        # 恢复失败/取消的工作流
nfctl cancel <id>                        # 取消运行中的流程
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

nfctl-0.3.0.tar.gz (29.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

nfctl-0.3.0-py3-none-any.whl (14.5 kB view details)

Uploaded Python 3

File details

Details for the file nfctl-0.3.0.tar.gz.

File metadata

  • Download URL: nfctl-0.3.0.tar.gz
  • Upload date:
  • Size: 29.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for nfctl-0.3.0.tar.gz
Algorithm Hash digest
SHA256 5d2e7e6208f70f6edfe8fa01de296a790add3607c543e63ec8dbb5977b851add
MD5 c336eaa78e6173fe586df54bd9fe4bae
BLAKE2b-256 6482c52e597448d0e41115d8cc0d9acd6a8c2c44fab70e69b34f83788a78f922

See more details on using hashes here.

Provenance

The following attestation bundles were made for nfctl-0.3.0.tar.gz:

Publisher: publish.yml on huangzhibo/nfctl

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file nfctl-0.3.0-py3-none-any.whl.

File metadata

  • Download URL: nfctl-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 14.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for nfctl-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 aeb00a63bf1ccb6a7185c453d1e42b3e29cf32393c6de97ca71df543c632a22f
MD5 dd59417e5f02bdb3cfe0b2654b99f3bb
BLAKE2b-256 d3428a5c1f63a98c9d4cd5b9eced7a79b577fcc114524f715e923d5da06e64fb

See more details on using hashes here.

Provenance

The following attestation bundles were made for nfctl-0.3.0-py3-none-any.whl:

Publisher: publish.yml on huangzhibo/nfctl

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page