module data.data_helper#

Short summary#

module ensae_teaching_cs.data.data_helper

Helpers to get data including in the module itself.

source on GitHub

Functions#

function

truncated documentation

any_local_file

Returns a local data file, reads its content or returns its content.

Documentation#

Helpers to get data including in the module itself.

source on GitHub

ensae_teaching_cs.data.data_helper.any_local_file(name, subfolder, local=True, cache_folder='.', filename=True, unzip=False, encoding=None)#

Returns a local data file, reads its content or returns its content.

Paramètres:
  • name – file to download

  • subfolder – sub folder

  • local – local data or web

  • cache_folder – where to cache the data if downloaded a second time

  • filename – return the filename (True) or the content (False)

  • unzip – unzip as well

  • encoding – encoding

Renvoie:

text content (str)

source on GitHub