module automation.module_backup#

Short summary#

module ensae_teaching_cs.automation.module_backup

backup the list of modules

source on GitHub

Functions#

function

truncated documentation

ftp_list_modules

Updates the list of backuped modules assuming they are stored on a FTP website. It gets the list of wheels in a folder …

Documentation#

backup the list of modules

source on GitHub

ensae_teaching_cs.automation.module_backup.ftp_list_modules(ftp_location='/home/ftpuser/ftp/web/enseignement/setup', http_location='http://www.xavierdupre.fr/enseignement/setup', filename='index_modules_list.html', ftps='SFTP')#

Updates the list of backuped modules assuming they are stored on a FTP website. It gets the list of wheels in a folder and creates a HTML pages. It then uploads the final pages.

Paramètres:
  • ftp_location – location on the website

  • http_location – same location but on http protocol

  • filename – name of the file to produce

Renvoie:

list of modules

The module uses keyring to retrieve the credentials. You can set them up with:

from pyquickhelper.loghelper import get_password
get_password("ftp_list_modules", "ensae_teaching_cs2,site", "...")
get_password("ftp_list_modules", "ensae_teaching_cs2,login", "...")
get_password("ftp_list_modules", "ensae_teaching_cs2,password", "...")

source on GitHub