Mock for paramiko library
Project description
Paramiko Mock
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.
License
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
163ee2e33ded6e29d2769205ebcb7cefc29b156fe7250a90283f41942f40a0d0
|
|
| MD5 |
c7aa5ab23c7c685de7d7e6f963c43535
|
|
| BLAKE2b-256 |
5ff2157ff89df5b7371378188bf6ed6ad7c13d93c79a6e3971bae55344a619dd
|
Provenance
The following attestation bundles were made for paramiko_mock-2.0.1.tar.gz:
Publisher:
python-publish.yml on ghhwer/paramiko-ssh-mock
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
paramiko_mock-2.0.1.tar.gz -
Subject digest:
163ee2e33ded6e29d2769205ebcb7cefc29b156fe7250a90283f41942f40a0d0 - Sigstore transparency entry: 747471375
- Sigstore integration time:
-
Permalink:
ghhwer/paramiko-ssh-mock@2feaba0dd7510c168fc53ce6030f2ff262644d7e -
Branch / Tag:
refs/tags/2.0.1 - Owner: https://github.com/ghhwer
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@2feaba0dd7510c168fc53ce6030f2ff262644d7e -
Trigger Event:
release
-
Statement type:
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ea496f6e61549f89bb37c7d48b63843d675b41e6ad8ea80865c5b085f3ccdc85
|
|
| MD5 |
1cc3cfde220279092c4b801eef1aa9dd
|
|
| BLAKE2b-256 |
035f47420a9cd5fdb15b216ebb45afb3eb84fd38a32b68a56367ef348b91eab1
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
paramiko_mock-2.0.1-py3-none-any.whl -
Subject digest:
ea496f6e61549f89bb37c7d48b63843d675b41e6ad8ea80865c5b085f3ccdc85 - Sigstore transparency entry: 747471377
- Sigstore integration time:
-
Permalink:
ghhwer/paramiko-ssh-mock@2feaba0dd7510c168fc53ce6030f2ff262644d7e -
Branch / Tag:
refs/tags/2.0.1 - Owner: https://github.com/ghhwer
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@2feaba0dd7510c168fc53ce6030f2ff262644d7e -
Trigger Event:
release
-
Statement type: