On this page
Generated strictspec validator for the part-manifest document: parts, variants, frame specs, strip sets, grids, and the pairings that bind them together.
#server.src.pixelweaver._gen.part_manifest
#server.src.pixelweaver._gen.part_manifest
#validate_bytes
def validate_bytes(input: bytes, syntax: str) -> tuple[PartManifest | None, tuple[Diagnostic, ...]]RAW-BYTES entry point: lossless parse of input in the given syntax ("json" | "toml" | "jsonl"), then validate. Returns the typed root value (None when any diagnostic fired) and the ordered diagnostics.
#validate_bytes_with_evidence
def validate_bytes_with_evidence(input: bytes, syntax: str, evidence: dict | None) -> tuple[PartManifest | None, tuple[Diagnostic, ...]]validate_bytes plus cross-document resolver evidence for the phase-2 constraint vocabulary.
#validate_value
def validate_value(v: Value) -> tuple[PartManifest | None, tuple[Diagnostic, ...]]TAGGED-VALUE entry point: validate an already-parsed tagged document value (from strictspec.load_value or a typed constructor). Raw untagged dicts are never accepted.
#PartManifest
Frozen typed binding of the "PartManifest" record. Immutable; use with_* for copy-on-write.
#with_format
def with_format(self, v: str) -> PartManifest#with_version
def with_version(self, v: str) -> PartManifest#with_frame
def with_frame(self, v: FrameSpec) -> PartManifest#with_alphaPolicy
def with_alphaPolicy(self, v: str) -> PartManifest#with_palette
def with_palette(self, v: list[str]) -> PartManifest#with_classes
def with_classes(self, v: list[PaletteClass]) -> PartManifest#with_parts
def with_parts(self, v: list[Part]) -> PartManifest#with_pairings
def with_pairings(self, v: list[Pairing]) -> PartManifest#FrameSpec
Frozen typed binding of the "FrameSpec" record. Immutable; use with_* for copy-on-write.
#with_width
def with_width(self, v: int) -> FrameSpec#with_height
def with_height(self, v: int) -> FrameSpec#with_anchorX
def with_anchorX(self, v: int) -> FrameSpec#with_anchorY
def with_anchorY(self, v: int) -> FrameSpec#PaletteClass
Frozen typed binding of the "PaletteClass" record. Immutable; use with_* for copy-on-write.
#with_id
def with_id(self, v: str) -> PaletteClass#with_name
def with_name(self, v: str) -> PaletteClass#with_start
def with_start(self, v: int) -> PaletteClass#with_len
def with_len(self, v: int) -> PaletteClass#with_reserved
def with_reserved(self, v: bool) -> PaletteClass#Variant
Frozen typed binding of the "Variant" record. Immutable; use with_* for copy-on-write.
#with_index
def with_index(self, v: int) -> Variant#with_canvas
def with_canvas(self, v: str) -> Variant#with_frameCount
def with_frameCount(self, v: int) -> Variant#with_frameDurationsMs
def with_frameDurationsMs(self, v: list[int]) -> Variant#StripSet
Frozen typed binding of the "StripSet" record. Immutable; use with_* for copy-on-write.
#with_indexed
def with_indexed(self, v: str | None) -> StripSet#with_rgba
def with_rgba(self, v: str) -> StripSet#PartGrid
Frozen typed binding of the "PartGrid" record. Immutable; use with_* for copy-on-write.
#with_frameWidth
def with_frameWidth(self, v: int) -> PartGrid#with_frameHeight
def with_frameHeight(self, v: int) -> PartGrid#with_columns
def with_columns(self, v: int) -> PartGrid#with_rows
def with_rows(self, v: int) -> PartGrid#with_padding
def with_padding(self, v: int) -> PartGrid#Part
Frozen typed binding of the "Part" record. Immutable; use with_* for copy-on-write.
#with_name
def with_name(self, v: str) -> Part#with_partSet
def with_partSet(self, v: str) -> Part#with_zOrder
def with_zOrder(self, v: int) -> Part#with_paletteClassId
def with_paletteClassId(self, v: str | None) -> Part#with_variants
def with_variants(self, v: list[Variant]) -> Part#with_strips
def with_strips(self, v: StripSet) -> Part#with_grid
def with_grid(self, v: PartGrid) -> Part#Pairing
Frozen typed binding of the "Pairing" record. Immutable; use with_* for copy-on-write.
#with_partA
def with_partA(self, v: str) -> Pairing#with_partB
def with_partB(self, v: str) -> Pairing