Catalog PyPI
Back to packageRELEASE DETAILS

0.6.3

PyPI

aio-eapi

Arista EOS API asyncio client

Published26 Jul 2023
Direct dependencies1
Transitive dependenciesNot calculated

README

Version 0.6.3 documentation

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 address
  • username - The login username
  • password - The login password
  • proto - (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.

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Declared dependencies 1

Native requirements
1 direct targetsNot calculated transitive count
Package / targetRequirementRelationship
httpx
Environment
{
  "extras": "",
  "marker": null,
  "requires_python": ">=3.8",
  "evaluation": "NOT_EVALUATED"
}
httpx (>=0.23.3,<0.24.0)runtime

Distribution files

2 collected
aio_eapi-0.6.3-py3-none-any.whl

bdist_wheel · 12.72 KB · Python py3

Source file
aio_eapi-0.6.3.tar.gz

sdist · 11.39 KB · Python source

Source file

Metadata history

Meaningful changes
Current collected state Current

Observed since 21 Oct, 11:50 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package_version:7483994c5e5f08765eeb4f83a5748402ee0bb45f1da035fcc947ee38c5e189cb

Other collected versions

View all collected versions →