Skip to main content

Tiny durable-execution: one workflow run is one SQLite file.

Project description

mundane (Python)

See ../SPEC.md for the cross-runtime contract.

import mundane

def workflow(ctx):
    user = ctx.step("fetch", lambda: {"name": "alice"})
    ctx.sleep("cool-off", "100ms")
    ctx.step("notify", lambda: f"hi {user['name']}")

mundane.run("task.db", workflow)

An async variant is available: await mundane.arun(path, async_workflow) with await ctx.astep(...) / await ctx.asleep(...).

Implementation notes

  • Stdlib only. No third-party dependencies — sqlite3, fcntl (for flock), json, and uuid from the standard library.

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

mundane_sdk-0.0.3.tar.gz (11.8 kB view details)

Uploaded Source

Built Distribution

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

mundane_sdk-0.0.3-py3-none-any.whl (9.8 kB view details)

Uploaded Python 3

File details

Details for the file mundane_sdk-0.0.3.tar.gz.

File metadata

  • Download URL: mundane_sdk-0.0.3.tar.gz
  • Upload date:
  • Size: 11.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for mundane_sdk-0.0.3.tar.gz
Algorithm Hash digest
SHA256 cc755c3b38bca0ee428f5a04e5999a14701b8d95f3df27362c9aba9402507bfb
MD5 6a0b5f4a686439de4ad1b550aa904eed
BLAKE2b-256 a8d4d2e64f67fa9441860a2e54f2b2a82df309b4752fb0889f9f185c20d3c5c8

See more details on using hashes here.

Provenance

The following attestation bundles were made for mundane_sdk-0.0.3.tar.gz:

Publisher: release.yml on paulbellamy/mundane

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file mundane_sdk-0.0.3-py3-none-any.whl.

File metadata

  • Download URL: mundane_sdk-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 9.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for mundane_sdk-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 9e1900c8c271afddf8c5c6d7e268fc400320c5cdd24634d730aea6f06650d258
MD5 d88e8f7086771afb836999252a1168d6
BLAKE2b-256 b1e752e696ddc02164a06c2445dbcf74aa5cc3bb33f4e1da3be3c5732b190183

See more details on using hashes here.

Provenance

The following attestation bundles were made for mundane_sdk-0.0.3-py3-none-any.whl:

Publisher: release.yml on paulbellamy/mundane

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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