Files
tt-support-tools/shuttle_index.py
T
Uri Shaked e3fac0ab40 feat: "layout" section in shuttle_index
contains information about the type each each mux (analog / digital)
2024-03-21 23:36:50 +02:00

29 lines
578 B
Python

from typing import List, Literal, 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 ShuttleIndexLayout(TypedDict):
muxes: List[List[Literal["analog", "digital"]]]
class ShuttleIndex(TypedDict):
"""TypedDict for Tiny Tapeout's shuttle_index.json file."""
name: str
repo: str
commit: str
commit_date: int
version: int
layout: ShuttleIndexLayout
projects: List[ShuttleIndexProject]