A command-line utility that creates projects from cookiecutters (project templates). E.g. Python package projects, jQuery plugin projects.
Daniel Roy Greenfeld
What @luzfcb said: If a Cookiecutter template doesn't have a cookiecutter.json file in the root of the project, then it's not a Cookiecutter template.
Hello! I use cookiecutter to generate template projects for Julia. One requirement for Julia packages is that the package is a git repository, and I always have to do a git init, git add, git commit to include all files generated by cookiecutter in the first commit... Is there a means with cookiecutter to have scripted actions done besides generating the content of the directory? Thanks!
Thanks @smitty1eGH this is exactly what I was looking for!
Hi all! I’m working on my first cookiecutter template, but I’m stuck on the question of which license to choose for the template itself
projects created with the template will use AGPLv3 by default, but I’d like to allow users to choose a different license if they want to, so I’m not sure if such a restrictive license is appropriate for the template itself
I tried looking at some other cookiecutter templates for comparison, but most of them don’t seem to have any license on the template level :) any advice?
MIT license sounds like it could work as long as I clarify in the (template) README that created projects are not considered “substantial portions of the Software”… I’ll go with that for now
@lucaswerkmeister I should probably feel more passionate about licensing than I do.
Hi I am new to both python and cookiecutter. I have installed PIP on my Windows 10 system, and also installer cookiecutter uings the command pip install --user cookiecutter
I am now unable to run cookiecutter command, on windows10 saying command not found and unrecognizable. Requesting help here
You need to add the Scripts folder to your PATH
i have added the scripts folder already, due to which PIP command started working
this is it in System variables path
can anyone help me here?
Did you refresh your prompt after modifying the path?
yes, i restarted the prompt
did you run the command prompt as administrator?
yes i tried that too
it makes a difference. When you install as administrator, it will install the the Program Files folder, so you have to add that to your PATH as well.
i have installed as pip install --user cookiecutter, and it had installed successfully. are you telling me to reinstall as a Admin and then give a try?
I'm new here
I'm on Debian
uname -a Linux jervis02 4.9.0-8-amd64 #1 SMP Debian 4.9.130-2 (2018-10-27) x86_64 GNU/Linux
and have python 2.7
python --version Python 2.7.13
I just install cookiecutter like
sudo pip install cookiecutter
but if I try to start it ...
cookiecutter --help Traceback (most recent call last): File "/usr/local/bin/cookiecutter", line 7, in <module> from cookiecutter.main import main File "/usr/local/lib/python2.7/dist-packages/cookiecutter/main.py", line 5, in <module> from .cli import main File "/usr/local/lib/python2.7/dist-packages/cookiecutter/cli.py", line 13, in <module> from cookiecutter.main import cookiecutter File "/usr/local/lib/python2.7/dist-packages/cookiecutter/main.py", line 15, in <module> from .generate import generate_context, generate_files File "/usr/local/lib/python2.7/dist-packages/cookiecutter/generate.py", line 15, in <module> from jinja2 import FileSystemLoader ImportError: No module named jinja2