azure-interactive-shortcuts-0.1.0
توضیحات
Helpful tools for using Azure resources interactively at the command line
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | azure-interactive-shortcuts-0.1.0 |
| نام | azure-interactive-shortcuts |
| نسخه کتابخانه | 0.1.0 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Aatif Syed |
| ایمیل نویسنده | aatifsyedyp@gmail.com |
| آدرس صفحه اصلی | https://github.com/aatifsyed/azure-interactive-shortcuts |
| آدرس اینترنتی | https://pypi.org/project/azure-interactive-shortcuts/ |
| مجوز | MIT |
# Shortcuts for interacting with Azure resources
## Usage
### Print a VM IP after fuzzy searching
```
$ azure-interactive-shortcuts public-vm-ip
⠙ Collecting IP addresses from all VMs using Azure CLI
```
```
$ azure-interactive-shortcuts public-vm-ip
azis public-vm-ip
[19:12:24] Found 180 virtual machines, and 96 public ip _public_vm_ip.py:76
addresses
4 ip addresses have the same name, and have _public_vm_ip.py:85
been discarded
Select an IP address:
aatifs-cool-vm1-ip1 Resource group: my-rg1, VMs: aatifs-cool-VM1...
aatifs-cool-vm1-ip2 Resource group: my-rg1, VMs: aatifs-cool-VM1...
aatifs-cool-vm2-ip3 Resource group: my-rg2, VMs: aatifs-cool-VM2...
aatifs-cool-vm2-ip4 Resource group: my-rg2, VMs: aatifs-cool-VM2...
```
This allows you to have quick one-liners:
```bash
ssh azureuser@"$(azis public-vm-ip)"
```
## Installation
Recommended installation is with [pipx](https://github.com/pypa/pipx):
```bash
python3 -m pip install --user pipx
python3 -m pipx ensurepath
python3 -m pipx install azure-interactive-shortcuts
```
### Autocompletion
Autocompletion is done with [argcomplete](https://github.com/kislyuk/argcomplete)
```bash
pipx install --force argcomplete
# ~/.bashrc
eval "$(register-python-argcomplete azis)"
eval "$(register-python-argcomplete azure-interactive-shortcuts)"
```
نیازمندی
| مقدار | نام |
|---|---|
| >=2.0.0,<3.0.0 | argcomplete |
| >=0.1.6,<0.2.0 | logging-actions |
| >=11.0.0,<12.0.0 | rich |
| >=0.5.6,<0.6.0 | dataclasses-json |
| >=3.0.24,<4.0.0 | prompt-toolkit |
| >=0.18.0,<0.19.0 | returns |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.8,<4.0 | Python |
نحوه نصب
نصب پکیج whl azure-interactive-shortcuts-0.1.0:
pip install azure-interactive-shortcuts-0.1.0.whl
نصب پکیج tar.gz azure-interactive-shortcuts-0.1.0:
pip install azure-interactive-shortcuts-0.1.0.tar.gz