My favorites | Sign in
Project Logo
                

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

Latest Release

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()








Hosted by Google Code