X-Git-Url: https://git.octo.it/?p=rrdtool.git;a=blobdiff_plain;f=doc%2Frrdpython.pod;fp=doc%2Frrdpython.pod;h=a158577f7f983dd474e3bf3b569a03fc3ce4eeb9;hp=0000000000000000000000000000000000000000;hb=9b1205b30b37e1ef53666a1a1d51b573259becdf;hpb=ac29bccef8036fb1a7ba55458c86d8601fcc56f4 diff --git a/doc/rrdpython.pod b/doc/rrdpython.pod new file mode 100644 index 0000000..a158577 --- /dev/null +++ b/doc/rrdpython.pod @@ -0,0 +1,53 @@ +=head1 NAME + +rrdpython - About the RRD Python bindings + +=head1 SYNOPSIS + + import rrdtool + rrdtool.create('/tmp/test.rrd', 'DS:foo:GUAGE:20:0:U') + +=head1 DESCRIPTION + +The B functions are directly callable via the Python programming +language. This wrapper implementation has been written from the scratch +(without SWIG) + +The API's simply expects string parameters to the functions. Please refer +to the other B documentation for functions and valid arguments. + +=head1 EXAMPLE + + import rrdtool, tempfile + + DAY = 86400 + YEAR = 365 * DAY + fd,path = tempfile.mkstemp('.png') + + rrdtool.graph(path, + '--imgformat', 'PNG', + '--width', '540', + '--height', '100', + '--start', "-%i" % YEAR, + '--end', "-1", + '--vertical-label', 'Downloads/Day', + '--title', 'Annual downloads', + '--lower-limit', '0', + 'DEF:downloads=downloads.rrd:downloads:AVERAGE', + 'AREA:downloads#990033:Downloads') + + info = rrdtool.info('downloads.rrd') + print info['last_update'] + print info['ds']['downloads']['minimal_heartbeat'] + +=head1 SEE ALSO + +rrdcreate, rrdupdate, rrdgraph, rrddump, rrdfetch, rrdtune, rrdlast, +rrdxport, rrdinfo + +=head1 AUTHOR + +Hye-Shik Chang Eperky@i18n.orgE + +Alan Milligan Ealan.milligan@last-bastion.netE +