Skip to main content

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.3.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pypsh 0.3.0
File Size Uploaded
pypsh-0.3.0.tar.gz 2.6 kB Details

Release files / pypsh-0.3.0.tar.gz

Download URL pypsh-0.3.0.tar.gz
Size 2.6 kB
Tags Source
SHA-256 checksum
How to use checksums
ae2096e24bfe0ea894bc7af735cd80626c27e86ca2b08d8daa9975418bb9da7a
BLAKE2b-256 checksum
How to use checksums
62ed4580ae5cf0fb44a77f26f86b50fb766dbf77d81f6cf8322aa130ff6d8079
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

0.7.3

1 release file

0.7.2

2 release files

0.7.1

1 release file

0.7.0

1 release file

0.6.0

1 release file

0.5.0

1 release file

0.4.0

1 release file

This release

0.3.0 This release

1 release file

0.2.0

1 release file

0.1.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page