Skip to main content

About

pymultissher is a simple CLI tool that runs commands on multiple servers over SSH.

Why "yet another" SSH tool?

There is already endless number of tools and utilities, which are able to run commands on a cluster of servers over SSH (e.g., ansible, fabric, paramiko, you-name-it). However, from time to time you just need a simple and straightforward CLI tool, which take a list of domains and runs a list of command on them over SSH and aggregates output. This is exactly what pymultissher is trying to accomplish.

P.S. SSH heavy-lifting is done by Paramiko

How it works?

The utility relies on two YAML configuration files to control its operations:

  • domains.yml: This file defines default SSH values and domain names. Each domain can have its own set of SSH parameters.
  • commands.yml: This file specifies the commands to be executed over SSH connections.

You can generate these initial configuration files using the init argument. The utility also allows using custom YAML configuration files to store domain information and commands.

Getting Started

  • Install
    pip install --upgrade pymultissher
    
  • Generate initial configuration files
    pymultissher init
    
  • Edit YAML configuration files according to needs
  • List available CLI parameters
    pymultissher --help
    
  • Running with --dry-run option, which will not executed any commands over SSH
    pymultissher run-command --command "whoiam" --dry-run
    
  • Utility could also be started as a Python module. Here is an example:
    python -m pymultissher --help
    

Usage: CLI

Output of the CLI command:

pymultissher --help

N.B. CLI could be also run as a Python module: python -m pymultissher --help

Documentation

Documentation

Contributing

Please, check CONTRIBUTING.rst

License

MIT

Download files

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

Source Distribution

pymultissher-0.4.1.tar.gz (72.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pymultissher-0.4.1-py3-none-any.whl (13.9 kB view details)

Uploaded Python 3

File details

Details for the file pymultissher-0.4.1.tar.gz.

File metadata

  • Download URL: pymultissher-0.4.1.tar.gz
  • Upload date:
  • Size: 72.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for pymultissher-0.4.1.tar.gz
Algorithm Hash digest
SHA256 00a2f40472bd30a21a1eca1e07aeec7a853fa3256d766d02874999849f110459
MD5 01f19f3eff2f43fa15fb80594a44e42b
BLAKE2b-256 afe3fc8059872de3ea1349c33e91017c2d083a9f0fbd1513221e928c6a53b34e

See more details on using hashes here.

Provenance

The following attestation bundles were made for pymultissher-0.4.1.tar.gz:

Publisher: publish-to-pypi.yml on vdmitriyev/pymultissher

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pymultissher-0.4.1-py3-none-any.whl.

File metadata

  • Download URL: pymultissher-0.4.1-py3-none-any.whl
  • Upload date:
  • Size: 13.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for pymultissher-0.4.1-py3-none-any.whl
Algorithm Hash digest
SHA256 22658b8b0c89bdd74f03f224b587a8f94a79ca068563219cb02ecb7c835e8ed0
MD5 99fce230a6166f423d9e0d8bf022353d
BLAKE2b-256 76376485e8db06e0adc27ed7a85d47ab28ddcc9d6dbe5659e7cc52b882d72af7

See more details on using hashes here.

Provenance

The following attestation bundles were made for pymultissher-0.4.1-py3-none-any.whl:

Publisher: publish-to-pypi.yml on vdmitriyev/pymultissher

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page