teachpyx.tools.data_helper

teachpyx.tools.data_helper.decompress_zip(filename, dest: str, verbose: bool = False) List[str][source][source]

Unzips a zip file.

Paramètres:
  • filename – file to process

  • dest – destination

  • verbose – verbosity

Renvoie:

return the list of decompressed files

teachpyx.tools.data_helper.download(url: str, dest: str = '.', timeout: int = 10, verbose: bool = False) str[source][source]

Download one file.

Paramètres:
  • url – url

  • dest – destination folder

  • timeout – timeout

  • verbose – display progress

Renvoie:

filename

teachpyx.tools.data_helper.download_and_unzip(url: str, dest: str = '.', timeout: int = 10, verbose: bool = False) List[str][source][source]

Downloads a file and unzip it.

Paramètres:
  • url – url

  • dest – destination folder

  • timeout – timeout

  • verbose – display progress

Renvoie:

list of unzipped files