Skip to content

fontlabapp.objects.json_data.Envelope · declarations 001

Back to fontlabapp.objects.json_data.Envelope

extra class-attribute instance-attribute

extra: tuple[tuple[str, Any], ...]

glyph_names

glyph_names() -> tuple[str, ...]

Return the names of the glyph items, in order.

items class-attribute instance-attribute

items: tuple[Item, ...]

kinds

kinds() -> tuple[str, ...]

Return the kind of each item, in order.

package_id instance-attribute

package_id: int | None

parse classmethod

parse(data: bytes | bytearray | str | Mapping[str, Any]) -> Envelope

Read and check object JSON; raise ValueError with a plain reason.

replace_items

replace_items(items: Iterable[Item]) -> Envelope

Return a copy with other items and the same header.

to_bytes

to_bytes(indent: int | None = None) -> bytes

Return UTF-8 JSON; indent pretty-prints it.

to_dict

to_dict() -> dict[str, Any]

Return the JSON object: singleton key for one item, objects for more.

upm instance-attribute

upm: int | None