Skip to content

Commit

Permalink
Add banner and gifs to rerun/README.md and rerun_py/README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
emilk committed Feb 11, 2023
1 parent a4f67ef commit 0d8bb11
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 7 deletions.
24 changes: 22 additions & 2 deletions crates/rerun/README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,25 @@
# Rerun
The main Rerun logging API and binary.
<h1 align="center">
<a href="https://www.rerun.io/">
<img alt="banner" src="https://user-images.githubusercontent.com/1148717/218142418-1d320929-6b7a-486e-8277-fbeef2432529.png">
</a>
</h1>

# Rerun Rust logging SDK
Log rich data, such as images and point clouds, and visualize it live or after the fact, with time scrubbing.

`rust add rerun`

``` rust
rerun::MsgSender::new("points")
.with_component(&points)?
.with_component(&colors)?
.send(&mut rerun::global_session())?;
```

<p align="center">
<img src="https://user-images.githubusercontent.com/1148717/218265704-1863c270-1422-48fe-9009-d67f8133c4cc.gif">
</p>


## Library
You can add the `rerun` crate to your project with `cargo add rerun` (soon)
Expand Down
30 changes: 25 additions & 5 deletions rerun_py/README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,30 @@
# The Rerun Python Log SDK.
# The Rerun Python Log SDK

Goal: an ergonomic Python library for logging rich data, over TCP, to a rerun server.
Log rich data, such as images and point clouds, and instantly visualize them, with time scrubbing.

ℹ️ Note:
`pip install rerun-sdk`

```py
import rerun as rr

rr.init("my_app", spawn = True) # Spawn a Rerun Viewer and stream log events to it

rr.log_image("rgb_image", image)
rr.log_points("points", positions)
rr.log_rect("car", bbox)
```

<p align="center">
<img src="https://user-images.githubusercontent.com/1148717/218265704-1863c270-1422-48fe-9009-d67f8133c4cc.gif">
</p>

## Getting started
See [`USAGE.md`](USAGE.md).

<!-- TODO(#1161): add links to our docs! -->

## Notes
- The rust crate is called `rerun_py`, the Python module is called `rerun`, and the package published on PyPI is `rerun-sdk`.
- These instructions assume you're running from the `rerun` root folder and have Python 3.8 or later available.

Expand All @@ -17,8 +39,6 @@ pip3 install "./rerun_py"
ℹ️ Note:
- If you are unable to upgrade pip to version `>=21.3`, you need to pass `--use-feature=in-tree-build` to the `pip3 install` command.

## Usage
See [`USAGE.md`](USAGE.md).

## Running the example code
```sh
Expand Down

0 comments on commit 0d8bb11

Please sign in to comment.