Skip to content

humblebeeai/module-python-template

Repository files navigation

Python Module Template (Cookiecutter)

This is a cookiecutter template for python module projects.

✨ Features

  • Cookiecutter
  • Python module/package
  • Project Structure
  • Boilerplate/Template
  • Best Practices
  • Configuration
  • Test
  • Build
  • Documentation
  • Scripts
  • Examples
  • CI/CD

🐤 Getting started

1. 🚧 Prerequisites

For DEVELOPMENT environment:

2. 📥 Download or clone the repository

2.1. Prepare projects directory (if not exists):

# Create projects directory:
mkdir -pv ~/workspaces/projects

# Enter into projects directory:
cd ~/workspaces/projects

2.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 cookiecutter

OPTION 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 cookiecutter

OPTION C. Download source code from cookiecutter branch.

3. 📦 Install cookiecutter

# Install cookiecutter:
pip install -U cookiecutter
# Or:
pip install -r ./requirements.txt

4. 🏗️ Generate project with cookiecutter

# Generate project:
cookiecutter -f .
# Or:
./scripts/build.sh

5. 🏁 Start the project

cd [PROJECT_NAME]
# For example:
cd module-python-template

👍


📑 References