# Hatch

> Python project manager covering builds, environments, Python distributions, testing, static analysis, version management, and publishing to PyPI.

Stars: 7.3k · Language: Python · License: MIT · Categories: Dev Tools

- Repository: https://github.com/pypa/hatch
- Website: https://hatch.pypa.io/latest/
- Page: https://www.trmn.sh/tools/hatch

## Overview

Hatch is a Python project manager maintained under the PyPA organization. It handles the project lifecycle from a single CLI: generating projects from templates, managing versions, building packages, running tests, and publishing to PyPI or other package indices.

Its build system is standardized and produces reproducible builds by default. Environment management supports custom scripts and can use UV. Hatch can also manage Python distributions, run Python scripts through a built-in script runner, execute tests following documented best practices, and run static analysis with default configurations.

Hatch is aimed at Python package authors and maintainers who want one tool for environments, builds, and releases. Full documentation is hosted at hatch.pypa.io.

## Alternatives

- [isort](https://www.trmn.sh/tools/isort.md): Python command line utility and library that sorts imports alphabetically and groups them into sections by type. (Python, 7.0k stars)
- [Grip](https://www.trmn.sh/tools/grip.md): Python command-line server that renders local Markdown readme files through the GitHub Markdown API, with live refresh and HTML export. (Python, 6.8k stars)
- [harlequin](https://www.trmn.sh/tools/harlequin.md): Terminal-based SQL IDE with database adapter support for DuckDB, SQLite, PostgreSQL, MySQL and dozens of other databases (Python, 6.5k stars)
- [Azure CLI](https://www.trmn.sh/tools/azure-cli.md): Microsoft's cross-platform command-line interface for managing Azure resources with az group/subgroup/command syntax, JMESPath queries, and tab completion. (Python, 4.7k stars)
- [tox](https://www.trmn.sh/tools/tox.md): Command-line virtual environment manager and test runner for Python that automates testing across environments and acts as a frontend to CI servers. (Python, 4.0k stars)

---

Canonical: https://www.trmn.sh/tools/hatch
