Metadata-Version: 2.1
Name: rrdtool
Version: 0.1.16
Summary: Python bindings for rrdtool
Home-page: https://github.com/commx/python-rrdtool
Author: Christian Kroeger
Author-email: commx@commx.ws
Keywords: rrdtool
Classifier: Development Status :: 5 - Production/Stable
Classifier: License :: OSI Approved :: GNU Lesser General Public License v2 (LGPLv2)
Classifier: Operating System :: POSIX
Classifier: Programming Language :: C
Classifier: Programming Language :: Python :: 2
Classifier: Programming Language :: Python :: 2.7
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.5
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Requires-Python: >=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*, <4
Description-Content-Type: text/markdown
License-File: LICENSE

[![Build Status](https://travis-ci.org/commx/python-rrdtool.svg?branch=master)](https://travis-ci.org/commx/python-rrdtool)

# python-rrdtool

Python bindings for [RRDtool](https://oss.oetiker.ch/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](https://pypi.org).

## 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

```python
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](https://opensource.org/licenses/LGPL-2.1).
