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.
Metadata
Release files for rrdtool-bindings 0.5.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| rrdtool_bindings-0.5.0.tar.gz | 17.3 kB | Without provenance | Details for rrdtool_bindings-0.5.0.tar.gz |
Release files / rrdtool_bindings-0.5.0.tar.gz
| Download URL | rrdtool_bindings-0.5.0.tar.gz |
|---|---|
| Size | 17.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d889ae62a5bd2dae3a9c8ee3b1e80ec3a1a8d85a9b5fb84d7bd278093e00ff73
|
|
BLAKE2b-256 checksum How to use checksums |
b74b77955944ddfda37022bba88d0193c95563e2e08e5641b054ae1460273fde
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.8.11
|
Security for rrdtool-bindings 0.5.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.