Rerun Query
Python SDK to query and extract data from Rerun files.
Rerun Compatibility
This project is only compatible with Rerun 0.18. Please make sure the source rrd file is created with this version of Rerun SDK [Rust].
The Blueprint of Rerun data (controls the layout of the viewer) is ignored for now, while the entity_paths were still included in the return value of
list_entity_paths().Please open an issue if you need this feature or anything else.
Install
This project depends on numpy, so please make sure install it with this package together.
pip install numpy rerun-query
The retrieved data is in numpy arrays.
Usage
Use this package:
import requery
data = requery.query_data_entities(file_path, "", "")
for data_row in data:
print(f"Entity Path: {data_row.entity_path}")
for timeline_key, times in data_row.timelines.items():
print(f"Timeline({timeline_key}) - {times}")
data_object = data_row.data
for index, data in enumerate(data_object[:10]):
print(f"- {index + 1} {data}")
Example
You can find running example and sample data file in examples folder.
To run the example Python code:
cd ./examples
python3 -m venv .venv
source .venv/bin/activate
python3 main.py
The output includes entity paths, meta data, and tensor data in numpy arrays.
To view the logs in detail, run the program as:
RUST_LOG=debug python3 main.py
If the program crashes unexpectedly, try to diagnose with:
RUST_BACKTRACE=1 python3 main.py
Metadata
Release files for rerun-query 0.6.19
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| rerun_query-0.6.19.tar.gz | 3.1 MB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| rerun_query-0.6.19-cp38-cp38-manylinux_2_34_x86_64.whl | CPython 3.8 | CPython 3.8 | Linux glibc 2.34+ x86-64 | Details |
Total release size: 5.3 MB
Release files / rerun_query-0.6.19.tar.gz
| Download URL | rerun_query-0.6.19.tar.gz |
|---|---|
| Size | 3.1 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0d58036a1f14978512e7ea75c149a2b4835f9b9dd3aad6ad21c8ceb90d397811
|
|
BLAKE2b-256 checksum How to use checksums |
9d4d5455e56ee253d59d961458e0ce8ef2559c5d0a7070de899de58d55de7361
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
maturin/1.7.1
|
Release files / rerun_query-0.6.19-cp38-cp38-manylinux_2_34_x86_64.whl
| Download URL | rerun_query-0.6.19-cp38-cp38-manylinux_2_34_x86_64.whl |
|---|---|
| Size | 2.2 MB |
| Tags | CPython 3.8 Linux glibc 2.34+ x86-64 |
|
SHA-256 checksum How to use checksums |
4f25fa73f23a8d7d83b04a0206bee4a860268b11b617782212f264da22bd1e3d
|
|
BLAKE2b-256 checksum How to use checksums |
0ce1726d8e446949a186968008a8f34d03a12690f3895b4762f248dccfb35a6d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
maturin/1.7.1
|