On this page
  1. function-sequence
  2. Role
  3. Install
  4. Quickstart
  5. Compose Ordinary Functions
  6. Pause, Checkpoint & Passive Workflows
  7. When to Reach for It
  8. Gotchas & Pitfalls
  9. Pairs With
  10. Metadata

function-sequence

Prev: hidden-moves | Up: projects | Next: apiconn
Rel: wispsy, Composition, hidden-moves, hypnosis
Ref: wispsy on GitHub
Tags: #public #wispsy #project #composition #tier/core


Role

Explicit computational composition, passive schema-2 JSON/TOML workflows, and durable sequential execution (0.2.0, Python 3.11+, zero base runtime deps)—consolidating the former func-seq, moveset, and scriptty repositories into one unified lifecycle (Pipeline, Script, NativeResolver, cooperative pause, async arun(), and atomic JSON checkpoints).

Install

python -m pip install function-sequence==0.2.0
# Optional workflow CLI (expose-interface) or Carets terminal host (Python 3.14+):
python -m pip install "function-sequence[cli]==0.2.0"
python -m pip install "function-sequence[terminal]==0.2.0"

Quickstart

Compose Ordinary Functions

from function_sequence import Input, NativeResolver, Pipeline, Ref, Step

def normalize(text: str) -> str:
    return " ".join(text.lower().split())

resolver = NativeResolver({"text.normalize": normalize}, version="text-v1")
definition = Pipeline("text.process", version="1", steps=(
    Step("clean", "text.normalize", {"text": Input("text")}),
), outputs={"text": Ref("clean")})
bound = definition.bind(resolver, resolver_version="text-v1")
assert bound.run({"text": " Hello WORLD "}).outputs == {"text": "hello world"}

Pause, Checkpoint & Passive Workflows

from function_sequence import Script

script = Script("greeting", version="1")
collected = script.add_function(lambda: {"text": "hello"})
script.add_function(lambda text: {"displayed": text}, collected["text"])
first = script.run(checkpoint="greeting.progress.json", pace="function")
assert first.status == "paused"
complete = script.run(checkpoint="greeting.progress.json")
function-sequence workflow inspect examples/text.json

When to Reach for It

Gotchas & Pitfalls

Pairs With


Metadata

type: project-card
slug: function-sequence
previous_slugs:
  - func-seq
  - moveset
  - scriptty
org: wispsy
repo: wispsy/function-sequence
package: function-sequence
import_name: function_sequence
version: 0.2.0
requires_python: ">=3.11"
layer: composition
topic: wispsy-composition
status: active
language: python
source_docs: README.md, docs/, specification/

Linked from

Related notes