Skip to content

CPA - Create-Python-App

Published:
2 min read

CPA Logo

create-python-app is a cli tool for ultra fast setup of new Python projects. It automates the creation of config files for style & lint checks, gitignore, a basic Dockerfile and Poetry for dependency management. An opinionated set of pre-commit hooks are included for enforcing best practices and reducing dev time.

An example output is provided in ./example

Installation

MacOS, Linux

Install via script below or get it from Releases

curl -sSL https://raw.githubusercontent.com/ysawa0/create-python-app/main/install.sh | bash
# cpa will be installed to ~/bin/cpa
# add ~/bin to your PATH
# eg: echo "export PATH=$PATH:~/bin" >> ~/.zshrc

Windows

Download latest binary from Releases page

Building from source

# cd to project
cargo install --path .

Usage

To create a new project:

cpa create --name myproject

Optional params:

Example:

cpa create --name myproject --preset python3.10

Goals

Contributions and Feedback

Users are welcome to contribute to the project by submitting pull requests or opening issues for bugs and feature requests. Feedback is also greatly appreciated to help improve the tool.