Arista EOS API asyncio Client
This repository contains an Arista EOS asyncio client.
Quick Example
Thie following shows how to create a Device instance and run a list of commands.
Device will use HTTPS transport by default. The Device instance supports the following initialization parameters:
host- The device hostname or IP addressusername- The login usernamepassword- The login passwordproto- (Optional) Choose either "https" or "http", defaults to "https"port- (Optional) Chose the protocol port to override proto default
The Device class inherits directly from httpx.AsyncClient. As such, the Caller can provide any initialization parameters. The above specific parameters are all optional.
import json
from aioeapi import Device
username = 'dummy-user'
password = 'dummy-password'
async def run_test(host):
dev = Device(host=host, username=username, password=password)
res = await dev.cli(commands=['show hostname', 'show version'])
json.dumps(res)
References
Arista eAPI documents require an Arista Portal customer login. Once logged into the system you can find the documents in the Software Download area. Select an EOS release and then select the Docs folder.
You can also take a look at the Arista community client, here.
Metadata
Release files for aio-eapi 0.6.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| aio_eapi-0.6.3.tar.gz | 11.7 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| aio_eapi-0.6.3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 24.7 kB
Release files / aio_eapi-0.6.3.tar.gz
| Download URL | aio_eapi-0.6.3.tar.gz |
|---|---|
| Size | 11.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
271e0b5f66acd5f2a1f07411955927ef95c5e92e4422bf416d9d0c01e5e3230c
|
|
BLAKE2b-256 checksum How to use checksums |
0b60f7ff7c89f5b83b90e72fea9ad0a305d1fa76265e58772dac03419b405164
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.5.1 CPython/3.8.13 Darwin/22.5.0
|
Release files / aio_eapi-0.6.3-py3-none-any.whl
| Download URL | aio_eapi-0.6.3-py3-none-any.whl |
|---|---|
| Size | 13.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
1b6acc34756799540450376b81f588baf698b8ff79395848e6998a69a3db984e
|
|
BLAKE2b-256 checksum How to use checksums |
d3d7d204cbab55650a1bc6d8687d97746a8e3f284d2c24150349d346022ecc56
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.5.1 CPython/3.8.13 Darwin/22.5.0
|
Security for aio-eapi 0.6.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.