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.1.1

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.1.1
File Size Uploaded
runstate_sdk-0.1.1.tar.gz 24.7 kB Details

Built distribution (wheel)

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

Total release size: 54.5 kB

Release files / runstate_sdk-0.1.1.tar.gz

Download URL runstate_sdk-0.1.1.tar.gz
Size 24.7 kB
Tags Source
SHA-256 checksum
How to use checksums
4a09081aa151ec23e1db6577dbbf90729ee1ea052c32dbb32f9740670777c221
BLAKE2b-256 checksum
How to use checksums
3fdc475194f6ef12b4b5ca9198fc94c54a729a77a51619af0afa68d2d04e55fc
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.1.1-py3-none-any.whl

Download URL runstate_sdk-0.1.1-py3-none-any.whl
Size 29.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d36cd4cca1afcfb5fcff777310764b901b5826142a800f238c747cf88cfe457c
BLAKE2b-256 checksum
How to use checksums
9c906d67bcfb68ee99feb2680e8399e6534ba474226950d0d27107e8f682b09d
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

0.2.0

2 release files

This release

0.1.1 This release

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