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='/www/htdocs/enseignement/setup', http_location='http://www.xavierdupre.fr/enseignement/setup', filename='index_modules_list.html')[source]

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:

keyring.get_password("ftp_list_modules", "ensae_teaching_cs,site", "...")
keyring.get_password("ftp_list_modules", "ensae_teaching_cs,login", "...")
keyring.get_password("ftp_list_modules", "ensae_teaching_cs,password", "...")

source on GitHub