tabsdata.LocalFileDestination#
- class LocalFileDestination(path: str | List[str], format: str | dict | FileFormat = None)[source]#
Bases:
Output- __init__(path: str | List[str], format: str | dict | FileFormat = None)[source]#
Initializes the LocalFileDestination with the given path; and optionally a format.
- Parameters:
path (str | List[str]) – The path where the files must be stored. It can be a single path or a list of paths.
format (str | dict | FileFormat, optional) – The format of the file. If not provided, it will be inferred from the file extension of the data. Can be either a string with the format, a FileFormat object or a dictionary with the format as the ‘type’ key and any additional format-specific information. Currently supported formats are ‘csv’, ‘parquet’, ‘ndjson’ and ‘jsonl’.
- Raises:
OutputConfigurationError –
FormatConfigurationError –
Methods
__init__(path[, format])Initializes the LocalFileDestination with the given path; and optionally a format.
Attributes
formatThe format of the file or files.
pathThe path or paths to store the files.