Open buchanae opened 7 years ago
# pip install py-tes
import tes
task = tes.Task(
executors=[
Executor(
image_name="alpine",
cmd=["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)
@kellrott: I have extended the usage instructions.
As for the API reference: I could add them for Read the Docs with Sphinx, just like here: https://trs-cli.readthedocs.io/en/latest/ Or perhaps you prefer MkDocs, maybe on GitHub pages? I could try to find a solution there.
Let me know and I'll look into it.
People shouldn't have to dig into the code to learn how to use it.