poetry-aliases
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.
Release files for poetry-aliases 1.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| poetry_aliases-1.0.1.tar.gz | 3.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| poetry_aliases-1.0.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 8.7 kB
Release files / poetry_aliases-1.0.1.tar.gz
| Download URL | poetry_aliases-1.0.1.tar.gz |
|---|---|
| Size | 3.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
15652fcdf2b4a8e55b16bf4e86f1c1975090b8198edc7b87770418fbffb0c488
|
|
BLAKE2b-256 checksum How to use checksums |
0cc63bb1afa16b7926c6746c64df8904021d6bf581e9a3c4a45aec0fc1ba1e38
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.3.1 CPython/3.11.1 Linux/5.15.0-1031-azure
|
Release files / poetry_aliases-1.0.1-py3-none-any.whl
| Download URL | poetry_aliases-1.0.1-py3-none-any.whl |
|---|---|
| Size | 4.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
8d1958934190bc8d9a0b11970612bc8904e1308e9b25e960f36a7d1173431ade
|
|
BLAKE2b-256 checksum How to use checksums |
c7684f3e31744c7af39d2d286ee39ef97ff5138a62aa117b55b26b56e3006a00
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.3.1 CPython/3.11.1 Linux/5.15.0-1031-azure
|