triggerdev
The first fully typed Python SDK for the Trigger.dev management API. Built with Pydantic models generated from the OpenAPI spec, covering tasks, runs, and schedules.
Installation
Requires Python 3.10 or later.
uv add triggerdev
Or with pip:
pip install triggerdev
Getting started
Set your Trigger.dev secret key as an environment variable:
export TRIGGER_SECRET_KEY="tr_dev_sk_..."
Then trigger your first task:
from triggerdev import Client
with Client() as client:
result = client.tasks.trigger("my-task", payload={"user_id": 42})
print(result.id)
You can also pass the API key explicitly:
client = Client(api_key="tr_dev_sk_...")
Features
Trigger tasks
from triggerdev import Client
with Client() as client:
# Trigger a single task
result = client.tasks.trigger("send-welcome-email", payload={"user_id": 42})
# Batch trigger the same task with multiple payloads
result = client.tasks.batch_trigger("send-welcome-email", items=[
{"payload": {"user_id": 1}},
{"payload": {"user_id": 2}},
])
List and filter runs
from triggerdev import Client
with Client() as client:
# List runs with status filter
runs = client.runs.list(status=["QUEUED", "EXECUTING"])
for run in runs.data:
print(f"{run.id}: {run.status}")
# Retrieve a specific run
run = client.runs.retrieve("run_1234")
print(run.task_identifier)
Manage schedules
from triggerdev import Client
with Client() as client:
# Create a recurring schedule
schedule = client.schedules.create(
task="daily-report",
cron="0 9 * * *",
deduplication_key="daily-report-prod",
timezone="America/New_York",
)
print(schedule.id)
# List all schedules
schedules = client.schedules.list()
for s in schedules.data:
print(f"{s.task}: {s.generator.expression}")
Error handling
Every API error maps to a typed exception:
from triggerdev import Client, AuthenticationError, NotFoundError, RateLimitError
with Client() as client:
try:
run = client.runs.retrieve("run_nonexistent")
except NotFoundError as e:
print(f"Not found: {e}")
except AuthenticationError:
print("Invalid API key")
except RateLimitError:
print("Rate limited, retry later")
Requirements
Contributing
Contributions are welcome. See CONTRIBUTING.md for guidelines.
License
Metadata
Release files for triggerdev 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| triggerdev-0.1.0.tar.gz | 15.6 kB | With provenance | Details for triggerdev-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| triggerdev-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for triggerdev-0.1.0-py3-none-any.whl |
Total release size: 35.2 kB
Release files / triggerdev-0.1.0.tar.gz
| Download URL | triggerdev-0.1.0.tar.gz |
|---|---|
| Size | 15.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d8555438febb047062715c0ff9f0d8eeedc645526de0d350ce4fdb7547ffd837
|
|
BLAKE2b-256 checksum How to use checksums |
477407a0f9ca07b268b4996c5275c79b0671064efe0ffe800265c0d87e3c915c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 30, 2026.
Transparency logRelease files / triggerdev-0.1.0-py3-none-any.whl
| Download URL | triggerdev-0.1.0-py3-none-any.whl |
|---|---|
| Size | 19.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b34e6e269dce69ebca33a8406cf6f6ad5fcc623cbcfc17e04d2043cf908917a6
|
|
BLAKE2b-256 checksum How to use checksums |
9c8bbed38a2450760683022c322aa35c02482a041e36a25d62b37100c85d8dac
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 30, 2026.
Transparency logSecurity for triggerdev 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for triggerdev-0.1.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 30, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.