On this page
  1. hidden-moves
  2. Role
  3. Install
  4. Quickstart
  5. When to Reach for It
  6. Gotchas & Pitfalls
  7. Pairs With
  8. Metadata

hidden-moves

Prev: engl | Up: projects | Next: function-sequence
Rel: wispsy, Composition, function-sequence, recipes
Ref: wispsy on GitHub | hidden_moves Issues
Tags: #public #wispsy #project #composition #tier/core


Role

Describe, discover, bind, and expose typed Python capabilities (0.2.0, Python 3.11+)—providing a small registry, per-object target binding, JSON-schema CapabilityCatalog, the hidden-moves (hm) CLI, and an optional [composition] extra integrating with function-sequence for contracted composite capabilities and selected-provider workflows.

Install

python -m pip install hidden-moves==0.2.0
# Optional Function Sequence composition integration:
python -m pip install "hidden-moves[composition]==0.2.0"

Quickstart

from hidden_moves import Moves
from hidden_moves.adapters import CapabilityCatalog

def repeat(value: str, count: int = 2) -> str:
    return " ".join([value] * count)

moves = Moves()
moves.learn(repeat, namespace="text")
catalog = CapabilityCatalog(moves, ["text.repeat"])
assert catalog.invoke("text.repeat", {"value": "hello"}) == "hello hello"

When to Reach for It

Gotchas & Pitfalls

Pairs With


Metadata

type: project-card
slug: hidden-moves
org: wispsy
repo: wispsy/hidden-moves
package: hidden-moves
import_name: hidden_moves
version: 0.2.0
requires_python: ">=3.11"
layer: composition
topic: wispsy-composition
status: active
language: python
source_docs: README.md, docs/

Linked from

Related notes