Giter Site home page Giter Site logo

cookiecutter-python's Introduction

Python project template

An opinionated Cookiecutter template for Python projects.

Features

References

Quickstart

Install the latest Cookiecutter if you haven't installed it yet, preferably in a virtualenv:

pip install cookiecutter

Generate a Python package project:

cookiecutter . -o ~/repos/

Configuration

The following configuration keys are available:

author_name and author_email: Name and email address of the author. Used in package metadata.

project_title: The project display title, with capitals, whitespaces and whatnots. Used in the README file and in the project documentation.

project_slug: The lowercase, dash-separated version of the project title. Used as toplevel directory name and in package metadata.

project_description: A short sentence to describe the project. Used in the README file, project docstrings and package metadata.

project_url: Homepage of the project. Used in package metadata.

project_license: License of the project. Used to generate the license file and in package metadata.

project_copyright: Copyright notice. Used in the project documentation and package metadata.

project_package: Name of the toplevel Python package.

project_prog: If the project is a program, the name of the main console script.

version_scheme: Versioning scheme used by the project, either semantic versioning or calendar versioning. Used in the project changelog.

project_version: The initial project version.

python_min_version: Minimum Python version to be supported.

cli_parser: Command-line parsing library to use in the entry point, either Click or argparse. If not set, no console script is generated.

linter: Optional source code linter (Flake8).

type_checker: Optional type checker (Mypy).

code_formatter: Optional source code formatter (Black).

test_suite: Optional framework to run unit tests (Pytest with Coverage.py).

doc_generator: Optional documentation generator (Sphinx).

vcs: Optionally initialize a new SCM repository (Git).

ci: Optionally generate a CI configuration file. Both GitLab CI and Travis CI are supported.

cookiecutter-python's People

Contributors

ge0 avatar vivienm avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.