Skip to main content

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:

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


Download files

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

Source Distribution

wm-ssh-0.2.1.tar.gz (17.3 kB view details)

Uploaded Source

Built Distribution

wm_ssh-0.2.1-py3-none-any.whl (17.4 kB view details)

Uploaded Python 3

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

Hashes for wm-ssh-0.2.1.tar.gz
Algorithm Hash digest
SHA256 9b3c843326edb895633c242edc6074f1a922f83e904270e17900a70b5760047c
MD5 3b6510402978e92e13979cd4787aa3d5
BLAKE2b-256 7a9ec3eecce4aced351b30383223f26515dbdf6ade60b97891da2b06896e373b

See more details on using hashes here.

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

Hashes for wm_ssh-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 233abbbc52d591d84f5dd1c74bb4d56db34189f5388630a4c8e5772d97cc5953
MD5 56be03724c38b8669f749c5ec52b6e25
BLAKE2b-256 52e57af1dc794d9d26d6257912cdb4b3c8972347bebcb3cb7eb6592c5958046a

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