libpyvinyl.BaseFormat.BaseFormat

libpyvinyl.BaseFormat.BaseFormat

class libpyvinyl.BaseFormat.BaseFormat

The abstract format class. It’s the interface of a certain data format.

__init__()

Methods

__init__()

convert(obj, output, output_format_class, ...)

Direct convert method, if the default converting would be too slow or not suitable for the output_format

direct_convert_formats()

format_register()

read(filename, **kwargs)

Read the data from the file with the filename to a dictionary.

write(object, filename, key, **kwargs)

Save the data with the filename.

abstract classmethod convert(obj: libpyvinyl.BaseData.BaseData, output: str, output_format_class: str, key, **kwargs)

Direct convert method, if the default converting would be too slow or not suitable for the output_format

abstract classmethod read(filename: str, **kwargs) dict

Read the data from the file with the filename to a dictionary. The dictionary will be used by its corresponding data class.

abstract classmethod write(object: libpyvinyl.BaseData.BaseData, filename: str, key: str, **kwargs)

Save the data with the filename.