CookieCutter template for my personal python projects
Install cookiecutter
command line: pip install cookiecutter
Generate a new Cookiecutter template layout: cookiecutter https://github.com/fchorney/cookiecutter-fchorney
If you have the cookiecutter-fchorney
project checked out, you can just reference the local folder: cookiecutter ./cookiecutter-fchorney
The cookiecutter.json file contains a list of options that you will be prompted for when you create a new project. This section will offer some insight into those options.
- full_name:
- Your full name.
- email:
- Your GitHub email.
- project_name:
- The human readable name for the project.
- project_slug:
- The actual python package name. Follow this naming guide
- project_short_description:
- Short project description.
- release_date:
- The release date of the package.
- version:
- The version to start this project on.
- is_executable:
- Select "yes" if your python package will be run as an executable rather than being a pure library.
{{cookiecutter.project\_slug}}/init.sh
is git-ignored in its respective folder so that when the project is created it doesnt think init.sh
is actually part of the new project. Thus if you need to edit init.sh
in the future, make sure to git add -f init.sh
so that it force adds it.