Skip to content

Personal cookiecutter template to accelerate Python package development

Notifications You must be signed in to change notification settings

LouisStefanuto/cookiecutter-python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 

Repository files navigation

🍪 Cookiecutter Template for Python Package

This Cookiecutter template provides a standardized structure for creating Python packages. It's designed to streamline the initial setup process and promote best practices for package development.

🤖 Features

  • Standard repo structure
  • Documentation with mkdocs with Material theme
  • Test with pytest
  • Coverage control with pytest-cov
  • CI/CD with Github Workflows, includes default actions for building, testing, publishing the package.
  • CLI example with Typer
  • Code quality checks with Pre-commit

Optional dev tools:

The template supports Python 3.12.

🧪 Requirements

  • Python 3.12 or higher
  • Cookiecutter

👾 Usage

  1. Install Cookiecutter if you haven't already:

    pip install cookiecutter
  2. Generate a new Python package project using this template:

    cookiecutter gh:LouisStefanuto/cookiecutter-python
    1. Replace your_username with your GitHub username.
    2. Follow the prompts to provide information about your package, such as its name, description, author, etc.
    3. After filling out the prompts, the template will generate a new directory with your package files based on the provided information.
    4. Navigate to the generated directory and start developing your Python package!

👋 Contributing

If you encounter any issues with the template or have suggestions for improvements, feel free to open an issue or submit a pull request on the GitHub repository.

About

Personal cookiecutter template to accelerate Python package development

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages