firmament: add the DDP pattern player
Assisted-by: Claude Opus 5.5 via Claude Code
change kwvlruyqlszsxnzqxuzklpnxnuvxwoqn
commit 0e4791dc06cdd02f291622d0af107d523e471133
author Alpha Chen <alpha@kejadlen.dev>
date
parent mssryous
diff --git a/.gitignore b/.gitignore
index 2ddd6a8..43d596f 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,2 +1,3 @@
 .direnv/
 .venv/
+__pycache__/
diff --git a/README.md b/README.md
index 1a58a12..37915d8 100644
--- a/README.md
+++ b/README.md
@@ -24,17 +24,17 @@ do the mapping with an iPhone Pro (ARKit + LiDAR) and a WLED-driven string.
 | [`notes/mapping-existing-solutions.md`](notes/mapping-existing-solutions.md) | Survey of existing 3D LED mapping tools |
 | [`notes/mapping-arkit-approach.md`](notes/mapping-arkit-approach.md) | Why and how to use ARKit for mapping |
 | [`notes/porch-festoon.md`](notes/porch-festoon.md) | Separate project: a smart porch festoon (research stage) |
-| [`firmament/`](firmament/) | The mapping app (design only, nothing built yet) |
+| [`firmament/`](firmament/) | The mapping app (pattern player built; the rest is design only) |
 
 ## Status
 
 - Research and notes: written (2026-11-14), compiled from a web research
   session plus earlier chats from October and November 2026.
