Skip to main content

SWToolz-Core API wrapper.

Project description

SWToolz-Core API wrapper

Make queries to Swtoolz-Core (forked from xcme/swtoolz-core) easier than ever.


pip install swtoolz


Enable port 10 on switch

from swtoolz import SWToolz

swtoolz_community_number = 2
swtoolz_port = 7377

swt = SWToolz('swtoolz_url', 'swtoolz_user', swtoolz_community_number, swtoolz_port)
swt.change_port_admin_state('', 10, 'enabled')

Available methods

get_port_admin_state(device_ip, port_num, media='copper')

Returns admin state of port in human-readable format ('enabled'/'disabled')

change_port_admin_state(device_ip, port_num, target_state)

Changes admin state of port to target_state ('enabled'/'disabled').

Project details

Download files

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

Files for swtoolz, version 0.2.0
Filename, size File type Python version Upload date Hashes
Filename, size swtoolz-0.2.0-py3-none-any.whl (6.1 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size swtoolz-0.2.0.tar.gz (4.9 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page