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.exceptionproviding theRingExceptionclass which is used for error signalingringtools.nodeproviding theRingNodeandNodeCommandThreadclass which are used to interact with specific nodesringtools.resultproviding theNodeResultandNodeResultSetclass which are used to handle results from a noderingtools.ringproviding 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.