|
| 1 | +# cookiecutter-python |
| 2 | + |
| 3 | +A [Cookiecutter](https://github.com/cookiecutter/cookiecutter) template for a new Python app. |
| 4 | + |
| 5 | +Scaffolds out a new minimal python project with everything setup and ready to code. |
| 6 | + |
| 7 | + |
| 8 | +## Usage |
| 9 | + |
| 10 | +### uv |
| 11 | + |
| 12 | +```sh |
| 13 | +uvx cookiecutter https://github.com/jritsema/cookiecutter-python.git |
| 14 | +``` |
| 15 | + |
| 16 | +### pip |
| 17 | + |
| 18 | +```sh |
| 19 | +pip install cookiecutter |
| 20 | +cookiecutter https://github.com/jritsema/cookiecutter-python.git |
| 21 | +``` |
| 22 | + |
| 23 | +## Example |
| 24 | + |
| 25 | +``` |
| 26 | +$ cookiecutter https://github.com/jritsema/cookiecutter-python.git |
| 27 | + [1/7] Friendly name of your project (Python app): |
| 28 | + [2/7] Description of your project (This is a new python app): |
| 29 | + [3/7] Directory/URL friendly project name (python-app): |
| 30 | + [4/7] Do you use asdf? [y/n] (y): |
| 31 | + [5/7] Do you use direnv? [y/n] (y): |
| 32 | + [6/7] Do you want to add container support? [y/n] (y): |
| 33 | + [7/7] Do you want to include the AWS SDK? [y/n] (n): |
| 34 | +direnv allow . |
| 35 | +Creating virtual python environment... |
| 36 | +Initialized empty Git repository in /Users/john/code/python-app/.git/ |
| 37 | +[main (root-commit) 36dde21] Initial commit |
| 38 | + 10 files changed, 103 insertions(+) |
| 39 | + create mode 100644 .dockerignore |
| 40 | + create mode 100644 .envrc |
| 41 | + create mode 100644 .gitignore |
| 42 | + create mode 100644 .tool-versions |
| 43 | + create mode 100644 Dockerfile |
| 44 | + create mode 100644 Makefile |
| 45 | + create mode 100644 README.md |
| 46 | + create mode 100644 log.py |
| 47 | + create mode 100644 main.py |
| 48 | + create mode 100644 requirements.txt |
| 49 | +Done |
| 50 | +cd python-app |
| 51 | +``` |
| 52 | + |
| 53 | + |
| 54 | +## TODO |
| 55 | + |
| 56 | +- try to add dynamic python version as cookiecutter variable to be used in Dockerfile |
| 57 | +- `container_support` should add a `make build` command |
0 commit comments