kittycad.api.file.create_file_conversion

Functions

asyncio(output_format, src_format, body, *, ...)

Convert a CAD file from one format to another.

asyncio_detailed(output_format, src_format, ...)

rtype

Response[Union[Any, FileConversion, Error]]

sync(output_format, src_format, body, *, client)

Convert a CAD file from one format to another.

sync_detailed(output_format, src_format, ...)

rtype

Response[Union[Any, FileConversion, Error]]

kittycad.api.file.create_file_conversion._build_response(*, response)[source][source]
Return type

Response[Union[Any, FileConversion, Error]]

kittycad.api.file.create_file_conversion._get_kwargs(output_format, src_format, body, *, client)[source][source]
Return type

Dict[str, Any]

kittycad.api.file.create_file_conversion._parse_response(*, response)[source][source]
Return type

Union[Any, FileConversion, Error, None]

async kittycad.api.file.create_file_conversion.asyncio(output_format, src_format, body, *, client)[source][source]

Convert a CAD file from one format to another. If the file being converted is larger than 25MB, it will be performed asynchronously. If the conversion is performed synchronously, the contents of the converted file (output) will be returned as a base64 encoded string. If the operation is performed asynchronously, the id of the operation will be returned. You can use the id returned from the request to get status information about the async operation from the /async/operations/{id} endpoint.

Return type

Union[Any, FileConversion, Error, None]

async kittycad.api.file.create_file_conversion.asyncio_detailed(output_format, src_format, body, *, client)[source][source]
Return type

Response[Union[Any, FileConversion, Error]]

kittycad.api.file.create_file_conversion.sync(output_format, src_format, body, *, client)[source][source]

Convert a CAD file from one format to another. If the file being converted is larger than 25MB, it will be performed asynchronously. If the conversion is performed synchronously, the contents of the converted file (output) will be returned as a base64 encoded string. If the operation is performed asynchronously, the id of the operation will be returned. You can use the id returned from the request to get status information about the async operation from the /async/operations/{id} endpoint.

Return type

Union[Any, FileConversion, Error, None]

kittycad.api.file.create_file_conversion.sync_detailed(output_format, src_format, body, *, client)[source][source]
Return type

Response[Union[Any, FileConversion, Error]]