spur
Run commands and manipulate files locally or over SSH using the same interface
Decision gist · record as of 2026-08-14
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.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires paramiko as a runtime dependency for SSH functionality; SSH authentication requires valid credentials or private key access to the target host.
- Low install friction with a pure-Python wheel.
- However, the package is abandoned as of 2023-03-11 with no recent maintenance, so security updates and compatibility fixes are unlikely to arrive.
License · maintenance · safety
BSD-2-Clause (permissive) — BSD-2-Clause is permissive and poses no significant licensing constraints for most use cases.
last release 2023-03-11 (1252 days) · last repo commit 2023-03-11 · 272 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 98,444 downloads/mo, #13,083 on PyPI
Alternatives
Verify before relying
import spur
# Local execution
shell = spur.LocalShell()
result = shell.run(["echo", "-n", "hello"])
print(result.output)
# SSH execution
shell = spur.SshShell(hostname="localhost", username="bob", password="password1")
with shell:
result = shell.run(["echo", "-n", "hello"])
print(result.output)- Whether the package remains compatible with current versions of paramiko and modern SSH server configurations.
- Whether the minimal shell type (spur.ssh.ShellTypes.minimal) works reliably on embedded systems it targets.
- Current state of the GitHub repository and whether community forks or maintained alternatives have superseded this package.
What it is and 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.
The 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.
Use it for
- 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).
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
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.
Install
spur on PyPI
Before you install
Low install friction with a pure-Python wheel. However, the package is abandoned as of 2023-03-11 with no recent maintenance, so security updates and compatibility fixes are unlikely to arrive.
Requires paramiko as a runtime dependency for SSH functionality; SSH authentication requires valid credentials or private key access to the target host.
License in practice
BSD-2-Clause is permissive and poses no significant licensing constraints for most use cases.
Quickstart
import spur
# Local execution
shell = spur.LocalShell()
result = shell.run(["echo", "-n", "hello"])
print(result.output)
# SSH execution
shell = spur.SshShell(hostname="localhost", username="bob", password="password1")
with shell:
result = shell.run(["echo", "-n", "hello"])
print(result.output)
Verify before relying
- Whether the package remains compatible with current versions of paramiko and modern SSH server configurations.
- Whether the minimal shell type (spur.ssh.ShellTypes.minimal) works reliably on embedded systems it targets.
- Current state of the GitHub repository and whether community forks or maintained alternatives have superseded this package.
Package facts
| License | BSD-2-Clause permissive |
| Python support | Supports the current Python release >=3.6 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 1 packageparamiko |
| Maintenance | Abandoned 1,252 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 98,444 / month, #13,083 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 4 - BetaIntended Audience :: DevelopersLicense :: OSI Approved :: BSD LicenseProgramming Language :: PythonProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.6Programming Language :: Python :: 3.7Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9Topic :: Internet |
Evidence: spur-0.3.23-py2.py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “ssh command execution python”
- spurProvides a unified Python interface to run shell commands and…
- fabricFabric executes shell commands remotely over SSH and returns results…
- Fabric3Fabric3 is a Python 2.7 and 3.4+ compatible fork of Fabric that…
Give your agent the search over MCP, or paste the wish link into any chat.
More Internet packages
Botocore provides low-level, data-driven access to Amazon Web Services APIs, serving as the foundation for the AWS CLI and boto3 libraries.
Install it if you need programmatic access to AWS services.
Provides an async client for AWS services using botocore and aiohttp, allowing you to call AWS APIs asynchronously within asyncio-based applications.
Install it if you need to call AWS services from async Python code; it is the standard way to do so.
Pydantic validates Python data structures against type hints, coercing and checking input at runtime to ensure it matches a declared schema.
Provides a platform-independent file locking mechanism to coordinate access to files across processes and threads.
FastAPI is a Python web framework for building REST APIs using type hints, with automatic request validation, serialization, and interactive API documentation.
Provides common Protocol Buffer message definitions used across Google Cloud APIs, enabling Python clients to interact with Google services.
See also paramiko-expect · pyinfra · scripttest · fabric · EasyProcess · fabric2 · bash · fs.sshfs · subprocrunner · jumpssh