Usage:
pypsh hostregex cmd
E.g.:
pypsh "role\d+\.customer\.your\.domain" "uptime"
This matches every host in the known_hosts file against the regex and executes the command.
Installation
Pypsh can be installed using pip:
pip install pypsh
Development
To work on pypsh checkout the git repository, create a virtual environment and install the dependencies:
git clone https://github.com/mfussenegger/pypsh.git cd pypsh mkvirtualenv pypsh pip install -r requirements.txt
Sometimes it is useful to point the pypsh command to the local development branch:
pip install --upgrade --force-reinstall --editable .
But usually it is sufficient to invoke it like this:
python pypsh/main.py
Metadata
Release files for pypsh 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| pypsh-0.2.0.tar.gz | 2.6 kB | Details |
Release files / pypsh-0.2.0.tar.gz
| Download URL | pypsh-0.2.0.tar.gz |
|---|---|
| Size | 2.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ae6ffea5c33de8a30c9368b4dc17ea7876fabf9aa4c87bbcaf374df9eaa48acb
|
|
BLAKE2b-256 checksum How to use checksums |
271ea3133fcaf43187660bf825af81718a9b01753f94d075b9ce13d823d3b0c7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |