Wikimedia ssh wrapper to expand host names
Project description
wm-ssh
Ssh wrapper to expand wikimedia hostnames.
Currently it will try several sources, heavily using caches:
- Known working entries
- Netbox (https://netbox.wikimedia.org)
- Openstack Browser (https://openstack-browser.toolforge.org)
NOTE: The netbox feature needs you to have a token for netbox.wikimedia.org, see: https://netbox.wikimedia.org/user/api-tokens/
Installation
pip
Just pip install wm-ssh
, that should bring in a new binary, wm-ssh.
Running from code
Note that this mode will require some tweaks in the auto-completing for it to work.
Clone the code:
git clone git@github.com:david-caro/wm-ssh.git
Install dependencies with poetry:
poetry install
Run with poetry:
poetry run wm-ssh <MYHOST>
Bash completion
You can use the wm-ssh.complete file (source it from your bashrc for example) to achieve bash completion features, though they only work with wmcs openstack instances and known hosts.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file wm-ssh-0.2.1.tar.gz
.
File metadata
- Download URL: wm-ssh-0.2.1.tar.gz
- Upload date:
- Size: 17.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.12 CPython/3.10.4 Linux/5.17.0-1-amd64
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9b3c843326edb895633c242edc6074f1a922f83e904270e17900a70b5760047c |
|
MD5 | 3b6510402978e92e13979cd4787aa3d5 |
|
BLAKE2b-256 | 7a9ec3eecce4aced351b30383223f26515dbdf6ade60b97891da2b06896e373b |
File details
Details for the file wm_ssh-0.2.1-py3-none-any.whl
.
File metadata
- Download URL: wm_ssh-0.2.1-py3-none-any.whl
- Upload date:
- Size: 17.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.12 CPython/3.10.4 Linux/5.17.0-1-amd64
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 233abbbc52d591d84f5dd1c74bb4d56db34189f5388630a4c8e5772d97cc5953 |
|
MD5 | 56be03724c38b8669f749c5ec52b6e25 |
|
BLAKE2b-256 | 52e57af1dc794d9d26d6257912cdb4b3c8972347bebcb3cb7eb6592c5958046a |