Skip to main content

No project description provided

Project description

poetry-aliases

PyPI - Python Version PyPI GitHub release (latest SemVer) PyPI - License Code style: black

poetry-aliases is a Poetry plugin that enables the creation of aliases for Poetry commands.

Installation

poetry self add poetry-aliases

Usage

First, add aliases via poetry aliases.

poetry aliases

poetry aliases will open a file in $EDITOR where you can view, add, and edit your aliases.

# Write each alias on a separate line, e.g.:

# i = "install"
# r = "remove"
# dev = "add --group dev"
# plugins = "self show plugins"

# Aliases that are not strings or conflict with other Poetry commands will be ignored.

# Save this file and close the editor when you're done.

i = "install"
r = "remove"
dev = "add --group dev"
plugins = "self show plugins"

Your aliases will be saved to Poetry's config.toml file.

Once your aliases have been saved, you can use them like any other Poetry command.

poetry i

# Installing dependencies from lock file

poetry r yapf

# Package operations: 0 installs, 0 updates, 1 removal

#  • Removing yapf (0.32.0)


poetry dev black

# Package operations: 3 installs, 0 updates, 0 removals

#  • Installing mypy-extensions (0.4.3)
#  • Installing pathspec (0.11.0)
#  • Installing black (23.1.0)


poetry plugins

#  • poetry-aliases (1.0.0) Create aliases for Poetry commands
#      1 application plugin
#
#      Dependencies
#        - click (>=8.1.3,<9.0.0)
#        - poetry (>=1.3.2,<2.0.0)

License

poetry-aliases is licensed under the MIT License.

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

poetry_aliases-1.0.0.tar.gz (3.9 kB view details)

Uploaded Source

Built Distribution

poetry_aliases-1.0.0-py3-none-any.whl (4.7 kB view details)

Uploaded Python 3

File details

Details for the file poetry_aliases-1.0.0.tar.gz.

File metadata

  • Download URL: poetry_aliases-1.0.0.tar.gz
  • Upload date:
  • Size: 3.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.3.1 CPython/3.11.1 Linux/5.15.0-1031-azure

File hashes

Hashes for poetry_aliases-1.0.0.tar.gz
Algorithm Hash digest
SHA256 1c04c6554141d841fbe33753f68ceba918f369ad1cf6d5e708cd8d5a7c114fde
MD5 7de735f826477a36caf02d0f6498aec0
BLAKE2b-256 e6ba4ed71f63e42b043fcba728c336e8309aabbd59e52787c2f647e36a8b7fc1

See more details on using hashes here.

File details

Details for the file poetry_aliases-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: poetry_aliases-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 4.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.3.1 CPython/3.11.1 Linux/5.15.0-1031-azure

File hashes

Hashes for poetry_aliases-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8e5eb6fdf54f57afdbb188c9227859fa64989eee608adf51e97bb55768f9a783
MD5 a8ccc8dc15a81c1cc0a16d6475debae0
BLAKE2b-256 9329b9123e1a89ec4ff10c0dce9cd59bfbd884921b48a22dfcb41a4658dc9395

See more details on using hashes here.

Supported by

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