wrapper.py
Wrapper function to convert data returned from the Scribe-Data CLI to other file types.
- scribe_data.cli.convert.wrapper.convert_wrapper(languages: list[str] | None, data_types: list | None, input_path: Path, output_dir: Path, output_type: str, overwrite: bool = False, identifier_case: str = 'camel', all: bool = False) None[source]
Convert data to the specified output type: JSON, CSV/TSV, or SQLite.
- Parameters:
- languagesOptional[List[str]]
The language(s) of the data to convert.
- data_typesOptional[List[str]]
The data type(s) of the data to convert.
- input_pathPath
The path to the input file or directory.
- output_dirPath
The output directory where converted files will be stored.
- output_typestr
The desired output format. Can be ‘json’, ‘csv’, ‘tsv’, or ‘sqlite’.
- overwritebool, optional, default=False
Whether to overwrite existing output files.
- identifier_casestr, optional, default=’camel’
The case format for identifiers.
- allbool, optional, default=False
Convert all languages and data types.
- Returns:
- None
This function does not return any value; it performs a conversion operation.