Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/damiencorpataux/pyrrdtool

A python rrdtool facade wip
https://github.com/damiencorpataux/pyrrdtool

Last synced: 2 days ago
JSON representation

A python rrdtool facade wip

Awesome Lists containing this project

README

        

pyrrdtool
=========

**A python rrdtool facade** - work in progress

The purpose of thie rrdtool-cli facade library is to make
the configuration of rrd creation, update and graph easier and faster.

```python
import pyrrdtool as rrd
db = rrd.Database.load('tests/samples/mini.rrd')
speed = rrd.Variable(db, 'speed')
g = rrd.Graph([rrd.DEF.from_variable(speed)],
[rrd.AREA.from_variable(speed, {'color': 'ffffcc'}),
rrd.LINE.from_variable(speed, {'width': 2, 'color': 'ccff33'})])
png_binary = g.draw()
```

By enabling the user to *create definitions* of rrdatabases, datasouces
and graphs that are *modular* and *reusable* for creating, updating and graphing
a wide variety of graphs, easily and with peace of mind.

Along with a python API to call rrdtool features such as create, update, fetch
and graph that is easier and faster to use, with default and automatic cli options
generation.

It should be easy to provide the graphing feature as a REST API that return
graph images binaries (see [rrdli](https://github.com/damiencorpataux/rrdli)).

--

Because writing this library is also an in-depth learning of rrdtool,
the code should be commented nicely to *promote the understanding of what's happening*