Project Structure

Uses cookiecutter for project templating.

Uses uv for python dependency operations and virtual environment management.

Uses src layout, which is the recommended layout for python projects to avoid common pitfalls .

Uses project.toml instead of setup.py and setup.cfg. The reasoning is following:

Steps

Install uv system-wide

BASH
# On macOS and Linux.
curl -LsSf https://astral.sh/uv/install.sh | sh

# On Windows.
powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex"
Click to expand and view more

Create the project using cookiecutter

BASH
uvx cookiecutter https://github.com/ilkersigirci/python-template.git
Click to expand and view more

Start searching

Enter keywords to search articles

↑↓
ESC
⌘K Shortcut