Metadata-Version: 2.1
Name: aio-eapi
Version: 0.4.0
Summary: Arista EOS API asyncio client
Author: Jeremy Schulman
Requires-Python: >=3.10,<4.0
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Requires-Dist: httpx (>=0.23.3,<0.24.0)
Description-Content-Type: text/markdown

# 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.

```python
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)
```

