A Rust-powered Python package for querying rerun data.
Project description
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_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
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
Built Distribution
File details
Details for the file rerun_query-0.4.5.tar.gz
.
File metadata
- Download URL: rerun_query-0.4.5.tar.gz
- Upload date:
- Size: 730.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.7.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7ab7d19728b03b18310c7e1d7835c010a3f5c2b47b2fd6d45999c018de6cd622 |
|
MD5 | ffac7c0aa1bf8cc0ae4cc83ceca19286 |
|
BLAKE2b-256 | 091b2551435faf42f5dcdee725187806e8f2948f68dbbea474563cac1fd796ac |
File details
Details for the file rerun_query-0.4.5-cp312-cp312-macosx_11_0_arm64.whl
.
File metadata
- Download URL: rerun_query-0.4.5-cp312-cp312-macosx_11_0_arm64.whl
- Upload date:
- Size: 1.6 MB
- Tags: CPython 3.12, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.7.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 400d505a76d888a2a28e1da3b3671001b4cf541d86fe1be08a87ec43f9c6ca62 |
|
MD5 | 74e8d77b88a3da80eaf4b083f0533b7b |
|
BLAKE2b-256 | c6a90212139f4151530c927baf7013b0b4cdded755f15e5c2da63b4ba231e0d8 |