Skip to content

Modern cookiecutter template for libraries or applications, support Django based projects (includes pre-commit hooks, poetry, etc.)

License

Notifications You must be signed in to change notification settings

escaped/cookiecutter-pypackage

Repository files navigation

Cookiecutter PyPackage

A Modern Cookiecutter template for Python packages and applications using Poetry.

Features

Quickstart

Get the latest version of Cruft (or Cookiecutter) I recommend pipx to install it into a global isolated environment.

pipx install cruft

Generate a new python package

cruft create https://github.com/escaped/cookiecutter-pypackage.git
cd <chosen project slug>
git init
git add .
git commit -m "feat: initial project structure"

Publish releases to pypi

In order get automatic releases to pypi you need to add your pypi access token to the secrets github (named PYPI_TOKEN). Instructions can be found here: python.org.

Autoupdate template

This cookiecutter template comes with an auto update feature if the project was created using cruft. A GitHub action automatically checks for updates and creates a pull request.

It is required to add a personal access token as github secret to the repository (named AUTO_UPDATE_GITHUB_TOKEN). While creating the access token, the following permissions have to be granted

  • repo
  • workflow

About

Modern cookiecutter template for libraries or applications, support Django based projects (includes pre-commit hooks, poetry, etc.)

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages