plynx.utils.file_handler

Smart file handeling

Module Contents

plynx.utils.file_handler._GLOBAL_STORAGE_CONFIG :Optional[StorageConfig][source]
plynx.utils.file_handler._get_global_storage_config() → StorageConfig[source]
plynx.utils.file_handler.open(filename: str, mode: str = 'rt')[source]

Open file using internal configuration

plynx.utils.file_handler.get_file_stream(file_path: str, preview: bool = False, file_type=None) → BinaryIO[source]

Get file stream object (deprecated)

plynx.utils.file_handler.upload_file_stream(fp: BinaryIO, file_path: Optional[str] = None, seek: bool = True) → str[source]

Upload file stream to a given path (deprecated)