Skip to content
This repository was archived by the owner on Sep 29, 2023. It is now read-only.

commx/python-rrdtool

Folders and files

NameName
Last commit message
Last commit date

Latest commit

author
Christian Kröger
Jul 20, 2022
5d8c7bd · Jul 20, 2022

History

65 Commits
May 6, 2019
Aug 8, 2018
May 17, 2019
May 17, 2019
Nov 10, 2016
Jul 20, 2022
Aug 10, 2015
Nov 18, 2016
Jul 20, 2022
May 28, 2019
Aug 8, 2018
May 17, 2019
Jul 20, 2022

Repository files navigation

Build Status

python-rrdtool

Python bindings for RRDtool for Python 2 and 3.

The bindings are based on the code of the original Python 2 bindings module for rrdtool by Hye-Shik Chang and are now shipped with the RRDtool distribution. This project is maintained separately to provide a more pythonic way to install those bindings via PyPI.

Features

  • Native extension (written in C) for performance reasons.
  • Uses library functions as exposed by librrd.
  • Works with Python 2.7, 3.5 and later.

Installation

The most convenient way to install (on POSIX-like systems) is to use pip:

pip install rrdtool

Note: Unless binary versions are available for your target system, the command above requires rrdtool development files (headers, libraries, dependencies) to be installed, otherwise building the module will fail.

In case you'd like to build the module on your own (regardless of whether binary versions are available for your system), you can obtain a copy of the source code and run python setup.py install in its destination folder to build the module.

Usage

import rrdtool

# Create Round Robin Database
rrdtool.create('test.rrd', '--start', 'now', '--step', '300', 'RRA:AVERAGE:0.5:1:1200', 'DS:temp:GAUGE:600:-273:5000')

# Feed updates to the RRD
rrdtool.update('test.rrd', 'N:32')

Documentation

You can find the latest documentation for this project at https://pythonhosted.org/rrdtool.

License

GNU Lesser General Public License version 2.1.