/py-tes

Python SDK for the GA4GH Task Execution API

Primary LanguagePythonMIT LicenseMIT

Build Status Coverage Status License: MIT

py-tes

py-tes is a library for interacting with servers implementing the GA4GH Task Execution Schema.

Install

py-tes is available on PyPI for installation via pip.

pip install py-tes

Example

import tes

task = tes.Task(
    executors=[
        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)