-- `firmament/`: design only.
-- Next steps (see [`firmament/DESIGN.md`](firmament/DESIGN.md#plan)): pin
-  down the pattern and session format, build the DDP pattern player, then a
-  tracking spike to see whether ARKit tracking survives a dim room with the
-  pattern running.
+- `firmament/`: the spec and the DDP pattern player are written; the player
+  hasn't run against the tree yet.
+- Next steps (see [`firmament/DESIGN.md`](firmament/DESIGN.md#plan)): run the
+  pattern player on the tree, then a tracking spike to see whether ARKit
+  tracking survives a dim room with the pattern running.
 
 ## A note on provenance
 
diff --git a/firmament/README.md b/firmament/README.md
index 290bf5d..1023bb3 100644
--- a/firmament/README.md
+++ b/firmament/README.md
@@ -7,7 +7,40 @@ The name: a sky full of points of light, each with a coordinate.
 
 ## Status
 
-Design only. Nothing is built. See [`DESIGN.md`](DESIGN.md).
+The pattern player is built and unit-tested, but it hasn't run against the
+tree yet. Everything else is design only. See [`DESIGN.md`](DESIGN.md) for the
+plan and [`SPEC.md`](SPEC.md) for the pattern and session format.
+
+## Run the pattern player
+
+The repository's Nix flake provides Python and uv. From this directory:
+
+```sh
+nix develop ..
+uv run firmament play --host wled.local --leds 300
+```
+
+Replace `wled.local` with your WLED's hostname or IP address. `play` loops the
+ID pattern until you press Ctrl-C, then turns the LEDs off.
+WLED goes back to its own effect 2.5 s later. Add `--log player.jsonl` to
+record each slot sent.
+
+To check the wiring, light one LED or one 50-LED strand:
+
+```sh
+uv run firmament light --host wled.local --leds 500 --index 250
+uv run firmament light --host wled.local --leds 500 --strand 5
+```
+
+`--level` sets the brightness of a lit LED, from 0 to 255 (default 32).
+
+## Develop
+
+```sh
+uv run pytest
+uv run ruff format && uv run ruff check
+uv run ty check
+```
 
 ## Shape of it
 
diff --git a/firmament/pyproject.toml b/firmament/pyproject.toml
index 2595d5e..fae6a41 100644
--- a/firmament/pyproject.toml
+++ b/firmament/pyproject.toml
@@ -4,3 +4,26 @@ version = "0.1.0"
 description = "Find each LED's position in 3D from phone captures"
 requires-python = ">=3.13"
 dependencies = []
+
+[project.scripts]
+firmament = "firmament.cli:main"
+
+[dependency-groups]
+dev = [
+    "pytest>=8",
+    "ruff>=0.17.6",
+    "ty>=0.0.107",
+]
+
+[build-system]
+requires = ["uv_build>=0.13.9,<0.14"]
+build-backend = "uv_build"
+
+[tool.pytest.ini_options]
+testpaths = ["tests"]
+
+[tool.ruff]
+line-length = 100
+
+[tool.ruff.lint]
+extend-select = ["B", "I", "UP"]
diff --git a/firmament/src/firmament/__init__.py b/firmament/src/firmament/__init__.py
new file mode 100644
index 0000000..e69de29
diff --git a/firmament/src/firmament/cli.py b/firmament/src/firmament/cli.py
new file mode 100644
index 0000000..bace3e4
--- /dev/null
+++ b/firmament/src/firmament/cli.py
@@ -0,0 +1,180 @@
+"""Command-line entry point: `firmament play` and `firmament light`."""
+
+import argparse
+import json
+import sys
+import time
+from collections.abc import Callable
+from itertools import count
+from typing import TextIO
+
+from firmament.codes import MAX_LEDS
+from firmament.ddp import PORT, DdpSender
+from firmament.pattern import (
+    ALL_OFF,
+    MIN_LEDS,
+    SLOT_COUNT,
+    SLOT_SECONDS,
+    index_frame,
+    slot_frame,
+    strand_frame,
+)
+
+# Resend a static debug frame well inside WLED's 2.5 s realtime timeout.
+LIGHT_RESEND_SECONDS = 1.0
+
+
+def play(
+    send: Callable[[bytes], None],
+    frame_for_slot: Callable[[int], bytes],
+    *,
+    on_slot: Callable[[int], None] = lambda _: None,
+    on_rebase: Callable[[float], None] = lambda _: None,
+    clock: Callable[[], float] = time.monotonic,
+    sleep: Callable[[float], None] = time.sleep,
+    limit: int | None = None,
+) -> None:
+    """Loop the pattern, one slot per SLOT_SECONDS, until interrupted or `limit` slots."""
+    next_at = clock()
+    slots = count() if limit is None else range(limit)
+    for k in slots:
+        slot = k % SLOT_COUNT
+        send(frame_for_slot(slot))
+        on_slot(slot)
+        next_at += SLOT_SECONDS
+        lag = clock() - next_at
+        if lag <= 0:
+            sleep(-lag)
+        elif lag > SLOT_SECONDS / 2:
+            # Catching up would leave the next slot too short to decode, so start a fresh schedule.
+            on_rebase(lag)
+            next_at = clock()
+
+
+def main(argv: list[str] | None = None) -> int:
+    parser = _parser()
+    args = parser.parse_args(argv)
+    try:
+        frames = _frames(args)
+    except ValueError as e:
+        parser.error(str(e))
+
+    try:
+        sender = DdpSender(args.host, args.port)
+    except OSError as e:
+        print(f"firmament: can't find {args.host}: {e}", file=sys.stderr)
+        return 1
+
+    with sender:
+        try:
+            if args.command == "play":
+                _play(frames, sender, args.log)
+            else:
+                _light(frames[0], sender)
+        except KeyboardInterrupt:
+            pass
+        except OSError as e:
+            print(f"firmament: can't send to {args.host}: {e}", file=sys.stderr)
+            return 1
+        try:
+            sender.send(slot_frame(ALL_OFF, args.leds, args.level))
+        except OSError:
+            pass  # WLED goes back to its own effect after its realtime timeout anyway.
+    return 0
+
+
+def _frames(args: argparse.Namespace) -> list[bytes]:
+    if args.command == "play":
+        return [slot_frame(slot, args.leds, args.level) for slot in range(SLOT_COUNT)]
+    if args.index is not None:
+        return [index_frame(args.index, args.leds, args.level)]
+    return [strand_frame(args.strand, args.strand_length, args.leds, args.level)]
+
+
+def _play(frames: list[bytes], sender: DdpSender, log: TextIO | None) -> None:
+    def on_slot(slot: int) -> None:
+        if log:
+            log.write(json.dumps({"t": time.time(), "slot": slot}) + "\n")
+
+    def on_rebase(lag: float) -> None:
+        print(
+            f"firmament: fell {lag * 1000:.0f} ms behind; restarting slot timing", file=sys.stderr
+        )
+
+    try:
+        play(sender.send, frames.__getitem__, on_slot=on_slot, on_rebase=on_rebase)
+    finally:
+        if log:
+            log.close()
+
+
+def _light(frame: bytes, sender: DdpSender) -> None:
+    while True:
+        sender.send(frame)
+        time.sleep(LIGHT_RESEND_SECONDS)
+
+
+def _parser() -> argparse.ArgumentParser:
+    common = argparse.ArgumentParser(add_help=False)
+    common.add_argument("--host", required=True, help="WLED hostname or IP address")
+    common.add_argument("--port", type=int, default=PORT, help=f"DDP port (default {PORT})")
+    common.add_argument(
+        "--leds",
+        type=_ranged(MIN_LEDS, MAX_LEDS),
+        required=True,
+        help=f"number of LEDs, {MIN_LEDS} to {MAX_LEDS}",
+    )
+    common.add_argument(
+        "--level",
+        type=_ranged(0, 255),
+        default=32,
+        help="brightness of a lit LED, 0 to 255 (default 32)",
+    )
+
+    parser = argparse.ArgumentParser(prog="firmament")
+    commands = parser.add_subparsers(dest="command", required=True)
+
+    play_command = commands.add_parser("play", parents=[common], help="loop the ID pattern")
+    play_command.add_argument(
+        "--log",
+        type=_writable_file,
+        help="write each slot sent to this JSON Lines file, for debugging",
+    )
+
+    light = commands.add_parser("light", parents=[common], help="light one LED or one strand")
+    target = light.add_mutually_exclusive_group(required=True)
+    target.add_argument("--index", type=_ranged(0, MAX_LEDS - 1), help="LED index to light")
+    target.add_argument(
+        "--strand", type=_ranged(0, MAX_LEDS - 1), help="strand number to light, from 0"
+    )
+    light.add_argument(
+        "--strand-length",
+        type=_ranged(1, MAX_LEDS),
+        default=50,
+        help="LEDs per strand (default 50)",
+    )
+    return parser
+
+
+def _ranged(low: int, high: int) -> Callable[[str], int]:
+    def parse(text: str) -> int:
+        try:
+            value = int(text)
+        except ValueError:
+            raise argparse.ArgumentTypeError(f"{text!r} isn't a whole number") from None
+        if not low <= value <= high:
+            raise argparse.ArgumentTypeError(f"{value} is outside {low} to {high}")
+        return value
+
+    return parse
+
+
+def _writable_file(path: str) -> TextIO:
+    try:
+        return open(path, "w", encoding="utf-8")
+    except OSError as e:
+        raise argparse.ArgumentTypeError(f"can't write {path}: {e.strerror}") from None
+
+
+if __name__ == "__main__":
+    sys.exit(main())
diff --git a/firmament/src/firmament/codes.py b/firmament/src/firmament/codes.py
new file mode 100644
index 0000000..a1d2378
--- /dev/null
+++ b/firmament/src/firmament/codes.py
@@ -0,0 +1,27 @@
+"""LED ID codewords, as defined in SPEC.md (ID code)."""
+
+from functools import cache
+
+BITS = 12
+WEIGHT = 6
+MAX_LEDS = 500
+
+_ALL_ONES = (1 << BITS) - 1
+
+
+@cache
+def _table() -> tuple[int, ...]:
+    low_half = [c for c in range(1 << (BITS - 1)) if c.bit_count() == WEIGHT]
+    return tuple(word for c in low_half for word in (c, c ^ _ALL_ONES))
+
+
+def code(index: int) -> int:
+    if not 0 <= index < MAX_LEDS:
+        raise ValueError(f"LED index {index} is outside 0 to {MAX_LEDS - 1}")
+    return _table()[index]
+
+
+def bit(index: int, position: int) -> bool:
+    if not 0 <= position < BITS:
+        raise ValueError(f"bit position {position} is outside 0 to {BITS - 1}")
+    return bool(code(index) >> position & 1)
diff --git a/firmament/src/firmament/ddp.py b/firmament/src/firmament/ddp.py
new file mode 100644
index 0000000..bc3d800
--- /dev/null
+++ b/firmament/src/firmament/ddp.py
@@ -0,0 +1,86 @@
+"""A minimal DDP sender, matching what WLED's receiver accepts."""
+
+import socket
+import struct
+from dataclasses import dataclass
+from enum import IntFlag
+from types import TracebackType
+from typing import ClassVar, Self
+
+PORT = 4048
+RGB24 = 0x0B
+DISPLAY = 1
+
+# WLED's own sender uses this, and it's a whole number of RGB pixels (480).
+MAX_DATA = 1440
+
+
+class Flags(IntFlag):
+    PUSH = 0x01
+    VERSION_1 = 0x40
+
+
+@dataclass(frozen=True)
+class Header:
+    flags: Flags
+    sequence: int
+    offset: int
+    length: int
+    data_type: int = RGB24
+    destination: int = DISPLAY
+
+    _FORMAT: ClassVar = struct.Struct(">BBBBIH")
+    SIZE: ClassVar[int] = _FORMAT.size
+
+    def pack(self) -> bytes:
+        return self._FORMAT.pack(
+            self.flags, self.sequence, self.data_type, self.destination, self.offset, self.length
+        )
+
+    @classmethod
+    def unpack(cls, packet: bytes) -> Self:
+        flags, sequence, data_type, destination, offset, length = cls._FORMAT.unpack_from(packet)
+        return cls(Flags(flags), sequence, offset, length, data_type, destination)
+
+
+def packets(frame: bytes, sequence: int) -> list[bytes]:
+    """Split one RGB frame into DDP packets, with push set on the last."""
+    if not frame or len(frame) % 3:
+        raise ValueError(f"frame is {len(frame)} bytes; expected a nonzero multiple of 3")
+    if not 1 <= sequence <= 15:
+        raise ValueError(f"sequence {sequence} is outside 1 to 15")
+
+    offsets = range(0, len(frame), MAX_DATA)
+    result = []
+    for offset in offsets:
+        chunk = frame[offset : offset + MAX_DATA]
+        flags = Flags.VERSION_1 | (Flags.PUSH if offset == offsets[-1] else 0)
+        result.append(Header(flags, sequence, offset, len(chunk)).pack() + chunk)
+    return result
+
+
+class DdpSender:
+    def __init__(self, host: str, port: int = PORT) -> None:
+        family, kind, proto, _, address = socket.getaddrinfo(host, port, type=socket.SOCK_DGRAM)[0]
+        self._socket = socket.socket(family, kind, proto)
+        self._socket.connect(address)
+        self._sequence = 0
+
+    def send(self, frame: bytes) -> None:
+        self._sequence = self._sequence % 15 + 1
+        for packet in packets(frame, self._sequence):
+            self._socket.send(packet)
+
+    def close(self) -> None:
+        self._socket.close()
+
+    def __enter__(self) -> Self:
+        return self
+
+    def __exit__(
+        self,
+        exc_type: type[BaseException] | None,
+        exc: BaseException | None,
+        traceback: TracebackType | None,
+    ) -> None:
+        self.close()
diff --git a/firmament/src/firmament/pattern.py b/firmament/src/firmament/pattern.py
new file mode 100644
index 0000000..8f72f36
--- /dev/null
+++ b/firmament/src/firmament/pattern.py
@@ -0,0 +1,46 @@
+"""Frames for the ID pattern and the debug modes, as defined in SPEC.md (Pattern)."""
+
+from collections.abc import Callable
+
+from firmament.codes import BITS, MAX_LEDS, bit
+
+SLOT_SECONDS = 0.150
+SLOT_COUNT = 2 + BITS
+ALL_ON = 0
+ALL_OFF = 1
+MIN_LEDS = 2
+
+
+def slot_frame(slot: int, led_count: int, level: int) -> bytes:
+    if not 0 <= slot < SLOT_COUNT:
+        raise ValueError(f"slot {slot} is outside 0 to {SLOT_COUNT - 1}")
+    if slot == ALL_ON:
+        return _frame(led_count, level, lambda _: True)
+    if slot == ALL_OFF:
+        return _frame(led_count, level, lambda _: False)
+    return _frame(led_count, level, lambda i: bit(i, slot - 2))
+
+
+def index_frame(index: int, led_count: int, level: int) -> bytes:
+    if not 0 <= index < led_count:
+        raise ValueError(f"LED index {index} is outside 0 to {led_count - 1}")
+    return _frame(led_count, level, lambda i: i == index)
+
+
+def strand_frame(strand: int, strand_length: int, led_count: int, level: int) -> bytes:
+    if strand_length < 1:
+        raise ValueError(f"strand length {strand_length} must be at least 1")
+    strand_count = -(-led_count // strand_length)
+    if not 0 <= strand < strand_count:
+        raise ValueError(f"strand {strand} is outside 0 to {strand_count - 1}")
+    return _frame(led_count, level, lambda i: i // strand_length == strand)
+
+
+def _frame(led_count: int, level: int, lit: Callable[[int], bool]) -> bytes:
+    if not MIN_LEDS <= led_count <= MAX_LEDS:
+        raise ValueError(f"LED count {led_count} is outside {MIN_LEDS} to {MAX_LEDS}")
+    if not 0 <= level <= 255:
+        raise ValueError(f"level {level} is outside 0 to 255")
+    on = bytes([level] * 3)
+    off = bytes(3)
+    return b"".join(on if lit(i) else off for i in range(led_count))
diff --git a/firmament/tests/test_cli.py b/firmament/tests/test_cli.py
new file mode 100644
index 0000000..fbd6509
--- /dev/null
+++ b/firmament/tests/test_cli.py
@@ -0,0 +1,82 @@
+import pytest
+
+from firmament.cli import main, play
+from firmament.pattern import SLOT_COUNT, SLOT_SECONDS
+
+
+class FakeClock:
+    def __init__(self) -> None:
+        self.now = 0.0
+        self.sleeps: list[float] = []
+
+    def __call__(self) -> float:
+        return self.now
+
+    def sleep(self, seconds: float) -> None:
+        self.sleeps.append(seconds)
+        self.now += seconds
+
+
+def test_play_cycles_through_slots_in_order():
+    clock = FakeClock()
+    slots: list[int] = []
+    play(
+        lambda _: None,
+        lambda s: bytes([s]),
+        on_slot=slots.append,
+        clock=clock,
+        sleep=clock.sleep,
+        limit=30,
+    )
+    assert slots == [k % SLOT_COUNT for k in range(30)]
+
+
+def test_play_holds_each_slot_for_slot_seconds():
+    clock = FakeClock()
+    play(lambda _: None, lambda _: bytes(3), clock=clock, sleep=clock.sleep, limit=5)
+    assert clock.sleeps == pytest.approx([SLOT_SECONDS] * 5)
+
+
+def test_play_absorbs_small_lag_without_drift():
+    clock = FakeClock()
+
+    def slow_send(_: bytes) -> None:
+        clock.now += 0.010
+
+    play(slow_send, lambda _: bytes(3), clock=clock, sleep=clock.sleep, limit=10)
+    assert clock.now == pytest.approx(10 * SLOT_SECONDS)
+
+
+def test_play_restarts_schedule_after_a_long_stall():
+    clock = FakeClock()
+    rebases: list[float] = []
+    sends = 0
+
+    def stalling_send(_: bytes) -> None:
+        nonlocal sends
+        sends += 1
+        if sends == 2:
+            clock.now += 1.0
+
+    play(
+        stalling_send,
+        lambda _: bytes(3),
+        on_rebase=rebases.append,
+        clock=clock,
+        sleep=clock.sleep,
+        limit=4,
+    )
+    assert rebases == [pytest.approx(1.0 - SLOT_SECONDS)]
+    assert clock.sleeps[-2:] == pytest.approx([SLOT_SECONDS] * 2)
+
+
+def test_light_rejects_index_beyond_led_count(capsys):
+    with pytest.raises(SystemExit) as exit_info:
+        main(["light", "--host", "127.0.0.1", "--leds", "100", "--index", "100"])
+    assert exit_info.value.code == 2
+    assert "LED index 100 is outside 0 to 99" in capsys.readouterr().err
+
+
+def test_unknown_host_is_reported(capsys):
+    assert main(["play", "--host", "no-such-host.invalid", "--leds", "100"]) == 1
+    assert "can't find no-such-host.invalid" in capsys.readouterr().err
diff --git a/firmament/tests/test_codes.py b/firmament/tests/test_codes.py
new file mode 100644
index 0000000..02d2b3c
--- /dev/null
+++ b/firmament/tests/test_codes.py
@@ -0,0 +1,42 @@
+import pytest
+
+from firmament.codes import BITS, MAX_LEDS, WEIGHT, bit, code
+
+
+def test_first_codes_match_spec():
+    assert [code(i) for i in range(6)] == [63, 4032, 95, 4000, 111, 3984]
+
+
+def test_every_code_has_weight_six():
+    assert all(code(i).bit_count() == WEIGHT for i in range(MAX_LEDS))
+
+
+def test_codes_are_unique():
+    assert len({code(i) for i in range(MAX_LEDS)}) == MAX_LEDS
+
+
+def test_codes_fit_in_twelve_bits():
+    assert all(0 <= code(i) < 1 << BITS for i in range(MAX_LEDS))
+
+
+@pytest.mark.parametrize("led_count", range(2, MAX_LEDS + 1))
+def test_every_slot_lights_half_the_leds(led_count):
+    for position in range(BITS):
+        lit = sum(bit(i, position) for i in range(led_count))
+        assert led_count // 2 <= lit <= -(-led_count // 2)
+
+
+def test_bit_reads_the_code_least_significant_first():
+    assert [bit(0, j) for j in range(BITS)] == [True] * 6 + [False] * 6
+
+
+@pytest.mark.parametrize("index", [-1, MAX_LEDS])
+def test_code_rejects_out_of_range_index(index):
+    with pytest.raises(ValueError, match="LED index"):
+        code(index)
+
+
+@pytest.mark.parametrize("position", [-1, BITS])
+def test_bit_rejects_out_of_range_position(position):
+    with pytest.raises(ValueError, match="bit position"):
+        bit(0, position)
diff --git a/firmament/tests/test_ddp.py b/firmament/tests/test_ddp.py
new file mode 100644
index 0000000..a3eaeee
--- /dev/null
+++ b/firmament/tests/test_ddp.py
@@ -0,0 +1,60 @@
+import socket
+
+import pytest
+
+from firmament.ddp import MAX_DATA, DdpSender, Flags, Header, packets
+
+PUSHED = Flags.VERSION_1 | Flags.PUSH
+
+
+def test_header_packs_to_wled_layout():
+    packed = Header(PUSHED, 3, offset=1440, length=180).pack()
+    assert packed == bytes([0x41, 3, 0x0B, 1, 0, 0, 0x05, 0xA0, 0, 180])
+
+
+def test_header_round_trips():
+    header = Header(Flags.VERSION_1, 9, offset=3, length=6)
+    assert Header.unpack(header.pack()) == header
+
+
+def test_small_frame_is_one_pushed_packet():
+    frame = bytes(range(9))
+    [packet] = packets(frame, 1)
+    assert Header.unpack(packet) == Header(PUSHED, 1, offset=0, length=9)
+    assert packet[Header.SIZE :] == frame
+
+
+def test_large_frame_splits_on_pixel_boundaries_and_pushes_last():
+    frame = bytes(i % 256 for i in range(1500))
+    first, second = packets(frame, 7)
+    assert Header.unpack(first) == Header(Flags.VERSION_1, 7, offset=0, length=MAX_DATA)
+    assert Header.unpack(second) == Header(PUSHED, 7, offset=MAX_DATA, length=1500 - MAX_DATA)
+    assert first[Header.SIZE :] + second[Header.SIZE :] == frame
+
+
+def test_exact_multiple_of_max_data_has_no_empty_packet():
+    assert len(packets(bytes(MAX_DATA * 2), 1)) == 2
+
+
+@pytest.mark.parametrize("length", [0, 4])
+def test_rejects_frames_that_are_not_whole_pixels(length):
+    with pytest.raises(ValueError, match="multiple of 3"):
+        packets(bytes(length), 1)
+
+
+@pytest.mark.parametrize("sequence", [0, 16])
+def test_rejects_sequence_outside_four_bits(sequence):
+    with pytest.raises(ValueError, match="sequence"):
+        packets(bytes(3), sequence)
+
+
+def test_sender_delivers_packets_and_cycles_sequence_from_one_to_fifteen():
+    with socket.socket(socket.AF_INET, socket.SOCK_DGRAM) as receiver:
+        receiver.bind(("127.0.0.1", 0))
+        receiver.settimeout(1)
+        port = receiver.getsockname()[1]
+        with DdpSender("127.0.0.1", port) as sender:
+            for _ in range(16):
+                sender.send(bytes(3))
+            sequences = [Header.unpack(receiver.recv(2048)).sequence for _ in range(16)]
+    assert sequences == [*range(1, 16), 1]
diff --git a/firmament/tests/test_pattern.py b/firmament/tests/test_pattern.py
new file mode 100644
index 0000000..731fc7f
--- /dev/null
+++ b/firmament/tests/test_pattern.py
@@ -0,0 +1,53 @@
+import pytest
+
+from firmament.codes import code
+from firmament.pattern import ALL_OFF, ALL_ON, SLOT_COUNT, index_frame, slot_frame, strand_frame
+
+
+def _lit(frame: bytes) -> list[int]:
+    pixels = [frame[i : i + 3] for i in range(0, len(frame), 3)]
+    return [i for i, pixel in enumerate(pixels) if any(pixel)]
+
+
+def test_all_on_lights_every_led_white_at_level():
+    assert slot_frame(ALL_ON, 4, 32) == bytes([32] * 12)
+
+
+def test_all_off_is_black():
+    assert slot_frame(ALL_OFF, 4, 32) == bytes(12)
+
+
+def test_data_slots_follow_each_leds_code():
+    led_count = 300
+    for slot in range(2, SLOT_COUNT):
+        expected = [i for i in range(led_count) if code(i) >> (slot - 2) & 1]
+        assert _lit(slot_frame(slot, led_count, 32)) == expected
+
+
+def test_index_frame_lights_one_led():
+    assert _lit(index_frame(250, 300, 32)) == [250]
+
+
+def test_strand_frame_lights_one_strand():
+    assert _lit(strand_frame(2, 50, 300, 32)) == list(range(100, 150))
+
+
+def test_last_strand_can_be_partial():
+    assert _lit(strand_frame(2, 50, 120, 32)) == list(range(100, 120))
+
+
+@pytest.mark.parametrize(
+    ("make", "match"),
+    [
+        (lambda: slot_frame(SLOT_COUNT, 10, 32), "slot"),
+        (lambda: slot_frame(ALL_ON, 1, 32), "LED count"),
+        (lambda: slot_frame(ALL_ON, 501, 32), "LED count"),
+        (lambda: slot_frame(ALL_ON, 10, 256), "level"),
+        (lambda: index_frame(10, 10, 32), "LED index"),
+        (lambda: strand_frame(2, 50, 100, 32), "strand"),
+        (lambda: strand_frame(0, 0, 100, 32), "strand length"),
+    ],
+)
+def test_rejects_out_of_range_arguments(make, match):
+    with pytest.raises(ValueError, match=match):
+        make()
diff --git a/firmament/uv.lock b/firmament/uv.lock
index 7573ced..20d3c44 100644
--- a/firmament/uv.lock
+++ b/firmament/uv.lock
@@ -2,7 +2,134 @@ version = 1
 revision = 5
 requires-python = ">=3.13"
 
+[[package]]
+name = "colorama"
+version = "0.4.6"
+source = { registry = "https://pypi.org/simple" }
+sdist = { url = "https://files.pythonhosted.org/packages/d8/53/6f443c9a4a8358a93a6792e2acffb9d9d5cb0a5cfd8802644b7b1c9a02e4/colorama-0.4.6.tar.gz", hash = "sha256:08695f5cb7ed6e0531a20572697297273c47b8cae5a63ffc6d6ed5c201be6e44", size = 27697, upload-time = "2022-10-25T02:36:22.414Z" }
+wheels = [
+    { url = "https://files.pythonhosted.org/packages/d1/d6/3965ed04c63042e047cb6a3e6ed1a63a35087b6a609aa3a15ed8ac56c221/colorama-0.4.6-py2.py3-none-any.whl", hash = "sha256:4f1d9991f5acc0ca119f9d443620b77f9d6b33703e51011c16baf57afb285fc6", size = 25335, upload-time = "2022-10-25T02:36:20.889Z" },
+]
+
 [[package]]
 name = "firmament"
 version = "0.1.0"
-source = { virtual = "." }
+source = { editable = "." }
+
+[package.dev-dependencies]
+dev = [
+    { name = "pytest" },
+    { name = "ruff" },
+    { name = "ty" },
+]
+
+[package.metadata]
+
+[package.metadata.requires-dev]
+dev = [
+    { name = "pytest", specifier = ">=8" },
+    { name = "ruff", specifier = ">=0.17.6" },
+    { name = "ty", specifier = ">=0.0.107" },
+]
+
+[[package]]
+name = "iniconfig"
+version = "2.3.1"
+source = { registry = "https://pypi.org/simple" }
+sdist = { url = "https://files.pythonhosted.org/packages/01/e1/2069291243c926a2ff1cd706c7f3eeb9b62144bf60f77c9fb9ff2fb26bd3/iniconfig-2.3.1.tar.gz", hash = "sha256:67f4b9c50da0dedf52af349e7749a80a9057a5031199791b906c3bb3ae878960", size = 21209, upload-time = "2026-10-06T22:48:38.076Z" }
+wheels = [
+    { url = "https://files.pythonhosted.org/packages/56/43/4ca9e49d27a1fcf6bece6f6aec0ea46bb9112489b93d4b688fb415457bdb/iniconfig-2.3.1-py3-none-any.whl", hash = "sha256:9121e2c1fdb355232495be3194c8dfe87ccc2d5dee45947b78e68f499790d7a7", size = 7552, upload-time = "2026-10-06T22:48:36.959Z" },
+]
+
+[[package]]
+name = "packaging"
+version = "26.3"
+source = { registry = "https://pypi.org/simple" }
+sdist = { url = "https://files.pythonhosted.org/packages/7d/fa/3944b40b07da9ce895c0e6303a5ab7d53da063554f534556b134a54d6093/packaging-26.3.tar.gz", hash = "sha256:94edc256424af38762eb31306eed28beb9f0efc50a8837492c9d6fd6004aed79", size = 313412, upload-time = "2026-08-04T18:15:28.737Z" }
+wheels = [
+    { url = "https://files.pythonhosted.org/packages/63/34/ba1c580383c9eada3711951fef0795c80b829a078d72188184bcab9dd527/packaging-26.3-py3-none-any.whl", hash = "sha256:d7193f7c8e4e93f444fde0262bf90af30e16fa0ad0ad44cb553c87339b23cd1c", size = 129956, upload-time = "2026-08-04T18:15:27.159Z" },
+]
+
+[[package]]
+name = "pluggy"
+version = "1.7.0"
+source = { registry = "https://pypi.org/simple" }
+sdist = { url = "https://files.pythonhosted.org/packages/bf/db/7fc19e6f2dc92a966727031389fc2e08b558f0f25eb7403c1119ad4713cd/pluggy-1.7.0.tar.gz", hash = "sha256:d1eaa46ebb595891b860ab086b4d09c8588af65ebd4361b8e8f4bb8920b90ba8", size = 123304, upload-time = "2026-10-15T09:50:58.343Z" }
+wheels = [
+    { url = "https://files.pythonhosted.org/packages/40/9e/2b38731e0fc536806f16490e1a12d7f0dc2a1235aa8cc07bcc75416a7daa/pluggy-1.7.0-py3-none-any.whl", hash = "sha256:7dd7b0d8832ba3cb632c306926ded123429211b83641b35dc5c41ad2d34f9bec", size = 27082, upload-time = "2026-10-15T09:50:56.808Z" },
+]
+
+[[package]]
+name = "pygments"
+version = "2.21.0"
+source = { registry = "https://pypi.org/simple" }
+sdist = { url = "https://files.pythonhosted.org/packages/49/2e/ced460408999b33da6b31b0021b0f37d329e202d4169aeb164493778f25b/pygments-2.21.0.tar.gz", hash = "sha256:610ca751c9bc2492b38eb9a38a7fbc93edbbb2d7182edaf34e66ae493dee5c8c", size = 5005329, upload-time = "2026-08-17T08:02:48.824Z" }
+wheels = [
+    { url = "https://files.pythonhosted.org/packages/71/46/17f022dd3e953bf20a04a028a21ec746d942f8d2af30fa0f124fa0e6a684/pygments-2.21.0-py3-none-any.whl", hash = "sha256:2363c69b61c4a97c838da3b130dcd6468f4848992b21a82f2a63ec34377137d9", size = 1250147, upload-time = "2026-08-17T08:02:44.912Z" },
+]
+
+[[package]]
+name = "pytest"
+version = "9.2.0"
+source = { registry = "https://pypi.org/simple" }
+dependencies = [
+    { name = "colorama", marker = "sys_platform == 'win32'" },
+    { name = "iniconfig" },
+    { name = "packaging" },
+    { name = "pluggy" },
+    { name = "pygments" },
+]
+sdist = { url = "https://files.pythonhosted.org/packages/79/42/bb4641652e58dedeac2ec51abc1f8cae4fee4ec63899a0999016229a0f2a/pytest-9.2.0.tar.gz", hash = "sha256:97c4f3b1f3c7414aa36465e09b8220f1d03627993bd51b1282e193753c80557b", size = 1797555, upload-time = "2026-10-27T21:30:20.728Z" }
+wheels = [
+    { url = "https://files.pythonhosted.org/packages/51/39/1f5d8c8877a0fa327db959c19341d4be61660de1ab6b7391f9eb805bcd67/pytest-9.2.0-py3-none-any.whl", hash = "sha256:07acdcf88ec174f907dc01af70bf52d49b014bbab03faeeade31c96b18c2e588", size = 411776, upload-time = "2026-10-27T21:30:19.131Z" },
+]
+
+[[package]]
+name = "ruff"
+version = "0.17.6"
+source = { registry = "https://pypi.org/simple" }
+sdist = { url = "https://files.pythonhosted.org/packages/df/8e/6929d337aa5380aafc7355f3149f3ccfe55cba5fdd34a045697ebaceb5a0/ruff-0.17.6.tar.gz", hash = "sha256:2b04276561331300325040bdca21460770029ec574d4c479099e39e8ad1ed43c", size = 5374388, upload-time = "2026-11-19T15:56:27.106Z" }
+wheels = [
+    { url = "https://files.pythonhosted.org/packages/12/5d/38ef6310c22cacb094e9ae0ff7964062e04ffeecb45ee296894c2b1acc54/ruff-0.17.6-py3-none-linux_armv6l.whl", hash = "sha256:084d9c8f5ec718e7eba007dba339e7cb4f7571d2f267558ae080bf428fb6a69b", size = 10174693, upload-time = "2026-11-19T15:55:52.414Z" },
+    { url = "https://files.pythonhosted.org/packages/a2/ed/fd35261049920a4888ef7c787a5c27089502077a4910f6ca8f1213157d6d/ruff-0.17.6-py3-none-macosx_10_12_x86_64.whl", hash = "sha256:9d44ef2140402043fd6f689ef541858b80883a8b0a02e38539ef0614ebe57d0c", size = 10221650, upload-time = "2026-11-19T15:55:54.962Z" },
+    { url = "https://files.pythonhosted.org/packages/ba/d4/c31391b36c729cd9fafa65b7a52a58850b99afb2b65da6be4263a53302f2/ruff-0.17.6-py3-none-macosx_11_0_arm64.whl", hash = "sha256:9fbddc08577592e283c265d865e0182de6e33db185494db7b06290d989d888e5", size = 9580986, upload-time = "2026-11-19T15:55:57.391Z" },
+    { url = "https://files.pythonhosted.org/packages/eb/11/f3032684dcb3a676d7924545153d76fb56f76753e038f2ea650b99c71bdf/ruff-0.17.6-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:435241c61af5909a022f76219d3d1bf24730dc1bf0acabb5ddf4b569ab3cbb30", size = 10271368, upload-time = "2026-11-19T15:55:59.654Z" },
+    { url = "https://files.pythonhosted.org/packages/08/30/c1e024eeb5bae99ae78c6b896ed108f64c9c845a03b56eaeff098e99b6e6/ruff-0.17.6-py3-none-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:d006bbb2945edb17b0ce6a0c1b5f5a8d81ba11dbac294a0a925effa22ce34feb", size = 9981564, upload-time = "2026-11-19T15:56:01.807Z" },
+    { url = "https://files.pythonhosted.org/packages/7d/a5/da3e0c2d4bf02b3ca6c1d7fa4bb04d0081e340b1dd03c4f83b1bec3e15c1/ruff-0.17.6-py3-none-manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:fd661702202a89c00a4c9d0339008805fa5876bfa1c57e165495c2e62230dfbf", size = 10641991, upload-time = "2026-11-19T15:56:03.981Z" },
+    { url = "https://files.pythonhosted.org/packages/4d/c1/6d7f981e86201c9db457cca99fd2c09b77574ebab37dff3e9239b218603c/ruff-0.17.6-py3-none-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:6a12c50a33936dc00db2be21ba25fb168a8b95c55eda2a3ac85005af69885e4b", size = 11403484, upload-time = "2026-11-19T15:56:05.778Z" },
+    { url = "https://files.pythonhosted.org/packages/c3/92/8182f07b94998541d5f8f38f53da465aa28062afce24ecc398f45bfc62f1/ruff-0.17.6-py3-none-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:b5aba93b3db4b70c5697e4fee6e0d5b9c8452a9a3a03679611cadc25915a2173", size = 10892316, upload-time = "2026-11-19T15:56:08.016Z" },
+    { url = "https://files.pythonhosted.org/packages/be/48/3df7d81249fd69ee6a49519b149fb5d11e13118fd7d0e8d65329a237087b/ruff-0.17.6-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:aa3b08254a732acba246891089a152c47c5733dc36b8ecb76ce8602f8326e5e4", size = 10645279, upload-time = "2026-11-19T15:56:09.785Z" },
+    { url = "https://files.pythonhosted.org/packages/71/80/4d232281544345d7beb98d1d32c24dae804ed360780a6f7753738b81225e/ruff-0.17.6-py3-none-manylinux_2_31_riscv64.whl", hash = "sha256:0692088e6b33455572fb18465e891b443f196e98dc1986825685c77ff6f4c5ac", size = 10534501, upload-time = "2026-11-19T15:56:11.718Z" },
+    { url = "https://files.pythonhosted.org/packages/98/0a/b477f075a4a94eb541bf1c759a3e72b2a3d6390af7a13a5be0887229f67c/ruff-0.17.6-py3-none-musllinux_1_2_aarch64.whl", hash = "sha256:fb589e032806bb942e4fb526f30b80a1a64112147ed9f1d38cc3de2e255b6f45", size = 10136036, upload-time = "2026-11-19T15:56:13.779Z" },
+    { url = "https://files.pythonhosted.org/packages/f1/d8/cf32fbfeb1fcda1470fb5c3bee50c69ee6bca257d487ec1eb17a0387edb4/ruff-0.17.6-py3-none-musllinux_1_2_armv7l.whl", hash = "sha256:1939b3d701c7b6981b7cf93473de5bf88b129b9ba84efaed5154cc517c44634d", size = 9969640, upload-time = "2026-11-19T15:56:15.738Z" },
+    { url = "https://files.pythonhosted.org/packages/a7/22/bb9f9752f7fcdfdc8b9c51576cc142bb377ade745290e35085173963c7be/ruff-0.17.6-py3-none-musllinux_1_2_i686.whl", hash = "sha256:1a0bea6aa1216e0ec4cd35d3dbccec0d772a7c2aad28ec9c6e82571dff2c20b0", size = 10389427, upload-time = "2026-11-19T15:56:17.617Z" },
+    { url = "https://files.pythonhosted.org/packages/81/c7/e09d220818ab146b736d62e0676dad215215d7de0884bbdad9fa075dc7d2/ruff-0.17.6-py3-none-musllinux_1_2_x86_64.whl", hash = "sha256:3db61f5015600543a581b07fa7f6f64afa0eeedefe16034cadd88c4074087582", size = 10760296, upload-time = "2026-11-19T15:56:19.463Z" },
+    { url = "https://files.pythonhosted.org/packages/2e/09/28329441dfa2c463e2d377a69d4ebbe4d51665e9dbd49fb421f3bc80d775/ruff-0.17.6-py3-none-win32.whl", hash = "sha256:c2f4af6670b7a0501904e881bb3f1f24bd0d964dec1eedbd85f0eb73786e1128", size = 9966266, upload-time = "2026-11-19T15:56:21.581Z" },
+    { url = "https://files.pythonhosted.org/packages/4b/9d/18ba9730addfc7554c70d6f171fb8dc2c08e774d9fb2b98e7946ef845c59/ruff-0.17.6-py3-none-win_amd64.whl", hash = "sha256:9cd2fd9923e9806b8b6b67a3469e2258e84bd4d21e45d5a1a690afdfb9c8e57d", size = 10365847, upload-time = "2026-11-19T15:56:23.582Z" },
+    { url = "https://files.pythonhosted.org/packages/70/8a/59c33e2a64a4f9672f7f842a0dc522915cfbbaffd13d37d0cec57d1c5c5d/ruff-0.17.6-py3-none-win_arm64.whl", hash = "sha256:d8b14e1473dc86ab9069cf7a2ba5041dc012f59110201844ed04cfddf07055a0", size = 9926224, upload-time = "2026-11-19T15:56:25.269Z" },
+]
+
+[[package]]
+name = "ty"
+version = "0.0.107"
+source = { registry = "https://pypi.org/simple" }
+sdist = { url = "https://files.pythonhosted.org/packages/e1/21/096166a4d1118a6ce923223d53d14dc6262046604b6f1e667882db8d80b3/ty-0.0.107.tar.gz", hash = "sha256:e792277547cd55f5e75208665da705825f0af627397aa7abb169d5ad994277ca", size = 8342007, upload-time = "2026-11-18T21:08:00.423Z" }
+wheels = [
+    { url = "https://files.pythonhosted.org/packages/ea/b3/ed4d2f9899657b3fef03df61f5937570ff68c5fe43b1110b70350487e986/ty-0.0.107-py3-none-linux_armv6l.whl", hash = "sha256:dcf2567fe5ed95f21bf3e3fcc5de68a4b570a8b0e6029b3a57b8098e784b90d1", size = 15002472, upload-time = "2026-11-18T21:07:11.018Z" },
+    { url = "https://files.pythonhosted.org/packages/cb/ae/164d1aeaf968a4d4104bf48c978a8bef8de1e258574b33fdb2d9fa9f5c21/ty-0.0.107-py3-none-macosx_10_12_x86_64.whl", hash = "sha256:39dfc6a2ce0b1df3e53a518e92cd331f30c11355e44f55df9096581437be1e24", size = 14576636, upload-time = "2026-11-18T21:07:14.615Z" },
+    { url = "https://files.pythonhosted.org/packages/a7/a4/c7b60685da0db9d7699459afe75fd17b1143e6fc14f6484fc55c2e705c1a/ty-0.0.107-py3-none-macosx_11_0_arm64.whl", hash = "sha256:6f4169889ecb5ee42e15227c6b6f978c6638548c9929cb19f76022afef903361", size = 13973376, upload-time = "2026-11-18T21:07:17.377Z" },
+    { url = "https://files.pythonhosted.org/packages/00/12/bf50a964941e6e03e3d526576a3f3c942029e06666f8db4a4541940ff743/ty-0.0.107-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:9733e57559906229a897ed2834b7175013455c6b800aa3c029b15876fa11a75e", size = 14914214, upload-time = "2026-11-18T21:07:20.148Z" },
+    { url = "https://files.pythonhosted.org/packages/a8/7f/1b283835c397fcb58d86a6355f8b138978e9c1121fe7514e4247dc9f7038/ty-0.0.107-py3-none-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:8ffa6cad4f057f45a7f68605622b16ed18fcb5a817ea1a1130ad689d0ec69c82", size = 14727467, upload-time = "2026-11-18T21:07:23.377Z" },
+    { url = "https://files.pythonhosted.org/packages/7b/91/6a59b43159a9810f42d185e4d04fb52e5c8f48e786a75facd56f5990fa3a/ty-0.0.107-py3-none-manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:6693dfa209355f0257a904f65eb6a37e50633af5bad9d304291956d84084c15e", size = 15718081, upload-time = "2026-11-18T21:07:26.053Z" },
+    { url = "https://files.pythonhosted.org/packages/e0/62/c2d5a02dcaa19e674c79e527f1706f6691278c7ca85504a83240a602734a/ty-0.0.107-py3-none-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:f915ce2277bcb914c36134d8142ff7c209e0fe43647055a28df5001bdf1b173b", size = 16153080, upload-time = "2026-11-18T21:07:28.941Z" },
+    { url = "https://files.pythonhosted.org/packages/88/f2/94af1c34c93ae9226e4c58f3c0a6ccb848f962f2838bf36d300f5a70f4a1/ty-0.0.107-py3-none-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:4d9f968afebb4e25239383029600073bbcdd2e82a1a7d3ff438d1ae8efd662c1", size = 16018858, upload-time = "2026-11-18T21:07:31.757Z" },
+    { url = "https://files.pythonhosted.org/packages/21/17/16cb65301cd21f50634480b4fff3d4c25e61c4cd73f7e9c850681dddc08f/ty-0.0.107-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:1fe5917b9ed2b4e500610cafb90f4a84ba936cf83eb3e2b8a9e44449b59b77cb", size = 17434891, upload-time = "2026-11-18T21:07:34.618Z" },
+    { url = "https://files.pythonhosted.org/packages/14/54/dba49f1255a2fe2b49fed88e56ae385a977f3ab5b9c0579e92fb1380b235/ty-0.0.107-py3-none-manylinux_2_31_riscv64.whl", hash = "sha256:714447884645175ce96f566063fd31539960832423f748af5a4c3b5c817f0604", size = 15540910, upload-time = "2026-11-18T21:07:37.448Z" },
+    { url = "https://files.pythonhosted.org/packages/c2/90/f87b2c5fa3323fd1d4ab30a7a78f4b363ca8337087dea9532be53fd02c5d/ty-0.0.107-py3-none-musllinux_1_2_aarch64.whl", hash = "sha256:bc37c53103d447c8a4d2eba6f746f9ded12c8aea66bd8c03d7039a976069aad4", size = 14401178, upload-time = "2026-11-18T21:07:40.233Z" },
+    { url = "https://files.pythonhosted.org/packages/7a/33/b6cad6f43aeaca2988839827f40d6f0a62b062f352be472a2131f35ff0fc/ty-0.0.107-py3-none-musllinux_1_2_armv7l.whl", hash = "sha256:fe0aedb5047ac9e5fc2812e4ba36778efd2e5187c9056acf65bd67e85fa83418", size = 14742847, upload-time = "2026-11-18T21:07:43.269Z" },
+    { url = "https://files.pythonhosted.org/packages/e0/4e/f467a0b8e151bf2162d9180e824c2dee30092c1284ed123fd787c1572fc9/ty-0.0.107-py3-none-musllinux_1_2_i686.whl", hash = "sha256:2eafaffdeb80484831e2c16e3cec3e1e45176c88cb08a82395138cc6a7695aa9", size = 15103370, upload-time = "2026-11-18T21:07:45.918Z" },
+    { url = "https://files.pythonhosted.org/packages/59/76/e0df8db6f22ba0380b0775d7668e3e93cb12b7ab33326a1199f8e88d1d0b/ty-0.0.107-py3-none-musllinux_1_2_x86_64.whl", hash = "sha256:2e8fc59467d57762b4b171b597092ba7ebb91071b6dffda8ca3be393cebd437a", size = 15438466, upload-time = "2026-11-18T21:07:48.842Z" },
+    { url = "https://files.pythonhosted.org/packages/cd/fe/fc14a66f6a7464a6b7ebd2440f7becd2146aa865f7516b22d44df29c1f3a/ty-0.0.107-py3-none-win32.whl", hash = "sha256:40b4c00666db9bcfe112b320522192ae598c0982f3c7270ce62eb313ffabb373", size = 13966366, upload-time = "2026-11-18T21:07:51.826Z" },
+    { url = "https://files.pythonhosted.org/packages/a0/ad/1c992fb038f33a34f32f1ebc57ac4023ab60b4530e2bbf3fdd5e6d97753e/ty-0.0.107-py3-none-win_amd64.whl", hash = "sha256:e9b5e292a0b39105e1068ff176f355eb645b45d9f6aa91765ca739069ed13c12", size = 14895905, upload-time = "2026-11-18T21:07:54.814Z" },
+    { url = "https://files.pythonhosted.org/packages/4e/93/83c2fa56dd6ab9f9d1253621ae79a5bbc2f3fc2bb3e562f2e8cd1ad5df5c/ty-0.0.107-py3-none-win_arm64.whl", hash = "sha256:c5f4eb4ea3c84ab755dafb7d09abee8d6fbd582db5371d858443f0c85e72dcd3", size = 14031494, upload-time = "2026-11-18T21:07:57.714Z" },
+]