Functions¶
Several functions are included in this package. The most important ones are summarized here.
Convert files¶
-
convert.convert_file_extension(file, file_extension)[source]¶ Converts a file into another file.
Parameters: - file (str or pathlib.Path) – The file that should be converted.
- file_extension (str) – The new file extension that the converted file should have. The new file has the same filename as file only its file extension is replaced by file_extension.
-
convert.convert_file(file_from, file_to)[source]¶ Converts a file into another file.
Parameters: - file_from (str or pathlib.Path) – The file that should be converted.
- file_to (str or pathlib.Path) – The file to which file_from should be converted.
-
convert.save(file, value)[source]¶ Saves a value.
Parameters: - file (str or pathlib.Path) – The file where value should be saved.
- value (object) – The value that should be saved.
-
convert.load(file)[source]¶ Loads a value.
Parameters: file (str or pathlib.Path) – The file that should be loaded. Returns: The value stored in file. Return type: object