Modern Python packaging for RRDtool Python bindings to C extension.
Project description
rrdtool-bindings
Python bindings from RRDtool, packaged to work with modern Python packaging tools.
Spiritual successor to python-rrdtool,
which has not been updated since 2022 and the GitHub project was archived in 2023.
It failed to install/compile via uv or pdm on recent Fedora releases,
so this project was born.
Supported Python versions: 3.10+
Installation
This package compiles the bindings, so it requires the following dependencies:
- Debian/Ubuntu:
apt-get install -y gcc librrd-dev python3-dev - Fedora/Red Hat:
dnf install -y gcc rrdtool-devel python3-devel
Then run:
pip install rrdtool-bindings
Usage
Example from the RRDtool documentation.
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')
See rrdpython and tests/test_bindings.py for more examples.
History
v0.5.0 - 2025-11-10
- Add support for Python 3.14.
- Drop support for end-of-life Python 3.9.
- Add Linux platform check prior to check for Debian 13.
v0.4.0 - 2025-09-15
- Fix for Debian 13 (Trixie).
v0.3.1 - 2025-04-07
- Update change history in README.
v0.3.0 - 2025-04-07
- Update supported Python versions.
v0.2.0 - 2024-05-31
Initial release.
Uses the C code from 5JAN24.
Contributing
Changes to the C code should be submitted upstream, then copied to this repository.
This project uses uv,
so you will need that installed first.
Then fork/clone the repository and run uv sync.
Wheels can be compiled locally via uv build.
just is used as a task runner for convenience,
but it is optional,
any of the commands in Justfile can be ran by hand.
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_bindings-0.5.0.tar.gz.
File metadata
- Download URL: rrdtool_bindings-0.5.0.tar.gz
- Upload date:
- Size: 17.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.8.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d889ae62a5bd2dae3a9c8ee3b1e80ec3a1a8d85a9b5fb84d7bd278093e00ff73
|
|
| MD5 |
f007f396268b2e71c5fcc240e5366b1a
|
|
| BLAKE2b-256 |
b74b77955944ddfda37022bba88d0193c95563e2e08e5641b054ae1460273fde
|