Skip to main content

Extreme EXOS asyncio client for JSON-RPC and RESTCONF

Project description


Extreme EXOS asyncio Client

This repository contains an Extreme EXOS asyncio client, support for both JSON-RPC and RESTCONF options.

For reference on the EXOS JSON-RPC, refer to this document.

For reference on the EXOS RESTCONF support, refer to this document.

Device Configuration

In order to access the EXOS device via API you must enable the web server feature using either http or https.

enable web http
enable web https    # requires ssl configuration as well.


from aioexos.jsonrpc import Device

dev = Device(host='myhostname', username='user', password='Random')
show_one = await dev.cli('show switch')
show_many = await dev.cli(['show switch', 'show version'])

# get text instead of JSON/dict

show_text = await dev.cli('show switch', text=True)


The RESTCONF API supports only JSON body at this time. XML is not supported even though the documentation states that it does.

from aioexos.restconf import Device

dev = Device(host='myhostname', username='user', password='Random')

# login step required for session authentication

await dev.login()

# execute commands providing the restconf URL, supports all request methods
# (GET, POST, etc.)

res = await dev.get('/openconfig-system:system')

# close connection when done with commands
await dev.aclose()

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

aio-exos-0.4.0.tar.gz (9.2 kB view hashes)

Uploaded Source

Built Distribution

aio_exos-0.4.0-py3-none-any.whl (9.4 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page