/pyoxidized

A basic Python wrapper for the Oxidized REST API

Primary LanguagePythonApache License 2.0Apache-2.0

PyOxidized

A basic Python wrapper for the Oxidized REST API. Full API documentation can be found at the Oxidized Github repo.

Getting Started

Authentication (Optional)

The client supports basic HTTP authentication for environments where a reverse-proxy (nginx/Apache) was set up in front of Oxidized. Example setup for this can be found on PacketPushers.

Example

import pyoxidized

host = "http://<oxidized-server>"

# With authentication
oxi = pyoxidized.OxidizedApi(host, username, password)

# Without authentication
oxi = pyoxidized.OxidizedApi(host)

nodes = oxi.get_nodes()
device = nodes[0]
config = oxi.fetch_config(device)

To-Do

  • Unit tests
  • Diff support
  • Show blob of a version