PyRRD
PyRRD is a pure-Python OO wrapper for the RRDTool (round-robin database tool). The idea is to make RRDTool insanely easy to use and to be aesthetically pleasing for Python programmers.
Visit the wiki for more information, usage examples, and graphs.
Latest Changes in Trunk
- Added an RRD.fetch method
- Added support for reading RRD files from disk
- Added an RRD.info method
Latest Release
- Added support for Windows users
- Fixed some bugs in method signatures
PyRRD Quick Example
Here's what the OO wrapper lets you do:
from pyrrd import graph
def1 = graph.DataDefinition(vname='downloads', rrdfile='downloads.rrd',
ds_name='downloads', cdef='AVERAGE')
area1 = graph.Area(value=def1.vname, color='#990033',
legend='Downloads', stack=True)
g = graph.Graph(path, imgformat='PNG', width=540, height=100,
start="-%i" % YEAR, end=-1, vertical_label='Downloads/Day',
title='Annual downloads', lower_limit=0)
g.data.append(def1)
g.data.append(area1)
g.write()