exopy.tasks.utils.templates module

Utility function to manipulate template files.

exopy.tasks.utils.templates.load_template(path)[source]

Load the informations stored in a template.

Parameters

path (unicode) – Location of the template file.

Returns

  • data (ConfigObj) – The data needed to rebuild the tasks.

  • doc (unicode) – The doc of the template.

exopy.tasks.utils.templates.save_template(path, data, doc)[source]

Save a template to a file

Parameters
  • path (unicode) – Path of the file to which save the template

  • data (dict) – Dictionnary containing the tempate parameters

  • doc (unicode) – The template doc