arch.code: Source Code Parsing Models#

The code subpackage models architectonic source files as data. Imports, Block, Module, and File parse Python and TypeScript sources by string (rather than reflection) into structured, re-renderable pydantic models. Element and ElementData form the runtime side: a registry-backed base class and its persistent SQLModel state, from which all architectonic classes descend.