render module¶
- class render.Renderer(*, id: UUID | int | str = None, frames: list[Frame] = [], prefix: str, name: str = 'Trajectory')[source]¶
Bases:
BaseModel
- build(build_dir: str | PathLike, indent: int = 4, r2_bucket: str | None = None, extra_files: list[str | PathLike] | None = None) None [source]¶
- id: UUID | int | str¶
- model_computed_fields: ClassVar[Dict[str, ComputedFieldInfo]] = {}¶
A dictionary of computed field names and their corresponding ComputedFieldInfo objects.
- model_config: ClassVar[ConfigDict] = {}¶
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- model_fields: ClassVar[Dict[str, FieldInfo]] = {'frames': FieldInfo(annotation=list[Frame], required=False, default=[]), 'id': FieldInfo(annotation=Union[UUID, int, str], required=False, default_factory=<lambda>), 'name': FieldInfo(annotation=str, required=False, default='Trajectory', description='Name of the renderer, used in the manifest file.'), 'prefix': FieldInfo(annotation=str, required=True)}¶
Metadata about the fields defined on the model, mapping of field names to [FieldInfo][pydantic.fields.FieldInfo] objects.
This replaces Model.__fields__ from Pydantic V1.
- name: str¶
- prefix: str¶