Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

rerun_query-0.4.6.tar.gz (730.0 kB view details)

Uploaded Source

Built Distributions

rerun_query-0.4.6-cp312-cp312-macosx_11_0_arm64.whl (1.6 MB view details)

Uploaded CPython 3.12 macOS 11.0+ ARM64

rerun_query-0.4.6-cp38-cp38-manylinux_2_34_x86_64.whl (2.1 MB view details)

Uploaded CPython 3.8 manylinux: glibc 2.34+ x86-64

File details

Details for the file rerun_query-0.4.6.tar.gz.

File metadata

  • Download URL: rerun_query-0.4.6.tar.gz
  • Upload date:
  • Size: 730.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: maturin/1.7.0

File hashes

Hashes for rerun_query-0.4.6.tar.gz
Algorithm Hash digest
SHA256 107340c27f0dd2a0fa5e2e432b9f80a2f197a8ad631267729739e6a71489661c
MD5 8517bed4a7d9db0ebca33e1a66e2d216
BLAKE2b-256 c4964cf25eb4dafa969fd5144bb28cf24f185fad250503c3c67f625e382aa27e

See more details on using hashes here.

File details

Details for the file rerun_query-0.4.6-cp312-cp312-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for rerun_query-0.4.6-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a6df1048d60182a2c5b7ef28b5638bf7cb9d190f7febefc2e85f380a5641e364
MD5 5637740cd784307ce558f595315132f5
BLAKE2b-256 29f6249f73ae74fd56ad315e82facc8510b262b2c09e6ad3ceac1eac471437ae

See more details on using hashes here.

File details

Details for the file rerun_query-0.4.6-cp38-cp38-manylinux_2_34_x86_64.whl.

File metadata

File hashes

Hashes for rerun_query-0.4.6-cp38-cp38-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 00b5bacca27b08417bedefeb714f0bfed30bde588707f1321678742c3f5bf662
MD5 47d340e7d239c046976e0b0d5a27e31c
BLAKE2b-256 672c7d887dbf91611a3dfc3d5f0745df5f290427702a6c9cf265ac02e602ec42

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page