Skip to main content

Plainrouter Python SDK and CLI

Generated from Plainrouter's signed OpenAPI contract. The package is in 0.x and its API may change between minor releases. No support guarantees are made yet.

Official project: plainrouter.com · documentation · source

Report Python SDK issues in the Plainrouter SDK issue tracker.

Install

python -m pip install plainrouter

Python 3.11 or newer is required.

For command-line use, install the same package in an isolated environment:

pipx install plainrouter
plainrouter --help

You can also run the CLI from an active Python environment with python -m plainrouter. The PyPI CLI provides the same command tree, config path, environment variables, JSON output, and safety prompts as @plainrouter/cli.

Use

from plainrouter import create_client, list_events

client = create_client("your-signal-tracker-secret")
response = list_events.sync(client=client)

Async operations are available through each operation module:

from plainrouter import create_client, get_event

client = create_client("your-signal-tracker-secret")
response = await get_event.asyncio(event="event-id", client=client)

The default API base is https://plainrouter.com/api/v1 and the default request timeout is 30 seconds. Pass base_url or an httpx.Timeout to create_client to override either setting. Credentials are supplied by the caller and are never embedded in the SDK.

Copy a failed plan to a fresh draft using a plan-writer bearer token:

import os
from plainrouter import create_client, launch_plans_copy

client = create_client(os.environ["PLAINROUTER_TOKEN"])
response = launch_plans_copy.sync_detailed(1, "failed-plan-id", client=client)

The same operation provides asyncio and asyncio_detailed entry points.

Licensed under Apache-2.0.

Metadata

Release files for plainrouter 0.9.0

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

Source distribution (sdist)

Source distribution for plainrouter 0.9.0
File Size Uploaded
plainrouter-0.9.0.tar.gz 157.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for plainrouter 0.9.0
File Interpreter ABI Platform
plainrouter-0.9.0-py3-none-any.whl Python 3 none any Details

Total release size: 680.5 kB

Release files / plainrouter-0.9.0.tar.gz

Download URL plainrouter-0.9.0.tar.gz
Size 157.4 kB
Tags Source
SHA-256 checksum
How to use checksums
5afc45e08f42339e59dd192af752d84520fa0b28d555eb0df477aeb1ad05620b
BLAKE2b-256 checksum
How to use checksums
0aec002232520d01888d06cd9166e876d4f5955b983b91af761e42cdb77a596d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Oct 10, 2026.

Transparency log

Release files / plainrouter-0.9.0-py3-none-any.whl

Download URL plainrouter-0.9.0-py3-none-any.whl
Size 523.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5c4ef5f022f2ae38827ee746efc144747426dbc63c6014924618f36c5208ef3f
BLAKE2b-256 checksum
How to use checksums
b52c5d1b629339424509f728af4580958a42f02665d4ef356586167e4aea20ff
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Oct 10, 2026.

Transparency log

Release history Release notifications | RSS feed

0.10.0

2 release files

This release

0.9.0 This release

2 release files

0.6.0

2 release files

0.5.2

2 release files

0.5.1

2 release files

0.5.0

2 release files

0.3.1

2 release files

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