Python bindings for rrdtool
Project description
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.6, 2.7, 3.3 and any later version.
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file rrdtool-0.1.15.tar.gz
.
File metadata
- Download URL: rrdtool-0.1.15.tar.gz
- Upload date:
- Size: 21.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.20.1 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.7.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 951d2c23121dbe94859ea46bc9ed54e908e2f2ee60eff3c505db0778a3212732 |
|
MD5 | 5e818ed5b5c656448f2e641af04e1f4e |
|
BLAKE2b-256 | f9862f87c8725effdc0f4abdc77af85fd764b04fe833fe3cd882c5fae1d7635d |