Skip to main content

A simple tool to manage aliases in pyproject.toml

Project description

pyproject_aliases 0.2.0

A simple tool to manage aliases in pyproject.toml

Installation

pip install pyproject_aliases

Usage

The tool reads alias definitions from your pyproject.toml file and allows you to run them via the uv run alias command. Simply add or modify the aliases in the [tool.aliases] section, and then invoke an alias from the command line.

For example, to add an alias for pre-commit checks and pytests, update your pyproject.toml:

[tool.aliases]
check = "uv run pre-commit run --all-files"
test = "uv run pytest"

Then run:

$ uv run alias check
...
$ uv run alias
You must choose one of the available aliases:
  check (uv run pre-commit run --all-files)
  test (uv run pytest)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pyproject_aliases-0.2.0.tar.gz (45.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pyproject_aliases-0.2.0-py3-none-any.whl (3.2 kB view details)

Uploaded Python 3

File details

Details for the file pyproject_aliases-0.2.0.tar.gz.

File metadata

  • Download URL: pyproject_aliases-0.2.0.tar.gz
  • Upload date:
  • Size: 45.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.6.10

File hashes

Hashes for pyproject_aliases-0.2.0.tar.gz
Algorithm Hash digest
SHA256 5c10a3ea7ffd3c23a11b499c0d320a7306575066cc99bdfe10bf3dd4242d4bed
MD5 87d84137fbb5a10dec0d76f6ea2e27d1
BLAKE2b-256 ba0946de7e5af043c922d4d03093adfea5c0e85a2bdc5c478a3f925b4a11aa23

See more details on using hashes here.

File details

Details for the file pyproject_aliases-0.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for pyproject_aliases-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5f7dd5172e608e3d9e3ced9f91b9902f21774a6f612e3bbaf90aa42979bdbe30
MD5 fd1067eced021aa69187c63b1840c3ae
BLAKE2b-256 7655fff0b2a0e8c0ee4e5e0fd03c256bd69aa06b745d30819d8571145e392339

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page