Debian Codegraph @

README.md

raw symbols SCIP
1 <!--
2 ~ Copyright (c) 2023-2026 Arista Networks, Inc.
3 ~ Use of this source code is governed by the Apache License 2.0
4 ~ that can be found in the LICENSE file.
5 -->
6
7 # Arista Network Test Automation (ANTA) Framework
8
9 | **Code** | [![Ruff](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/ruff/main/assets/badge/v2.json)](https://github.com/astral-sh/ruff) [![Numpy](https://img.shields.io/badge/Docstring_format-numpy-blue)](https://numpydoc.readthedocs.io/en/latest/format.html) [![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=aristanetworks_anta&metric=alert_status&branch=main)](https://sonarcloud.io/summary/new_code?id=aristanetworks_anta) [![codecov](https://codecov.io/gh/aristanetworks/anta/graph/badge.svg?token=ZAQ6RJMDYS)](https://codecov.io/gh/aristanetworks/anta) |
10 | :------: | :---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
11 | **License** | [![License](https://img.shields.io/badge/license-Apache%202.0-brightgreen.svg)](https://github.com/aristanetworks/anta/blob/main/LICENSE) |
12 | **GitHub** | [![CI](https://github.com/aristanetworks/anta/actions/workflows/code-testing.yml/badge.svg)](https://github.com/aristanetworks/anta/actions/workflows/code-testing.yml) ![Commit](https://img.shields.io/github/last-commit/aristanetworks/anta) ![GitHub commit activity (branch)](https://img.shields.io/github/commit-activity/m/aristanetworks/anta) [![GitHub release](https://img.shields.io/github/release/aristanetworks/anta.svg)](https://github.com/aristanetworks/anta/releases/) [![Contributors](https://img.shields.io/github/contributors/aristanetworks/anta)](https://github.com/aristanetworks/anta/graphs/contributors) |
13 | **PyPI** | ![PyPI Version](https://img.shields.io/pypi/v/anta) ![Python Versions](https://img.shields.io/pypi/pyversions/anta) ![Python format](https://img.shields.io/pypi/format/anta) ![PyPI - Downloads](https://img.shields.io/pypi/dm/anta) |
14
15 ANTA is a Python framework that automates tests for Arista devices.
16
17 - ANTA provides a [set of tests](https://anta.arista.com/stable/api/tests/) to validate the state of your network
18 - ANTA can be used to:
19 - Automate NRFU (Network Ready For Use) tests on a preproduction network
20 - Automate tests on a live network (periodically or on demand)
21 - ANTA can be used:
22 - As a [Python library](https://anta.arista.com/stable/advanced_usages/as-python-lib/) in your own application
23 - Via the [ANTA CLI](https://anta.arista.com/stable/cli/overview/)
24
25 ![anta nrfu](https://raw.githubusercontent.com/aristanetworks/anta/main/docs/imgs/anta-nrfu.svg)
26
27 ## Install ANTA library
28
29 The library will **NOT** install the necessary dependencies for the CLI.
30
31 ```bash
32 # Install ANTA as a library
33 pip install anta
34 ```
35
36 ## Install ANTA CLI
37
38 If you plan to use ANTA only as a CLI tool you can use `pipx` to install it.
39 [`pipx`](https://pipx.pypa.io/stable/) is a tool to install and run Python applications in isolated environments. Refer to `pipx` instructions to install on your system.
40 `pipx` installs ANTA in an isolated Python environment and makes it available globally.
41
42 <!-- markdownlint-disable no-emphasis-as-heading -->
43 **This is not recommended if you plan to contribute to ANTA**
44 <!-- markdownlint-enable no-emphasis-as-heading -->
45
46 ```bash
47 # Install ANTA CLI with pipx
48 $ pipx install anta[cli]
49
50 # Run ANTA CLI
51 $ anta --help
52 Usage: anta [OPTIONS] COMMAND [ARGS]...
53
54 Arista Network Test Automation (ANTA) CLI.
55
56 Options:
57 --help Show this message and exit.
58 --version Show the version and exit.
59 --log-file FILE Send the logs to a file. If logging level is
60 DEBUG, only INFO or higher will be sent to
61 stdout. [env var: ANTA_LOG_FILE]
62 -l, --log-level [critical|error|warning|info|debug]
63 ANTA logging level [env var:
64 ANTA_LOG_LEVEL; default: INFO]
65
66 Commands:
67 check Commands to validate configuration files.
68 debug Commands to execute EOS commands on remote devices.
69 exec Commands to execute various scripts on EOS devices.
70 get Commands to get information from or generate inventories.
71 nrfu Run ANTA tests on selected inventory devices.
72 ```
73
74 You can also still choose to install it directly with `pip`:
75
76 ```bash
77 pip install anta[cli]
78 ```
79
80 ## Documentation
81
82 The documentation is published on the [ANTA package website](https://anta.arista.com).
83
84 ## Contribution guide
85
86 Contributions are welcome. Please refer to the [contribution guide](https://anta.arista.com/stable/contribution/).
87
88 ## Credits
89
90 Thank you to [Jeremy Schulman](https://github.com/jeremyschulman) for [aio-eapi](https://github.com/jeremyschulman/aio-eapi/tree/main/aioeapi), the upstream source for ANTA's `asynceapi` client.
91
92 Thank you to [Angélique Phillipps](https://github.com/aphillipps), [Colin MacGiollaEáin](https://github.com/colinmacgiolla), [Khelil Sator](https://github.com/ksator), [Matthieu Tache](https://github.com/mtache), [Onur Gashi](https://github.com/onurgashi), [Paul Lavelle](https://github.com/paullavelle), [Guillaume Mulocher](https://github.com/gmuloc) and [Thomas Grimonet](https://github.com/titom73) for their contributions and guidance.