File Conversion
Overview
Convenience wrappers for converting supported image and tabular file formats in
the drcutils.data namespace.
API Reference
File conversion helpers for image and tabular data formats.
- drcutils.data.convert.convert(thing_to_convert_from, thing_to_convert_to, from_kwargs=None, to_kwargs=None)[source]
Convert supported files to another supported format.
- Parameters:
thing_to_convert_from – Source file path.
thing_to_convert_to – Target file path.
from_kwargs – Optional keyword args for the input reader.
to_kwargs – Optional keyword args for the output writer.
- Raises:
ValueError – If conversion is unsupported.