mocksftp
Mock SFTP server for testing purposes
Decision gist · record as of 2026-08-14
Yes, if your SFTP testing needs are straightforward and you can verify the package works with your Python version and current paramiko release. The low install friction and permissive license make it reasonable for test fixtures. However, the abandoned status (no updates since 2018-03-21) means you should test compatibility first and be prepared to maintain a fork if critical issues arise.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires paramiko as a runtime dependency; test framework integration requires compatible test harness.
- Low install friction with a single runtime dependency (paramiko).
- However, the project is abandoned—last release was 2018-03-21 with no commits since then.
License · maintenance · safety
MIT (permissive) — MIT license is permissive; you can use this package freely in commercial and open-source projects with minimal restrictions.
last release 2018-03-21 (3068 days) · last repo commit 2018-03-21 · 2 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 85,647 downloads/mo, #13,909 on PyPI
Alternatives
Verify before relying
pip install mocksftp
from contextlib import closing
def test_sftp(sftp_server, sftp_client):
sftp = sftp_client.open_sftp()
assert sftp.listdir('.') == []- Whether the package works with modern Python versions (requires_python is unspecified).
- Compatibility with recent versions of paramiko and whether breaking changes have occurred since 2018.
- Whether the frozen codebase handles edge cases or security concerns in SFTP that have emerged since abandonment.
What it is and what it does
mocksftp is a testing utility that spins up an in-process SFTP server for testing SFTP client code. It provides fixtures that let you write tests interacting with a real SFTP protocol implementation without needing a separate server process. The server runs in the same process as your test, making it fast and easy to set up and tear down.
The package depends on paramiko for SFTP protocol handling. It was forked from mock-ssh-server but stripped down to focus solely on SFTP. The project is no longer maintained; the last release was 2018-03-21. It works well for straightforward SFTP testing scenarios, but you should verify that it handles your specific use cases and plays nicely with your current Python and dependency versions.
Use it for
- Test SFTP upload and download operations without spinning up a real server.
- Verify SFTP directory listing and file operations in unit tests.
- Validate error handling in SFTP client code by simulating server-side file states.
- Run SFTP tests in CI/CD pipelines without external server dependencies.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if your SFTP testing needs are straightforward and you can verify the package works with your Python version and current paramiko release.
The low install friction and permissive license make it reasonable for test fixtures. However, the abandoned status (no updates since 2018-03-21) means you should test compatibility first and be prepared to maintain a fork if critical issues arise.
Install
mocksftp on PyPI
Before you install
Low install friction with a single runtime dependency (paramiko). However, the project is abandoned—last release was 2018-03-21 with no commits since then. Use only if the frozen feature set meets your needs.
Requires paramiko as a runtime dependency; test framework integration requires compatible test harness.
License in practice
MIT license is permissive; you can use this package freely in commercial and open-source projects with minimal restrictions.
Quickstart
pip install mocksftp
from contextlib import closing
def test_sftp(sftp_server, sftp_client):
sftp = sftp_client.open_sftp()
assert sftp.listdir('.') == []
Verify before relying
- Whether the package works with modern Python versions (requires_python is unspecified).
- Compatibility with recent versions of paramiko and whether breaking changes have occurred since 2018.
- Whether the frozen codebase handles edge cases or security concerns in SFTP that have emerged since abandonment.
Package facts
| License | MIT permissive |
| Python support | Not specified |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 1 packageparamiko |
| Maintenance | Abandoned 3,068 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 85,647 / month, #13,909 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Intended Audience :: DevelopersLicense :: OSI Approved :: MIT License |
Evidence: mocksftp-1.0.1-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 › “sftp server testing”
- mocksftpProvides an in-process SFTP server for testing SFTP client code, with…
- sftpserverProvides a simple single-threaded SFTP server built on Paramiko for…
- pytest-sftpserverA pytest plugin that provides a fixture for testing SFTP client code…
Give your agent the search over MCP, or paste the wish link into any chat.
More Testing packages
Pluggy provides a plugin system that lets you define hook specifications and register implementations to be called in sequence, enabling extensible Python applications without tight coupling.
Install it if you're building an extensible application or framework.
pytest is a testing framework that lets you write test functions using plain assert statements and automatically discovers and runs them, with detailed failure reporting.
virtualenv creates isolated Python environments where packages can be installed independently without affecting the system Python or other projects.
Coverage.py measures which lines of Python code are executed during test runs, reporting coverage percentages and identifying untested code paths.
Install it if you want to measure test completeness or enforce coverage thresholds in your project.
pytest-asyncio is a pytest plugin that enables writing and running async test functions using the asyncio library, allowing developers to await code directly within test cases.
Install it if you write tests for any asyncio-based code.
A pytest plugin that generates test reports in Common Test Report Format (CTRF) as JSON, compatible with pytest-xdist and pytest-playwright for distributed and browser-based testing.
Install it if you need CTRF-formatted test output for CI/CD integration or cross-tool reporting.
See also pytest-sftpserver · mock-ssh-server · sftpserver · sshfs · pytest-mock-resources · pysftp · pytest-httpbin · sftpretty · grpcio-testing