tyler-8 / pyoxidized

A basic Python wrapper for the Oxidized REST API

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

A basic Python wrapper for the Oxidized REST API

License:Apache License 2.0


Languages

Language:Python 100.0%