PixelWeaver v0.5.0 /server.src.pixelweaver._gen.part_manifest
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

python
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

python
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

python
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

python
def with_format(self, v: str) -> PartManifest

#with_version

python
def with_version(self, v: str) -> PartManifest

#with_frame

python
def with_frame(self, v: FrameSpec) -> PartManifest

#with_alphaPolicy

python
def with_alphaPolicy(self, v: str) -> PartManifest

#with_palette

python
def with_palette(self, v: list[str]) -> PartManifest

#with_classes

python
def with_classes(self, v: list[PaletteClass]) -> PartManifest

#with_parts

python
def with_parts(self, v: list[Part]) -> PartManifest

#with_pairings

python
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

python
def with_width(self, v: int) -> FrameSpec

#with_height

python
def with_height(self, v: int) -> FrameSpec

#with_anchorX

python
def with_anchorX(self, v: int) -> FrameSpec

#with_anchorY

python
def with_anchorY(self, v: int) -> FrameSpec

#PaletteClass

Frozen typed binding of the "PaletteClass" record. Immutable; use with_* for copy-on-write.

#with_id

python
def with_id(self, v: str) -> PaletteClass

#with_name

python
def with_name(self, v: str) -> PaletteClass

#with_start

python
def with_start(self, v: int) -> PaletteClass

#with_len

python
def with_len(self, v: int) -> PaletteClass

#with_reserved

python
def with_reserved(self, v: bool) -> PaletteClass

#Variant

Frozen typed binding of the "Variant" record. Immutable; use with_* for copy-on-write.

#with_index

python
def with_index(self, v: int) -> Variant

#with_canvas

python
def with_canvas(self, v: str) -> Variant

#with_frameCount

python
def with_frameCount(self, v: int) -> Variant

#with_frameDurationsMs

python
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

python
def with_indexed(self, v: str | None) -> StripSet

#with_rgba

python
def with_rgba(self, v: str) -> StripSet

#PartGrid

Frozen typed binding of the "PartGrid" record. Immutable; use with_* for copy-on-write.

#with_frameWidth

python
def with_frameWidth(self, v: int) -> PartGrid

#with_frameHeight

python
def with_frameHeight(self, v: int) -> PartGrid

#with_columns

python
def with_columns(self, v: int) -> PartGrid

#with_rows

python
def with_rows(self, v: int) -> PartGrid

#with_padding

python
def with_padding(self, v: int) -> PartGrid

#Part

Frozen typed binding of the "Part" record. Immutable; use with_* for copy-on-write.

#with_name

python
def with_name(self, v: str) -> Part

#with_partSet

python
def with_partSet(self, v: str) -> Part

#with_zOrder

python
def with_zOrder(self, v: int) -> Part

#with_paletteClassId

python
def with_paletteClassId(self, v: str | None) -> Part

#with_variants

python
def with_variants(self, v: list[Variant]) -> Part

#with_strips

python
def with_strips(self, v: StripSet) -> Part

#with_grid

python
def with_grid(self, v: PartGrid) -> Part

#Pairing

Frozen typed binding of the "Pairing" record. Immutable; use with_* for copy-on-write.

#with_partA

python
def with_partA(self, v: str) -> Pairing

#with_partB

python
def with_partB(self, v: str) -> Pairing
Search