kittycad.models.image_format

Classes

ImageFormat(value)

Enum containing the variety of image formats snapshots may be exported to.

class kittycad.models.image_format.ImageFormat(value)[source][source]

Enum containing the variety of image formats snapshots may be exported to.

JPEG = 'jpeg'[source]
PNG = 'png'[source]

# .jpeg format

__dict__ = mappingproxy({'_generate_next_value_': <function Enum._generate_next_value_>, '__module__': 'kittycad.models.image_format', '__doc__': 'Enum containing the variety of image formats snapshots may be exported to.', '__str__': <function ImageFormat.__str__>, '__dict__': <attribute '__dict__' of 'ImageFormat' objects>, '__weakref__': <attribute '__weakref__' of 'ImageFormat' objects>, '_member_names_': ['PNG', 'JPEG'], '_member_map_': {'PNG': <ImageFormat.PNG: 'png'>, 'JPEG': <ImageFormat.JPEG: 'jpeg'>}, '_member_type_': <class 'str'>, '_value2member_map_': {'png': <ImageFormat.PNG: 'png'>, 'jpeg': <ImageFormat.JPEG: 'jpeg'>}, 'PNG': <ImageFormat.PNG: 'png'>, 'JPEG': <ImageFormat.JPEG: 'jpeg'>, '__repr__': <function Enum.__repr__>, '__format__': <function Enum.__format__>, '__new__': <function Enum.__new__>, '__annotations__': {}})[source]
__module__ = 'kittycad.models.image_format'[source]
_generate_next_value_(start, count, last_values)[source]

Generate the next value when not given.

name: the name of the member start: the initial start value or None count: the number of existing members last_value: the last value assigned or None

_member_map_ = {'JPEG': ImageFormat.JPEG, 'PNG': ImageFormat.PNG}[source]
_member_names_ = ['PNG', 'JPEG'][source]
_member_type_[source]

alias of str

_value2member_map_ = {'jpeg': ImageFormat.JPEG, 'png': ImageFormat.PNG}[source]