{"categories":[{"label":"Internet","url":"https://skillfed.io/packages/category/internet/5"}],"enrichment":{"capability":"Provides a unified Python interface to run shell commands and manipulate files either locally or over SSH, using the same API for both contexts.","skillfed_tags":["ssh-automation","shell-abstraction","remote-execution"],"use_cases":["Write deployment or configuration management scripts that run the same commands on local and remote machines without conditional logic.","Copy files between local and remote systems over SSH using a file-like interface similar to Python's open().","Spawn long-running processes on remote servers and poll their status or interact with their stdin/stdout asynchronously.","Execute commands in a specific working directory or with custom environment variables on either local or remote shells.","Automate system administration tasks that need to work across heterogeneous environments (local, Linux servers, embedded systems with minimal shells)."],"what_it_does":"Spur is a Python library that abstracts local shell execution and remote SSH command execution behind a single, consistent interface. You create either a LocalShell or SshShell object, then call the same methods (run, spawn, open) on either one to execute commands or manipulate files. The run method executes a command synchronously and returns an ExecutionResult with output and return code; spawn returns a process object for asynchronous control. File operations use a context-manager pattern similar to Python's built-in open.\n\nThe library handles SSH authentication via password or private key, supports custom ports and timeouts, and allows passing socket-like objects for proxy scenarios. It depends on paramiko for SSH transport. The package targets developers who need to write scripts that work identically whether running locally or remotely, avoiding code duplication and conditional branching around shell execution.","worth_installing":"Yes, if you need a simple unified interface for local and SSH command execution and can accept the maintenance risk. The package is abandoned (last release 2023-03-11, no commits since), so it will not receive security updates or compatibility fixes for future Python or paramiko versions. It remains functional for stable, non-security-critical automation tasks, but consider maintained alternatives for production systems or security-sensitive deployments."},"id":"spur","links":{"html":"https://skillfed.io/packages/spur","md":"https://skillfed.io/packages/spur.md","pypi":"https://pypi.org/project/spur/"},"maintenance":{"status":"abandoned"},"meta":{"latest_release":"2023-03-11","license_spdx":null,"license_treatment":"permissive","name":"spur","python_support":"supports_current","summary":"Run commands and manipulate files locally or over SSH using the same interface"},"popularity":{"monthly_downloads":98444,"position":13083,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"0.3.23"}
