ismailuddin / cookiecutter-python-package-template

A cookiecutter template repository for setting up Python packages

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

🐍 Python package template repository

Code style: black

Repository for cookiecutter template used for setting up a minimal Python package

Repository for holding the cookiecutter template for creating a minimal Python package.

✨ Features

  • πŸ“š Sphinx documentation
    • Auto API documentation using sphinx-apidoc
    • Notebook support using nbsphinx
  • 🧱 Makefile for automating steps e.g. building docs
  • βœ… Example tests using unittest layout
  • ⚠️ Pre-commit hooks setup
  • πŸ—„ Custom pylintrc file based on Google Python Style guide
  • πŸ“œ CHANGELOG.md file
  • πŸ“‹ pyproject.toml file for setting up tools and package
  • πŸš… Modern pip PEP517 setup installer

πŸ›  Requirements

  • Python 3.8 or newer
  • cookiecutter
  • Make
  • cruft (Recommended)

πŸš€ Usage

Cookiecutter approach

Initialise the template using the cookiecutter command:

$   cookiecutter https://www.github.com/ismailuddin/cookiecutter-python-package-template

Cruft approach

cruft allows your projects to keep upto date with the template repository.

For new projects, run the following:

$   cruft create https://www.github.com/ismailuddin/cookiecutter-python-package-template

For existing projects initialised with cookiecutter, run the following:

$   cruft link https://www.github.com/ismailuddin/cookiecutter-python-package-template

To update your project to the latest version of it's parent template:

$   cruft update

About

A cookiecutter template repository for setting up Python packages


Languages

Language:Python 50.7%Language:Makefile 29.2%Language:Batchfile 10.9%Language:Jupyter Notebook 9.2%