All apps/Hatch

Hatch

hatch

Modern, extensible Python project management.

Runs as hatch|macOS, Linux, Windows|hatch.pypa.io

Command form

ai-draft · 2 tasks · 9 fields

Build a project and create a new one. Environments, versioning, publishing and other subcommands are left out.

Opens the form; the finished command lands at your prompt, unrun
otty gui hatch

hatch build

Build a project

Build sdist and wheel artifacts.

Build a projectExample values, fixed in this page — nothing here reaches a terminal
Basic
Target
string
Remove existing artifacts first
--clean
Output location
directory
TasksEach one presets the form for one job
Build sdist and wheel
targetcleanlocation
ParametersOnly these flags are editable in the form
Target
string · repeatable
--target-tsdistwheel
Remove existing artifacts first
boolean
--clean-c
Disable build hooks
boolean
--no-hooks
Only run build hooks
boolean
--hooks-only
Output location
path · positional 0

hatch new

Create a project

Create or initialize a project.

Create a projectExample values, fixed in this page — nothing here reaches a terminal
Basic
Project name*
string
Location
directory
Add a command line interface
--cli
TasksEach one presets the form for one job
New project
namelocationcli
ParametersOnly these flags are editable in the form
Project name
string · positional 0
Location
path · positional 1
Add a command line interface
boolean
--cli
Initialize existing project
boolean
--init
SourcesEvery flag above is checked against these
help
hatch build [OPTIONS] [LOCATION] --target, -t The target to build, overriding project defaults. This may be selected multiple times e.g. -t sdist -t wheel --hooks-only Whether or not to only execute build hooks --no-hooks Whether or not to disable build hooks --clean, -c Whether or not existing artifacts should first be removed
manual

hatch.pypa.io

help
hatch new [OPTIONS] [NAME] [LOCATION] --interactive, -i Interactively choose details about the project --cli Give the project a command line interface --init Initialize an existing project
manual

hatch.pypa.io

Before it fills your prompt, Otty checks the installed hatch against its version. A form that does not match your version is not offered.