Skip to content

Quick Start Guide

Installation

In most cases installation via pip is the simplest and best way to install scrapli replay. See here for advanced installation details.

1
pip install scrapli-replay

A Simple Example (Pytest)

Simply mark your tests containing scrapli code with the scrapli_replay marker:

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