File: quickstart.md

package info (click to toggle)
python-scrapli-replay 2023.7.30-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 456 kB
  • sloc: python: 2,625; makefile: 43
file content (23 lines) | stat: -rw-r--r-- 524 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# Quick Start Guide


## Installation

In most cases installation via pip is the simplest and best way to install scrapli replay.
See [here](/user_guide/installation) for advanced installation details.

```
pip install scrapli-replay
```


## A Simple Example (Pytest)

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

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