Template of python project by cookiecutter.
Install cookiecutter
# Create virtual environment
python -m venv venv
# Activate virtual environment
source venv/bin/activate
# Install cookiecutter
pip install --upgrade pip
pip install cookiecutter
Create project
# There might be some templates in the future, so you can choose one of them.
# https://github.com/hinnytsang/std-tech-dept-template.git
# |
# ├── py-basic/ <- example: --directory="py-basic"
# | ├── {{cookiecutter.project_slug}}/
# | └── cookiecutter.json
# └── ...
cookiecutter gh:HinnyTsang/std-tech-dept-template --directory="directory_name"
A project will be created in current directory, you can see it by the following command.
ls -l
There is a default configuration template in each template <template/custom-config.template.yaml>
, you can modify it to fit your project.