Skip to main content

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.

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)

Source distribution for rrdtool-bindings 0.5.0
File Size Uploaded
rrdtool_bindings-0.5.0.tar.gz 17.3 kB Details

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

Release history Release notifications | RSS feed

This release

0.5.0 This release

1 release file

0.4.0

1 release file

0.3.1

1 release file

0.3.0

1 release file

0.2.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page