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.1.0.tar.gz (11.7 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.1.0-py3-none-any.whl (9.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: mundane_sdk-0.1.0.tar.gz
  • Upload date:
  • Size: 11.7 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.1.0.tar.gz
Algorithm Hash digest
SHA256 ba54d573487ba59d58b7782d6992e452915412c97e035f621c6369de20ee21e3
MD5 85b952237948340622cd298f1d0e2bcf
BLAKE2b-256 e9608b2bbc537b324c2f5534b6843c48837cfab6d7cef3668f065fa8e32772ae

See more details on using hashes here.

Provenance

The following attestation bundles were made for mundane_sdk-0.1.0.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.1.0-py3-none-any.whl.

File metadata

  • Download URL: mundane_sdk-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 9.7 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.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 45339055324c2218d8c9a711cf6c246dcf57bd56472c47fb1392cd606ddeeb9f
MD5 0728f42fd54b9d2ab80e0d42ae5ed2bd
BLAKE2b-256 c407877e40112125246bf6fa8f3cf1ebf19b28f8fab5825d3e96fbcec80cfd3f

See more details on using hashes here.

Provenance

The following attestation bundles were made for mundane_sdk-0.1.0-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