io
¶
dump_file
¶
dump_file(
data: Any,
file: str,
mode: str = "w",
ensure_folder_exists: bool = True,
file_type: Optional[str] = None,
*args: Any,
**kwargs: Any
) -> None
Write the data to a file based on the file extension.
Source code in src/appl/core/io.py
get_ext
¶
load_file
¶
load_file(
file: str,
mode: str = "r",
file_type: Optional[str] = None,
open_kwargs: Optional[Dict[str, Any]] = None,
*args: Any,
**kwargs: Any
) -> Any
Load a file based on the file extension and return the data.