Quickstart

hello.py
 1import caliber
 2
 3hello = caliber.Task(
 4    function=print,
 5    name='Say hello',
 6    args=[
 7        'Hello, Caliber!',
 8    ],
 9)
10
11main_process = caliber.Process(
12    name='Greetings',
13    tasks=[
14        hello,
15    ]
16)
17
18main_workflow = caliber.Workflow(
19    name='Perform greetings',
20    process=main_process,
21)
22
23main_workflow.run()

You run the file by typing python hello.py in your terminal.

What’s going on here?

You import caliber and create a Task which is put in a Process. The process describes the work to be done in the Workflow. Finally, you run() the Workflow.

Ready for more? The basic ingredients of Caliber are described next.