This is a cookiecutter template for python module projects.
- Cookiecutter
- Python module/package
- Project Structure
- Boilerplate/Template
- Best Practices
- Configuration
- Test
- Build
- Documentation
- Scripts
- Examples
- CI/CD
- Install Python (>= v3.10) and pip (>= 23):
- [RECOMMENDED] Miniconda (v3)
- [arm64/aarch64] Miniforge (v3)
- [Python virutal environment] venv
For DEVELOPMENT environment:
2.1. Prepare projects directory (if not exists):
# Create projects directory:
mkdir -pv ~/workspaces/projects
# Enter into projects directory:
cd ~/workspaces/projects2.2. Follow one of the below options [A], [B] or [C]:
OPTION A. Clone the repository:
git clone https://github.com/humblebeeai/module-python-template.git && \
cd module-python-template && \
git checkout cookiecutterOPTION B. Clone the repository (for DEVELOPMENT: git + ssh key):
git clone git@github.com:humblebeeai/module-python-template.git && \
cd module-python-template && \
git checkout cookiecutterOPTION C. Download source code from cookiecutter branch.
# Install cookiecutter:
pip install -U cookiecutter
# Or:
pip install -r ./requirements.txt# Generate project:
cookiecutter -f .
# Or:
./scripts/build.shcd [PROJECT_NAME]
# For example:
cd module-python-template👍
- Cookiecutter (GitHub) - https://github.com/cookiecutter/cookiecutter
- Cookiecutter (Docs) - https://cookiecutter.readthedocs.io/en/stable