Arista EOS API asyncio client
Project description
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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file aio_eapi-0.6.3.tar.gz
.
File metadata
- Download URL: aio_eapi-0.6.3.tar.gz
- Upload date:
- Size: 11.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.5.1 CPython/3.8.13 Darwin/22.5.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 271e0b5f66acd5f2a1f07411955927ef95c5e92e4422bf416d9d0c01e5e3230c |
|
MD5 | 982e2948cce82426a99de1059a3be512 |
|
BLAKE2b-256 | 0b60f7ff7c89f5b83b90e72fea9ad0a305d1fa76265e58772dac03419b405164 |
File details
Details for the file aio_eapi-0.6.3-py3-none-any.whl
.
File metadata
- Download URL: aio_eapi-0.6.3-py3-none-any.whl
- Upload date:
- Size: 13.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.5.1 CPython/3.8.13 Darwin/22.5.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1b6acc34756799540450376b81f588baf698b8ff79395848e6998a69a3db984e |
|
MD5 | 83e5a93f9dd81e16054e2c4fa86e722f |
|
BLAKE2b-256 | d3d7d204cbab55650a1bc6d8687d97746a8e3f284d2c24150349d346022ecc56 |