{"repo":"iapyeh/sshscript","free":true,"listed":false,"github":"https://github.com/iapyeh/sshscript","clone":"git clone https://github.com/iapyeh/sshscript.git","description":"System Automation in Python","language":"Python","stars":31,"topics":["automation","linux","pip","python3","shell-script"],"license":"MIT","category":"workflow-automation","readme_excerpt":"SSHScript SSHScript is a Python library for system automation. It provides one API for running commands locally, connecting to remote hosts over SSH, traversing nested SSH connections, changing execution identity, interacting with console programs, and transferring files. SSHScript v3 is designed to be used primarily as a regular Python module. The optional Dollar syntax remains available for concise .spy automation files. Documentation The current documentation is the SSHScript v3 Documentation. Installation Upgrade an existing installation: Check the installed version: Module API Execute a local command Session.exec command() returns (stdout, stderr) . The latest result is also available through session.stdout , session.stderr , and session.exitcode . The command must be a string. Use shell=False when direct execution must be explicit: String commands use quote-aware automatic shell detection. Pipelines, redirection, expansion, assignments, and logical operators automatically select a shell: Use shell=False or shell=True when the execution mode must be explicit. Use shell=\"bash\" to select a particular shell. Connect to a remote host Session.connect() returns a connected session. Commands inside its context run on that host: SSHScript also supports nested connections: Authentication options such as password , port , pkey , and pkey path can be passed to connect() . Prefer SSH agents, managed keys, or a secret manager instead of hard-coding credentials. Privilege changes Use ","default_branch":null,"files":null,"tree":[],"storefront":"/r/iapyeh","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/iapyeh/sshscript/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}