Skip to content

trailofbits/cookiecutter-python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cookiecutter-python

This repository contains a Cookiecutter template for a Python package.

It's designed primarily for Trail of Bits' own use, but should be usable by anyone.

Both command-line and library packages can be generated.

Usage

  • Install uv
# On any platform with cURL and sh
curl -LsSf https://astral.sh/uv/install.sh | sh

# On Windows
powershell -c "irm https://astral.sh/uv/install.ps1 | iex"

# With Brew
brew install uv

Please refer to uv documentation for more installation options.

  • Use cookiecutter to generate a project using this template:
# creates the project directory in $PWD
uvx cookiecutter gh:trailofbits/cookiecutter-python

Alternatively, tell cookiecutter where to put the new project directory:

# creates ~/tmp/$project
uvx cookiecutter -o ~/tmp gh:trailofbits/cookiecutter-python

cookiecutter will prompt you for the project's name and all other relevant metadata.

Note

The project will be generated using uv, a near drop-in replacement for pip which is still in active development.

Packages are installed using uv pip install <package_name> (after activating the virtual environment).

About

A cookiecutter template for a best-practices Python project

Resources

License

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •