Skip to main content

Runsmith - A supervisor-tree framework for building resilient systems

Project description

Runsmith Logo

Supervisor-tree framework for building predictable and resilient programs.

codecov coverage

Not every Python service is a web app. Many systems are composed of multiple independently long-running units — think of an ETL service with a data poller, a transformer, and a result notifier, each with its own lifecycle, failure modes, and recovery needs. Wiring this by hand with retry loops, watchdog threads, and scattered state flags brittle glue code that is hard to reason about.

Runsmith brings structure to this problem. Each unit becomes a worker with an explicit FSM lifecycle. A supervisor tree monitors every worker continuously — detecting stalls and timeouts, not just crashes — and confines restarts to the failed unit so the rest of the system keeps running.

Predictable — every worker lifecycle is declared upfront as an FSM. No hidden control flow.

Composable — supervisors are workers too. Nest them at any depth, freely mixing thread, process, and asyncio execution in one tree.

Resilient — heartbeat, transition, and state-residence timeouts are enforced automatically. Failed workers are restarted within configurable quotas.

Install

pip install runsmith

Documentation

Full documentation, quickstart guide, and examples at https://runsmith.lu-d.com.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

runsmith-1.1.0.tar.gz (167.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

runsmith-1.1.0-py3-none-any.whl (21.3 kB view details)

Uploaded Python 3

File details

Details for the file runsmith-1.1.0.tar.gz.

File metadata

  • Download URL: runsmith-1.1.0.tar.gz
  • Upload date:
  • Size: 167.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.8

File hashes

Hashes for runsmith-1.1.0.tar.gz
Algorithm Hash digest
SHA256 85ae72db918477515bb76ea92f362605314ef728b53b18dfc1361784b36f1a3b
MD5 84861013d8e77c7432128505d99cbd4c
BLAKE2b-256 7d901995c133e60c32e054bf4c1ede6ffc892663312eb71b7cfbfcd655598a38

See more details on using hashes here.

File details

Details for the file runsmith-1.1.0-py3-none-any.whl.

File metadata

  • Download URL: runsmith-1.1.0-py3-none-any.whl
  • Upload date:
  • Size: 21.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.8

File hashes

Hashes for runsmith-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2f0530e55ea8da2779068346075cf75793c79632eb4033e7c62c6de4cb94f1bb
MD5 6e56e2d16087e4e6e8a17eb9cead760e
BLAKE2b-256 a96f1838efde80010f6fa9128c16a4e2a86e36810d8010c2108cd734c05fcd58

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page