Skip to main content

A Rust-powered Python package for querying rerun data.

Project description

Rerun Query

PyPI version Supported Python Version License

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

Changes

  • No changes

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.6.3.tar.gz (3.1 MB view details)

Uploaded Source

Built Distribution

rerun_query-0.6.3-cp38-cp38-manylinux_2_34_x86_64.whl (2.2 MB view details)

Uploaded CPython 3.8 manylinux: glibc 2.34+ x86-64

File details

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

File metadata

  • Download URL: rerun_query-0.6.3.tar.gz
  • Upload date:
  • Size: 3.1 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: maturin/1.7.1

File hashes

Hashes for rerun_query-0.6.3.tar.gz
Algorithm Hash digest
SHA256 006eb0230bc6d65fd5d70a201ea1cdeb2cf6078b841820d75121f0c5efa4cca8
MD5 8a416303549ad1b57c62ac334093ca21
BLAKE2b-256 0d8def9565b9a31d37901d58ff5c7cf0fce9ddf982dbb8ff069562bc67e39d42

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for rerun_query-0.6.3-cp38-cp38-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 8d6a61009d73ab6e71822574ea28b49a08356b9fe11a8750cd9e31f1ec8a8a16
MD5 8c9622e7aa7e1f983c43dfada88810e1
BLAKE2b-256 54a067e2032ac90a818f57a93c2fc8386aa2df2a2c6c19dc9f3f6a856993da2e

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