paolodina / python-boilerplate

A simple Python project template including CLI and API. Dev tools: ruff, mypy, pre-commit

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Python Projects Template

Special thanks:

✨ Quick start

Create a new project called myproject.

pip version

To create a new project from this template, simply run:

$ pwd
/home/user/devel/myproject
$ python -m venv .venv
$ . .venv/bin/activate
pip install -U pip copier
copier copy -r devel https://github.com/paolodina/python-boilerplate .
# Answer the questions, project name: myproject
$ git init && git add . && git commit -m 'first commit'
$ make install-dev
# ...wait...
$ myproject
[03/17/24 15:48:27] INFO     Hello, World   main.py:16

pipx version

To create a new project from this template, simply run:

$ pwd
/home/user/devel
$ pipx run copier copy -r devel https://github.com/paolodina/python-boilerplate myproject
# Answer the questions, project name: myproject
$ cd myproject
$ git init && git add . && git commit -m 'first commit'
$ python -m venv .venv
$ . .venv/bin/activate
$ make install-dev
# ...wait...
$ myproject
[03/17/24 15:48:27] INFO     Hello, World   main.py:16

Enjoy!

📐 Design choices

About

A simple Python project template including CLI and API. Dev tools: ruff, mypy, pre-commit


Languages

Language:Makefile 51.0%Language:Python 43.2%Language:Dockerfile 5.8%