startnewproject

This module is the main module where all the functions to run the cli of startnewproject are defined.

startnewproject.main.create_folder(folder_dict: dict, name: str, readme_template: str) None[source]

Create folder.

This function creates a folder in the current working directory. It takes a folder_dict with “subfolders” and “files” as keys. For each subfolder, it runs this function recursively. For each file, it creates a file with the same name in the current working directory. It creates a line for each element in folder_dict. It also creates a REAMDE file based on the readme_template file.

Parameters:
  • folder_dict (dict) – config dictionary with folder structure.

  • name (str) – name of the folder to create.

  • readme_template (str) – type of README file. Either “txt”, “md” or “html”, default to “txt”.