Home - NLNOG/py-ring GitHub Wiki
The ringtools
module offers a Python API to the NLNOG ring, making it easy to write code which performs commands on one or multiple nodes and for easier handling of output.
The ringtools-module consists of the following files:
ringtools.exception
providing theRingException
class which is used for error signalingringtools.node
providing theRingNode
andNodeCommandThread
class which are used to interact with specific nodesringtools.result
providing theNodeResult
andNodeResultSet
class which are used to handle results from a noderingtools.ring
providing functions for getting information about the ring and running commands on it
The examples directory in this repository contains various examples of increasing complexity showing the key features of the ring.