Python SDK
from trigora import effect, gather, invoke, program, race, sleep, wait_for_eventeffect, wait_for_event, sleep, and invoke fail if called outside an Execution. program marks the entry. It is not a durable operation.
effect
Section titled “effect”def effect(name: str, fn: Callable[[], T]) -> Tname must be a non-empty string. fn must be callable. Details.
wait_for_event
Section titled “wait_for_event”def wait_for_event(name: str) -> objectname must be a non-empty string. Details.
def sleep(duration: int | float | str) -> Noneinvoke
Section titled “invoke”def invoke(name: str, *args: object) -> objectname is the child program id, the file stem. The remaining values are the ordered argument vector. Details.
gather and race
Section titled “gather and race”def gather(*branches: object) -> objectdef race(*branches: object) -> objectEach takes 1–32 direct durable calls. Details.
The Program entry is one @program async function. The program id is the file stem.