module data.datasql#

Short summary#

module ensae_teaching_cs.data.datasql

Example of databases

source on GitHub

Functions#

function

truncated documentation

anyfile

Returns any file in sub folder data_sql. …

simple_database

Returns a simple database. See ensae_teaching_cs.data.datasql.anyfile() to directly download it.

Documentation#

Example of databases

source on GitHub

ensae_teaching_cs.data.datasql.anyfile(name, local=True, cache_folder='.')#

Returns any file in sub folder data_sql.

Paramètres
  • name – file to download

  • local – local data or web

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

Renvoie

text content (str)

source on GitHub

ensae_teaching_cs.data.datasql.simple_database(name='World.db3', local=True, cache_folder='.')#

Returns a simple database. See ensae_teaching_cs.data.datasql.anyfile() to directly download it.

Paramètres
  • name – filename

  • local – local data or web

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

Renvoie

text content (str)

source on GitHub