How marketsquare/sshlibrary works
SSHLibrary is a Robot Framework library whose keywords open and manage SSH connections, then perform remote command execution, interactive-shell I/O, and SFTP/SCP transfers. The map separates that keyword API from connection, configuration, and logging support, and includes local port forwarding. The README establishes the product capabilities; source excerpts show representative command, transfer, configuration, and forwarding behavior. Some implementation details are unsampled, so only documented or indexed relationships are shown.
Main entry points: library.py Keyword API · client.py SSH Client · pythonforward.py Port Forwarding · config.py Configuration
Components 14
Robot Keywords
- Keyword API
src/SSHLibrary/library.py
SSH Sessions
- SSH Client
src/SSHLibrary/client.py - Interactive Shell
src/SSHLibrary/client.py - Remote Commands
src/SSHLibrary/client.py - Port Forwarding
src/SSHLibrary/pythonforward.py
File Transfer
- SFTP Operations
src/SSHLibrary/client.py - SCP Operations
src/SSHLibrary/client.py
Runtime Support
- Configuration
src/SSHLibrary/config.py - Connection Cache
src/SSHLibrary/sshconnectioncache.py - Logging
src/SSHLibrary/logger.py - Version
src/SSHLibrary/version.py
Other components
- Robot Framework
- Remote Host
- Local Filesystem
Connections 21
- Robot Framework → Keyword API: invokes keywords
README.rst - Keyword API → SSH Client: dispatches operations
src/SSHLibrary/library.py - Keyword API → Connection Cache: uses connections
src/SSHLibrary/library.py - Keyword API → Configuration: configures defaults
src/SSHLibrary/library.py - Keyword API → Logging: logs activity
src/SSHLibrary/library.py - SSH Client → Configuration: reads settings
src/SSHLibrary/client.py - SSH Client → Interactive Shell: provides shell I/O
src/SSHLibrary/client.py - Keyword API → Remote Commands: starts and reads
src/SSHLibrary/library.py - SSH Client → Remote Commands: executes commands
README.rst - Keyword API → SFTP Operations: dispatches transfers
src/SSHLibrary/library.py - SSH Client → SFTP Operations: opens SFTP
src/SSHLibrary/client.py - Keyword API → SCP Operations: selects SCP transfers
src/SSHLibrary/library.py - SSH Client → SCP Operations: creates SCP client
src/SSHLibrary/client.py - SSH Client → Port Forwarding: uses forwarding
src/SSHLibrary/client.py - Interactive Shell → Remote Host: reads and writes
README.rst - Remote Commands → Remote Host: runs commands
README.rst - SFTP Operations → Remote Host: transfers files
README.rst - SCP Operations → Remote Host: transfers files
src/SSHLibrary/client.py - SFTP Operations → Local Filesystem: reads and writes
src/SSHLibrary/client.py - SCP Operations → Local Filesystem: reads and writes
src/SSHLibrary/client.py - Port Forwarding → Remote Host: forwards traffic
src/SSHLibrary/pythonforward.py