Files
kittycad.py/kittycad/models/gltf_storage.py
Jess Frazelle 8162fa1964 Update api spec (#127)
* YOYO NEW API SPEC!

* bump version

Signed-off-by: Jess Frazelle <github@jessfraz.com>

* updates

Signed-off-by: Jess Frazelle <github@jessfraz.com>

* some fixes

Signed-off-by: Jess Frazelle <github@jessfraz.com>

* fixes #128

Signed-off-by: Jess Frazelle <github@jessfraz.com>

* mypy fixes

Signed-off-by: Jess Frazelle <github@jessfraz.com>

* fixes

Signed-off-by: Jess Frazelle <github@jessfraz.com>

* fixes

Signed-off-by: Jess Frazelle <github@jessfraz.com>

---------

Signed-off-by: Jess Frazelle <github@jessfraz.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-08-30 15:59:51 -07:00

24 lines
660 B
Python

from enum import Enum
class GltfStorage(str, Enum):
"""Describes the storage format of a glTF 2.0 scene.""" # noqa: E501
"""# Binary glTF 2.0.
This is a single binary with .glb extension. """ # noqa: E501
BINARY = "binary"
"""# Standard glTF 2.0.
This is a JSON file with .gltf extension paired with a separate binary blob file with .bin extension. """ # noqa: E501
STANDARD = "standard"
"""# Embedded glTF 2.0.
Single JSON file with .gltf extension binary data encoded as base64 data URIs.
This is the default setting. """ # noqa: E501
EMBEDDED = "embedded"
def __str__(self) -> str:
return str(self.value)