用于与GA4GH任务执行API通信的库
py-tes的Python项目详细描述
皮特斯
py tes是用于与实现GA4GH Task Execution Schema的服务器交互的库。
安装
在PyPI上提供
pip install py-tes
示例
import tes
task = tes.Task(
executors=[
tes.Executor(
image="alpine",
command=["echo", "hello"]
)
]
)
cli = tes.HTTPClient("http://funnel.example.com", timeout=5)
task_id = cli.create_task(task)
res = cli.get_task(task_id)
cli.cancel_task(task_id)