uv-sort
Sort uv's dependencies alphabetically
Decision gist · record as of 2026-08-14
Yes. Low install friction, active maintenance, no known vulnerabilities, and permissive licensing make it a safe choice. Install it if you use uv and want to enforce alphabetical dependency ordering in your projects—or use uvx to run it on demand without installation.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Low friction: pure Python wheel with only two runtime dependencies (tomlrt and typer).
- Actively maintained with a recent release; last commit on 2026-06-28.
License · maintenance · safety
permissive license (permissive) — MIT license (permissive); no restrictions on use, modification, or distribution.
last release 2026-06-27 (48 days) · last repo commit 2026-06-28 · 23 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 220,028 downloads/mo, #9,314 on PyPI
Alternatives
Verify before relying
pip install uv-sort
# Sort dependencies in pyproject.toml in current directory
uv-sort
# Or specify a path
uv-sort /path/to/pyproject.toml
# Check without modifying
uv-sort --checkWhat it is and what it does
uv-sort is a command-line tool that alphabetically sorts dependencies in uv project configuration files. It reads and rewrites pyproject.toml files to organize dependencies across multiple sections—dependency-groups, project.dependencies, project.optional-dependencies, tool.uv.dev-dependencies, and tool.uv.sources—into alphabetical order.
The tool runs as a standalone CLI and integrates with pre-commit and Lefthook workflows. It offers a --check flag to verify whether dependencies are already sorted, a --dry-run flag to preview changes without writing, and can be invoked directly or through uv's tools system (uvx) without installation. The package depends on tomlrt for TOML parsing and typer for CLI argument handling.
Use it for
- Enforce consistent dependency ordering in CI/CD pipelines using the --check flag to fail builds when dependencies are unsorted.
- Integrate into pre-commit hooks to automatically sort dependencies before commits are accepted.
- Standardize dependency organization across multiple uv-based projects without manual editing.
- Preview dependency sorting changes with --dry-run before applying them to pyproject.toml.
- Run as a one-off tool via uvx without installing it locally to sort a single project's dependencies.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes.
Low install friction, active maintenance, no known vulnerabilities, and permissive licensing make it a safe choice. Install it if you use uv and want to enforce alphabetical dependency ordering in your projects—or use uvx to run it on demand without installation.
Install
uv-sort on PyPI
Before you install
Low friction: pure Python wheel with only two runtime dependencies (tomlrt and typer). Actively maintained with a recent release; last commit on 2026-06-28.
License in practice
MIT license (permissive); no restrictions on use, modification, or distribution.
Quickstart
pip install uv-sort
# Sort dependencies in pyproject.toml in current directory
uv-sort
# Or specify a path
uv-sort /path/to/pyproject.toml
# Check without modifying
uv-sort --check
Package facts
| License | permissive license permissive |
| Python support | Supports the current Python release >=3.10 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 2 packagestomlrttyper |
| Maintenance | Actively maintained 48 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 220,028 / month, #9,314 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | License :: OSI Approved :: MIT LicenseProgramming Language :: PythonProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14 |
Evidence: uv_sort-0.7.1-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “sort uv dependencies”
- uv-sortAlphabetically sorts dependencies in uv's pyproject.toml…
- migrate-to-uvAutomates migration of Python projects from Poetry, Pipenv,…
- nox-uvnox-uv replaces nox's standard session decorator to install…
Give your agent the search over MCP, or paste the wish link into any chat.
More Build Tools packages
Provides reusable utilities for Python packaging interoperability, including version handling, specifiers, markers, requirements, tags, and metadata parsing according to standards like PEP 440 and PEP 425.
Wraps any iterable to display a real-time progress bar in the terminal or Jupyter notebook, showing iteration count, elapsed time, and estimated time remaining.
pip is the standard installer for Python packages, enabling you to download and install packages from the Python Package Index and other indexes into your Python environment.
Hatchling is a standards-compliant Python build backend that handles packaging, metadata, and distribution of Python projects when configured in a project's pyproject.toml file.
Generates Python gRPC service stubs and message classes from Protocol Buffer definitions, enabling developers to build gRPC clients and servers.
pre-commit is a framework for installing and running git hooks written in any language before commits are made, automating code quality and validation checks across multi-language projects.
Install it if your team needs consistent, automated validation at commit time.
See also dependency-groups · pyproject-fmt · liccheck · isort · sort-lines · pyproject2conda · creosote · uv-dynamic-versioning · toml-sort · nox-uv