# Now you can use the already cloned cookiecutter by name If you have already cloned a cookiecutter into ~/.cookiecutters/, you can reference it by directory name: # Clone cookiecutter-pypackage Default responses are the values in cookiecutter.json.Ĭross-platform support for ~/.cookiecutterrc files: default_context : full_name : "Audrey Roy Greenfeld" email : github_username : "audreyfeldroy" cookiecutters_dir : "~/.cookiecutters/"Ĭookiecutters (cloned Cookiecutter project templates) are put into ~/.cookiecutters/ by default, or cookiecutters_dir if specified.Prompts are the keys in cookiecutter.json.Unless you suppress it with -no-input, you are prompted for input: Or use it from Python: from cookiecutter.main import cookiecutter # Create project from the cookiecutter-pypackage/ template cookiecutter ( 'cookiecutter-pypackage/' ) # Create project from the cookiecutter-pypackage.git repo template cookiecutter ( '' ) Use it at the command line with a local template: # Create project in the current working directory, from the local # cookiecutter-pypackage/ template $ cookiecutter gh:audreyfeldroy/cookiecutter-pypackage # For the sake of brevity, repos on GitHub can just use the 'gh' prefix # Then it'll create your Python package in the current working directory, # based on those values. Simple command line usage: # Create project from the cookiecutter-pypackage.git repo template # You'll be prompted to enter values. You can use multiple languages in the same project template. Python, JavaScript, Ruby, CoffeeScript, RST, Markdown, CSS, HTML, you name it. Project templates can be in any programming language or markup format:.You don't have to know/write Python code to use Cookiecutter.Cross-platform: Windows, Mac, and Linux are officially supported.Free and open source software: BSD license.creating a Python package project from a Python package project template. A command-line utility that creates projects from cookiecutters (project templates), e.g.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |