mould

Create a cookiecutter template from an existing project directory

mould.read_directory(project_directory)[source]
mould.replace_directory_entries(directory_entries, replacements)[source]

Perform replacements substitutions on DirectoryEntry instances.

Also mention the cookiecutter thing? https://docs.python.org/3.3/library/stdtypes.html#str.replace

Specifically the path elements :param directory_entries: :param replacements: A dict where the key is the [value of the needle]

and the value
Returns:
mould.write_directory(directory_entries, target_directory)[source]
Parameters:
  • directory_entries – DirectoryEntry instances
  • target_directory – The directory to write the mould to
Returns:

mould.read.read_directory(project_directory)[source]
mould.read.read_file(file_path)[source]