kittycad.models.base64data
Classes
|
Initializes the object. |
- class kittycad.models.base64data.Base64Data(data)[source][source]
Initializes the object.
If the provided data is already in base64 encoded format, it will store it. If the data is a regular byte string, it will encode and then store it.
- __dict__ = mappingproxy({'__module__': 'kittycad.models.base64data', '__init__': <function Base64Data.__init__>, 'is_base64': <staticmethod object>, 'get_encoded': <function Base64Data.get_encoded>, 'get_decoded': <function Base64Data.get_decoded>, '__get_pydantic_core_schema__': <classmethod object>, '__dict__': <attribute '__dict__' of 'Base64Data' objects>, '__weakref__': <attribute '__weakref__' of 'Base64Data' objects>, '__doc__': None, '__annotations__': {}})[source]
- classmethod __get_pydantic_core_schema__(source_type, handler)[source][source]
- Return type:
Union[AnySchema,NoneSchema,BoolSchema,IntSchema,FloatSchema,DecimalSchema,StringSchema,BytesSchema,DateSchema,TimeSchema,DatetimeSchema,TimedeltaSchema,LiteralSchema,IsInstanceSchema,IsSubclassSchema,CallableSchema,ListSchema,TuplePositionalSchema,TupleVariableSchema,SetSchema,FrozenSetSchema,GeneratorSchema,DictSchema,AfterValidatorFunctionSchema,BeforeValidatorFunctionSchema,WrapValidatorFunctionSchema,PlainValidatorFunctionSchema,WithDefaultSchema,NullableSchema,UnionSchema,TaggedUnionSchema,ChainSchema,LaxOrStrictSchema,JsonOrPythonSchema,TypedDictSchema,ModelFieldsSchema,ModelSchema,DataclassArgsSchema,DataclassSchema,ArgumentsSchema,CallSchema,CustomErrorSchema,JsonSchema,UrlSchema,MultiHostUrlSchema,DefinitionsSchema,DefinitionReferenceSchema,UuidSchema]