scrapli-replay


Namescrapli-replay JSON
Version 2024.1.30 PyPI version JSON
download
home_page
SummaryTools to enable easy testing of scrapli programs
upload_time2024-01-29 02:26:52
maintainer
docs_urlNone
author
requires_python>=3.8
licenseMIT License Copyright (c) 2021 Carl Montanari Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
keywords arista automation cisco eos iosxe iosxr juniper junos netconf network nxos ssh telnet
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            [![Supported Versions](https://img.shields.io/pypi/pyversions/scrapli-replay.svg)](https://pypi.org/project/scrapli-replay)
[![PyPI version](https://badge.fury.io/py/scrapli-replay.svg)](https://badge.fury.io/py/scrapli-replay)
[![Weekly Build](https://github.com/scrapli/scrapli_replay/workflows/Weekly%20Build/badge.svg)](https://github.com/scrapli/scrapli_replay/workflows/Weekly%20Build)
[![Code Style](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/ambv/black)
[![License: MIT](https://img.shields.io/badge/License-MIT-blueviolet.svg)](https://opensource.org/licenses/MIT)

scrapli_replay
==============

---

**Documentation**: <a href="https://scrapli.github.io/scrapli_replay" target="_blank">https://scrapli.github.io/scrapli_replay</a>

**Source Code**: <a href="https://github.com/scrapli/scrapli_replay" target="_blank">https://github.com/scrapli/scrapli_replay</a>

**Examples**: <a href="https://github.com/scrapli/scrapli_replay/tree/main/examples/simple_test_case" target="_blank">https://github.com/scrapli/scrapli_replay/tree/main/examples/simple_test_case</a>

---

scrapli_replay: Tools to enable easy testing of scrapli programs and to create semi-interactive SSH servers that 
look and feel like "real" network devices!


#### Key Features:

- __Easy__: Easily test scrapli code with Pytest, or create mock SSH servers to play with!
- __Pytest__: Love scrapli and Pytest? Want to test your code that contains scrapli components, but can't test 
  against real devices in your CI? scrapli_replay is a Pytest plugin to help you with exactly this -- its like 
  [VCR.py](https://vcrpy.readthedocs.io/en/latest/) and [pytest-vcr](http://pytest-vcr.readthedocs.io/en/latest/), but for scrapli!
- __Offline__: Want to be able to have the look and feel of a network device without having a network device? Create 
  a mock SSH server based on real network device behavior and run it in your CI or a Raspberry Pi (or whatever)!
- __Lightweight__: Want to spin up a bunch of test servers, but don't have the resources for real device images? 
  Asyncssh is fast and lightweight so you can run loads of mock SSH servers with very little resources!


## Installation

```
pip install scrapli_replay
```

See the [docs](https://scrapli.github.io/scrapli_replay/user_guide/installation) for other installation methods/details.



## A Simple (Pytest) Example

```python
@pytest.mark.scrapli_replay
def test_something_else():
    with IOSXEDriver(**MY_DEVICE) as conn:
        result = conn.send_command("show run | i hostname")
```


            

Raw data

            {
    "_id": null,
    "home_page": "",
    "name": "scrapli-replay",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.8",
    "maintainer_email": "",
    "keywords": "arista,automation,cisco,eos,iosxe,iosxr,juniper,junos,netconf,network,nxos,ssh,telnet",
    "author": "",
    "author_email": "Carl Montanari <carl.r.montanari@gmail.com>",
    "download_url": "https://files.pythonhosted.org/packages/49/9a/3e4e41dee679e97a9009a8d8e9605fa2cdb3297cb3868aef6e6cb77a6c8a/scrapli_replay-2024.1.30.tar.gz",
    "platform": null,
    "description": "[![Supported Versions](https://img.shields.io/pypi/pyversions/scrapli-replay.svg)](https://pypi.org/project/scrapli-replay)\n[![PyPI version](https://badge.fury.io/py/scrapli-replay.svg)](https://badge.fury.io/py/scrapli-replay)\n[![Weekly Build](https://github.com/scrapli/scrapli_replay/workflows/Weekly%20Build/badge.svg)](https://github.com/scrapli/scrapli_replay/workflows/Weekly%20Build)\n[![Code Style](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/ambv/black)\n[![License: MIT](https://img.shields.io/badge/License-MIT-blueviolet.svg)](https://opensource.org/licenses/MIT)\n\nscrapli_replay\n==============\n\n---\n\n**Documentation**: <a href=\"https://scrapli.github.io/scrapli_replay\" target=\"_blank\">https://scrapli.github.io/scrapli_replay</a>\n\n**Source Code**: <a href=\"https://github.com/scrapli/scrapli_replay\" target=\"_blank\">https://github.com/scrapli/scrapli_replay</a>\n\n**Examples**: <a href=\"https://github.com/scrapli/scrapli_replay/tree/main/examples/simple_test_case\" target=\"_blank\">https://github.com/scrapli/scrapli_replay/tree/main/examples/simple_test_case</a>\n\n---\n\nscrapli_replay: Tools to enable easy testing of scrapli programs and to create semi-interactive SSH servers that \nlook and feel like \"real\" network devices!\n\n\n#### Key Features:\n\n- __Easy__: Easily test scrapli code with Pytest, or create mock SSH servers to play with!\n- __Pytest__: Love scrapli and Pytest? Want to test your code that contains scrapli components, but can't test \n  against real devices in your CI? scrapli_replay is a Pytest plugin to help you with exactly this -- its like \n  [VCR.py](https://vcrpy.readthedocs.io/en/latest/) and [pytest-vcr](http://pytest-vcr.readthedocs.io/en/latest/), but for scrapli!\n- __Offline__: Want to be able to have the look and feel of a network device without having a network device? Create \n  a mock SSH server based on real network device behavior and run it in your CI or a Raspberry Pi (or whatever)!\n- __Lightweight__: Want to spin up a bunch of test servers, but don't have the resources for real device images? \n  Asyncssh is fast and lightweight so you can run loads of mock SSH servers with very little resources!\n\n\n## Installation\n\n```\npip install scrapli_replay\n```\n\nSee the [docs](https://scrapli.github.io/scrapli_replay/user_guide/installation) for other installation methods/details.\n\n\n\n## A Simple (Pytest) Example\n\n```python\n@pytest.mark.scrapli_replay\ndef test_something_else():\n    with IOSXEDriver(**MY_DEVICE) as conn:\n        result = conn.send_command(\"show run | i hostname\")\n```\n\n",
    "bugtrack_url": null,
    "license": "MIT License  Copyright (c) 2021 Carl Montanari  Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:  The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.  THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ",
    "summary": "Tools to enable easy testing of scrapli programs",
    "version": "2024.1.30",
    "project_urls": {
        "Changelog": "https://scrapli.github.io/scrapli_replay/changelog/",
        "Docs": "https://scrapli.github.io/scrapli_replay/",
        "Homepage": "https://github.com/scrapli/scrapli_replay"
    },
    "split_keywords": [
        "arista",
        "automation",
        "cisco",
        "eos",
        "iosxe",
        "iosxr",
        "juniper",
        "junos",
        "netconf",
        "network",
        "nxos",
        "ssh",
        "telnet"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "1ce488572df23e1cc585616dba3130f32564981b72bb485c297d77cf711facfb",
                "md5": "166e155e9807bb97cd0af77fa3c87205",
                "sha256": "d7ea0d61636ee6dadda34aebc10986e85716c71e7406f572134ffa2c6def9949"
            },
            "downloads": -1,
            "filename": "scrapli_replay-2024.1.30-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "166e155e9807bb97cd0af77fa3c87205",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.8",
            "size": 27041,
            "upload_time": "2024-01-29T02:26:50",
            "upload_time_iso_8601": "2024-01-29T02:26:50.656698Z",
            "url": "https://files.pythonhosted.org/packages/1c/e4/88572df23e1cc585616dba3130f32564981b72bb485c297d77cf711facfb/scrapli_replay-2024.1.30-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "499a3e4e41dee679e97a9009a8d8e9605fa2cdb3297cb3868aef6e6cb77a6c8a",
                "md5": "61f5d5fbba6a6d0fadef1c2b835d0094",
                "sha256": "60865b82ac4be9c994fda843330628733c502d64864601f57366fb20d6be480e"
            },
            "downloads": -1,
            "filename": "scrapli_replay-2024.1.30.tar.gz",
            "has_sig": false,
            "md5_digest": "61f5d5fbba6a6d0fadef1c2b835d0094",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.8",
            "size": 27321,
            "upload_time": "2024-01-29T02:26:52",
            "upload_time_iso_8601": "2024-01-29T02:26:52.276713Z",
            "url": "https://files.pythonhosted.org/packages/49/9a/3e4e41dee679e97a9009a8d8e9605fa2cdb3297cb3868aef6e6cb77a6c8a/scrapli_replay-2024.1.30.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-01-29 02:26:52",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "scrapli",
    "github_project": "scrapli_replay",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "requirements": [],
    "lcname": "scrapli-replay"
}
        
Elapsed time: 0.17100s