Skip to main content

runstate (Python SDK)

Resource handles and safe lifecycle helpers for the runstate coordination kernel.

from runstate import Runstate

bus = Runstate()  # reads RUNSTATE_API_KEY / RUNSTATE_SPACE_ID / RUNSTATE_BASE_URL
run = bus.scopes.create(name="research")
run.mailbox("research").send({"topic": "fusion energy"})
  • AsyncRunstate — primary async client (httpx).
  • Runstate — blocking facade running the async client on one dedicated event-loop thread; sync handlers are offloaded so renewal is never blocked.
  • Safe helpers: single-flight lease renewal, fail-closed lease loss, bounded retries, reconnectable events.watch, and run diagnostics.

Install

pip install runstate-sdk

Metadata

Release files for runstate-sdk 0.2.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 runstate-sdk 0.2.0
File Size Uploaded
runstate_sdk-0.2.0.tar.gz 28.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for runstate-sdk 0.2.0
File Interpreter ABI Platform
runstate_sdk-0.2.0-py3-none-any.whl Python 3 none any Details

Total release size: 60.4 kB

Release files / runstate_sdk-0.2.0.tar.gz

Download URL runstate_sdk-0.2.0.tar.gz
Size 28.5 kB
Tags Source
SHA-256 checksum
How to use checksums
1e74602f2fb787e717edde9bfa3f4ec80fe2fc516ab13f85e5dc5ceeb05fd196
BLAKE2b-256 checksum
How to use checksums
83e3992dc3021caf22da430bf06b12fa0d3ec5167b9b9dc0e08283a7a1f2f322
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.2

Release files / runstate_sdk-0.2.0-py3-none-any.whl

Download URL runstate_sdk-0.2.0-py3-none-any.whl
Size 31.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
438ef31600944e235e64135bc3f2976768680a9409a806c920889389ded45bd9
BLAKE2b-256 checksum
How to use checksums
211948b0f6fb388122bd1adc295d6ee0b3ba0c1126b985b0174111b4a081329d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.2

Release history Release notifications | RSS feed

0.3.0

2 release files

This release

0.2.0 This release

2 release files

0.1.1

2 release files

0.1.0

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