Skip to main content

trigora-client

Python client for starting and controlling Trigora durable executions.

Use the same API locally with trigora dev or remotely with Trigora Cloud.

Install

pip install trigora-client

Quick example

from trigora_client import Client

client = Client()

run = client.executions.start("approval", {"request": "example"})
run.send("approved", "ok")
result = run.result()

print(result)

Local and Cloud

By default, the client connects to the local runtime started by trigora dev.

client = Client()

To connect to Trigora Cloud:

client = Client(remote=True)

Cloud requires a token. You can pass one directly or set TRIGORA_TOKEN.

import os

client = Client(remote=True, token=os.environ["TRIGORA_TOKEN"])

You can also connect to a custom endpoint:

client = Client(url="http://127.0.0.1:3477")

Endpoint defaults:

  • Local runtime: TRIGORA_RUNTIME_URL or http://127.0.0.1:3477
  • Trigora Cloud: TRIGORA_API_BASE_URL or https://api.trigora.dev

An explicit url overrides the default endpoint. An explicit token is sent with requests to that endpoint.

API

Workspace and project operations:

  • whoami()
  • projects.list()
  • projects.create()

Programs:

  • deploy()
  • programs.list()
  • programs.get()
  • programs.versions()

Executions:

  • executions.start(program, input=None) — omitted input is []; an explicit {} is one value
  • executions.list()
  • executions.get(id)

Execution handle:

  • run.id
  • run.send(event, payload)
  • run.cancel()
  • run.result()

programs.list, programs.versions, and executions.list accept optional limit and cursor arguments.

program is a program id string.

event is an event name string.

Learn more

License

MIT © 2026 Trigora, Inc.

Metadata

Release files for trigora-client 1.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for trigora-client 1.0.1
File Interpreter ABI Platform
trigora_client-1.0.1-py3-none-any.whl Python 3 none any Details

Release files / trigora_client-1.0.1-py3-none-any.whl

Download URL trigora_client-1.0.1-py3-none-any.whl
Size 4.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3f16ed3bbc607e9f29ff73e30ce9522b96db8beb87a16f9410578cf785c16e56
BLAKE2b-256 checksum
How to use checksums
be6841c8e72ef008056423f9e4432ee6c33216e2ccae74b1d728403fe6277581
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Release history Release notifications | RSS feed

This release

1.0.1 This release

1 release file

1.0.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page