Skip to main content

Mock for paramiko library

Project description

Paramiko Mock

Coverage

Paramiko Mock is a Python library for mocking the paramiko SSH client for testing purposes. It allows you to define responses for specific SSH commands and hosts, making it easier to test code that interacts with remote servers via SSH.

Version 2.0.0 🚀

We are excited to announce that Paramiko Mock has reached version 2.0.0! 🎉 For more detailed documentation, please visit our Read the Docs page.

Installation

Using UV (Recommended)

# Install UV first (if you haven't already)
curl -LsSf https://astral.sh/uv/install.sh | sh

# Install the package
uv add paramiko-mock

# Or install from source
uv sync

Using pip

pip install paramiko-mock

Development Installation

# Clone the repository
git clone https://github.com/ghhwer/paramiko-ssh-mock.git
cd paramiko-ssh-mock

# Install with UV (recommended)
uv sync --dev

# Or with pip
pip install -e .

Usage

Here are some examples of how to use paramiko_mock:

Advanced usage is available here and under the /examples folder.

Contributing

Contributions are welcome. Please work on filing an issue before submitting a pull request, so that we can discuss the changes you would like to make.

Github

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

paramiko_mock-2.0.1.tar.gz (86.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

paramiko_mock-2.0.1-py3-none-any.whl (13.4 kB view details)

Uploaded Python 3

File details

Details for the file paramiko_mock-2.0.1.tar.gz.

File metadata

  • Download URL: paramiko_mock-2.0.1.tar.gz
  • Upload date:
  • Size: 86.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for paramiko_mock-2.0.1.tar.gz
Algorithm Hash digest
SHA256 163ee2e33ded6e29d2769205ebcb7cefc29b156fe7250a90283f41942f40a0d0
MD5 c7aa5ab23c7c685de7d7e6f963c43535
BLAKE2b-256 5ff2157ff89df5b7371378188bf6ed6ad7c13d93c79a6e3971bae55344a619dd

See more details on using hashes here.

Provenance

The following attestation bundles were made for paramiko_mock-2.0.1.tar.gz:

Publisher: python-publish.yml on ghhwer/paramiko-ssh-mock

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file paramiko_mock-2.0.1-py3-none-any.whl.

File metadata

  • Download URL: paramiko_mock-2.0.1-py3-none-any.whl
  • Upload date:
  • Size: 13.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for paramiko_mock-2.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 ea496f6e61549f89bb37c7d48b63843d675b41e6ad8ea80865c5b085f3ccdc85
MD5 1cc3cfde220279092c4b801eef1aa9dd
BLAKE2b-256 035f47420a9cd5fdb15b216ebb45afb3eb84fd38a32b68a56367ef348b91eab1

See more details on using hashes here.

Provenance

The following attestation bundles were made for paramiko_mock-2.0.1-py3-none-any.whl:

Publisher: python-publish.yml on ghhwer/paramiko-ssh-mock

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page