3 rrdpython - About the RRD Python bindings
8 rrdtool.create('/tmp/test.rrd', 'DS:foo:GUAGE:20:0:U')
12 The B<rrdtool> functions are directly callable via the Python programming
13 language. This wrapper implementation has been written from the scratch
16 The API's simply expects string parameters to the functions. Please refer
17 to the other B<rrdtool> documentation for functions and valid arguments.
21 import rrdtool, tempfile
25 fd,path = tempfile.mkstemp('.png')
31 '--start', "-%i" % YEAR,
33 '--vertical-label', 'Downloads/Day',
34 '--title', 'Annual downloads',
36 'DEF:downloads=downloads.rrd:downloads:AVERAGE',
37 'AREA:downloads#990033:Downloads')
39 info = rrdtool.info('downloads.rrd')
40 print info['last_update']
41 print info['ds']['downloads']['minimal_heartbeat']
45 rrdcreate, rrdupdate, rrdgraph, rrddump, rrdfetch, rrdtune, rrdlast,
50 Hye-Shik Chang E<lt>perky@i18n.orgE<gt>
52 Alan Milligan E<lt>alan.milligan@last-bastion.netE<gt>