skelpy.templates package

Collection of template files

This package also provides a package-level function get_template().

skelpy.templates.get_template(tpl_name)[source]

Retrieve the template by name

copied from pyscaffold project.

Parameters:

tpl_name (str) – template name

Returns:

an instance of string.Template class if successful, otherwise None.

Return type:

string.Template or None

Raises:
  • IOError(python2.7) – if tpl_name.tpl file is not found
  • FileNotFoundError(python3.x) – if tpl_name.tpl file is not found
  • TypeError – if tpl_name is not given