Skip to content
This repository was archived by the owner on Feb 18, 2025. It is now read-only.

vino9net/python-copier-template

Repository files navigation

Copier template for python project

This a Copier template generates a python project with ready to go pyproject.toml configuration for pytest, linting tools.

Project Options

The template supports the following application types with or without database drivers. If database driver is chosen, conftest.py will contain test databae preparation fixtures.

The following dev tooling are supported:

  • vscode
  • ruff
  • pyright
  • devcontainer
  • Dockerfile
  • GitHub action for unit test and container image creation

generate code using config file without interactive input

Create a config.yml with options to use, then

cat <<EOF > config.yaml
db_type: postgresql
pkg_name: myt
project_name: My Test Proj
project_type: quart
use_devcontainer: false
use_docker: false
use_github_action: false
version: 0.1.0
EOF


pipx run copier gh:vino9org/python-copier-template output_dir -a config.yaml --trust

Developer notes

The unit test code contains logic to automatically generate test cases for various configuration options and run test against each of them, in order to guide the templaet from acciental break. See tests/tools.py for more details.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors