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.2.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.2-py3-none-any.whl (9.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: mundane_sdk-0.0.2.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.2.tar.gz
Algorithm Hash digest
SHA256 9ec0bb05bdc3d3f898eaec0d85d1b01245c6be158f756e6ce1e96071199eeaad
MD5 da873a5723a370c3d532417653fb8ac6
BLAKE2b-256 c6256ab870a1fcfbdb63a3490db9c1f37d1f82b6c01eac71e91a613e2c78641e

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: mundane_sdk-0.0.2-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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 ca1e27341791b43d3fb3124f890194bbb3bba1cd267567f0612e0848bc213379
MD5 dacbbd229b4e2e67ba089135ef162aa3
BLAKE2b-256 79dbbe8b044cf6ca510d87e4c67d88ff6c789a11eb06b47a45cb88cefec534ac

See more details on using hashes here.

Provenance

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