Skip to main content

Arista-Switch-Client

Quick python object to send commands to Arista switches.

Sends commands via Arista's EAPI using jsonrpclib or via SSH using netmiko

Switch.send_commands_via_eapi(cmds) uses the jsonrpclib Server object to execute commands on a switch

Switch.send_commands_via_netmiko(cmds) uses the netmiko python library to execute commands on a switch

Switch.send_commands(cmds, method=str) will by default use eapi (method="eapi") to send commands but can use ssh if you specify "ssh" in the method variable.

  1. Install the project

    pip install AristaSwitchClient

  2. In a python file

    from EOS.Switch import Switch

    switch = Switch(ip_address="10.0.0.1", username="arista", password="arista")

    print(switch.send_commands("show version"))

Metadata

Release files for AristaSwitchClient 0.2.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for AristaSwitchClient 0.2.2
File Interpreter ABI Platform
AristaSwitchClient-0.2.2-py2-none-any.whl Python 2 none any Details

Release files / AristaSwitchClient-0.2.2-py2-none-any.whl

Download URL AristaSwitchClient-0.2.2-py2-none-any.whl
Size 13.0 kB
Tags Python 2
SHA-256 checksum
How to use checksums
5231dde2993fe722ceb58cd5a9911496c58fa3c084f6420007b1080e5db0788a
BLAKE2b-256 checksum
How to use checksums
8887dd7ea08be0381439ae028f487bfd152bdaf1182c1ee1456d7327834e5e47
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.35.0 CPython/2.7.15

Release history Release notifications | RSS feed

This release

0.2.2 This release

1 release file

0.2.1

1 release file

0.2.0

1 release file

0.1.2

1 release file

0.1.1

1 release file

0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page