blobjugglerpy
Export ROS2 rosbag2 to CSV in PlotJuggler style or per-topic.
Usage
Python API:
from blobjugglerpy import collect_columns_plotjuggler, write_plotjuggler_csv
columns, storage_id, type_cache = collect_columns_plotjuggler(bag_dir, topics_filter=None)
write_plotjuggler_csv(bag_dir, out_csv_path, columns, storage_id, topics_filter=None, type_cache=type_cache)
CLI, single bag:
python -m blobjugglerpy --bag /path/to/bag --out /path/to/out.csv --all
Topic selection supports glob-style patterns via --topics, for example:
python -m blobjugglerpy --bag /path/to/bag --out out.csv --topics "/log*" "/sensors/*"
Batch mode recursively discovers bags and writes one output per bag. It uses the same topic flags as single-bag mode, but replaces --out with --output-dir:
python -m blobjugglerpy --batch /path/to/root --output-dir /path/to/exports --all
python -m blobjugglerpy --batch /path/to/root --output-dir /path/to/exports --topics "/log*" --per-topic
Note: You must specify either --all or --topics (supports globs) in both modes.
Command Line Help
$ python -m blobjugglerpy -h
usage: __main__.py [-h] (--bag BAG | --batch BATCH) [--out OUT] [--output-dir OUTPUT_DIR] [--topics [TOPICS ...]] [--all] [--per-topic] [--no-sort] [--overwrite] [--workers WORKERS]
Export ROS2 bag(s) to CSV.
options:
-h, --help show this help message and exit
--bag BAG Path to one rosbag2 directory (contains metadata.yaml)
--batch BATCH Root directory to search recursively for rosbag2 bags
--out OUT Output CSV path for --bag mode
--output-dir OUTPUT_DIR
Output directory for --batch mode
--topics [TOPICS ...]
Explicit list of topics to export
--all Export all topics in the bag
--per-topic Write one CSV per topic instead of merged
--no-sort Do not sort by __time
--overwrite Overwrite existing CSV outputs
--workers WORKERS Number of worker processes for --batch
Installation
pip install git+https://github.com/incebellipipo/blobjugglerpy.git
Reading CSV data with pandas
The exported CSVs use comma as the value separator and may contain semicolons in column names (e.g., topic;field). Since the data is sparse, some rows may have missing values.
import pandas as pd
# Read the exported CSV
df = pd.read_csv('out.csv')
# Display the first few rows
print(df.head())
# Fill NaN values (sparse data) with 0 or interpolate
df_filled = df.fillna(0)
# Or use forward/backward fill for time-series data
df_interpolated = df.interpolate(method='linear')
Metadata
Release files for blobjugglerpy 0.0.1
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 |
|---|---|---|---|---|
| blobjugglerpy-0.0.1.tar.gz | 29.8 MB | With provenance | Details for blobjugglerpy-0.0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| blobjugglerpy-0.0.1-py3-none-any.whl | Python 3 | none | any | Details for blobjugglerpy-0.0.1-py3-none-any.whl |
Total release size: 29.9 MB
Release files / blobjugglerpy-0.0.1.tar.gz
| Download URL | blobjugglerpy-0.0.1.tar.gz |
|---|---|
| Size | 29.8 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5b9b686234d1582b864ffe3ecca897a0802c52d835f23f949109925341d8fe3e
|
|
BLAKE2b-256 checksum How to use checksums |
e38acb680bb56af0fa582847217b99a065d945357fab4b6de58b1b019040b889
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Apr 20, 2026.
Transparency logRelease files / blobjugglerpy-0.0.1-py3-none-any.whl
| Download URL | blobjugglerpy-0.0.1-py3-none-any.whl |
|---|---|
| Size | 37.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c133a31d3de04e03cf3f252092f6cd9ef1044e3cda86b5c664279104b28aa89e
|
|
BLAKE2b-256 checksum How to use checksums |
c46a2098a8a5c106508335fc6fbb8507922d6e5503d7d64f08db429d9a2be1ec
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Apr 20, 2026.
Transparency logSecurity for blobjugglerpy 0.0.1
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.
Full provenance
All 2 files in this release have been uploaded with provenance metadata.
Attestation for blobjugglerpy-0.0.1.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Apr 20, 2026.
Transparency logA 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.