Files
tt-support-tools/shuttle_index.py
T
Uri Shaked ef5539b7a0 feat: new format for shuttle_index
1. Bump "version" to 3
2. Rename "shuttle" to "name"
2. Rename "mux" to "projects", and turn it from a dict into a list
3. Project entries: add "address" (which was previously the key of the "mux" dict), remove "features" and add optional "analog_pins" with a list of analog pin assignment.
2024-03-18 01:16:22 +02:00

24 lines
447 B
Python

from typing import List, NotRequired, TypedDict
class ShuttleIndexProject(TypedDict):
macro: str
address: int
x: int
y: int
tiles: str
repo: str
commit: str
analog_pins: NotRequired[List[int]]
class ShuttleIndex(TypedDict):
"""TypedDict for Tiny Tapeout's shuttle_index.json file."""
name: str
repo: str
commit: str
commit_date: int
version: int
projects: List[ShuttleIndexProject]