Skip to main content

cjm-substrate-tui-kit

No purpose recorded on-graph yet — author it with assert ee2dd69f-1e52-5079-a6e6-a529cec821e7 purpose "…" (or by the repo's entity key).

Modules

  • cjm_substrate_tui_kit
  • cjm_substrate_tui_kit.audio — VAD-chunk audio playback for TUI frontends — a persistent-output-stream
  • cjm_substrate_tui_kit.form — Manifest-driven config form model — the tui-kit keystone (work item
  • cjm_substrate_tui_kit.repaint — Repaint coalescing for event-driven TUIs — throttle paint bursts to a
  • cjm_substrate_tui_kit.state — JSON sidecar for TUI view-state — settings and bookmarks that persist
  • cjm_substrate_tui_kit.viewport — Cursor-windowed viewport math for flat list panes — the tui-kit's first

API

cjm_substrate_tui_kit.audio

  • ChunkPlayer class — Persistent-output-stream VAD-chunk player — the focus-walk auto-play engine.
  • load_chunk function — Read one VAD chunk's samples from the model-input WAV — frame-sliced, sample-accurate.
  • stretch function — Pitch-preserving time-stretch (WSOLA, numpy-only) — the playback-speed engine.

cjm_substrate_tui_kit.form

  • ConfigField class — One schema property as an editable form row.
  • ConfigForm class — A capability's editable config, derived from its manifest config_schema.

cjm_substrate_tui_kit.repaint

  • RepaintThrottle class — Leading-edge paint + trailing-tick flush inside a fixed window.

cjm_substrate_tui_kit.state

  • SidecarState class — One JSON sidecar file: never-raise load, merge-on-save, best-effort write.

cjm_substrate_tui_kit.viewport

  • tail function — Clamp a string to width keeping its END.
  • visible_slice function — Clamped cursor-centered window over a flat list: paint rows[start:end].

Dependencies

Depends on: numpy, sounddevice, soundfile Used by: cjm-transcript-correction-tui, cjm-transcript-decomp-tui, cjm-transcription-tui, cjm-workflow-hub-tui

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cjm_substrate_tui_kit-0.0.2.tar.gz (14.3 kB view details)

Uploaded Source

Built Distribution

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

cjm_substrate_tui_kit-0.0.2-py3-none-any.whl (12.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: cjm_substrate_tui_kit-0.0.2.tar.gz
  • Upload date:
  • Size: 14.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.12

File hashes

Hashes for cjm_substrate_tui_kit-0.0.2.tar.gz
Algorithm Hash digest
SHA256 108f668891147d8f8d74c2c5c7b2e0548f87a6c5ab5d843a9b51e0d32f8f6813
MD5 69d8c9e04799d642600108706853b02c
BLAKE2b-256 0209795c64a10ebcc9336b256af15461ce53851eed603b9856931c1d9bdc0b5b

See more details on using hashes here.

File details

Details for the file cjm_substrate_tui_kit-0.0.2-py3-none-any.whl.

File metadata

File hashes

Hashes for cjm_substrate_tui_kit-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 0fe4d3deb33f890a6156eb31250d9a5ef8360585b7af4477f1b5db3c061120be
MD5 af97975791623e29f1d4e7f5ab2eeffa
BLAKE2b-256 86d0964e8bafbea838d59b3779e78bbdf70e1cc7113c8a33b7be92122457c073

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.0.2 This release

2 files

0.0.1

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page