Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/yuvix25/r3e-python-api
Python API for reading RaceRoom Racing Experience's shared memory.
https://github.com/yuvix25/r3e-python-api
Last synced: about 1 month ago
JSON representation
Python API for reading RaceRoom Racing Experience's shared memory.
- Host: GitHub
- URL: https://github.com/yuvix25/r3e-python-api
- Owner: Yuvix25
- Created: 2022-10-30T07:00:11.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2022-10-30T07:45:11.000Z (about 2 years ago)
- Last Synced: 2024-09-21T16:38:40.560Z (about 2 months ago)
- Language: C#
- Size: 13.7 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# R3E Python API
This package will allow you to easily read data from RaceRoom's Shared Memory API using Python.## Usage:
```python
from r3e_api import R3ESharedMemory
import timeshared_memory = R3ESharedMemory()
shared_memory.update_offsets() # only needed oncewhile True:
shared_memory.update_buffer()
print(shared_memory.get_value('Player'))time.sleep(0.5)
```The method `R3ESharedMemory.get_value()` accepts one string field. If you want to retrieve a sub-field, you can use dot notation, for example, `R3ESharedMemory.get_value('Player.Velocity')`.
## Installation:
You can install this package using [pip](https://pypi.org/project/r3e-api/):
```bash
$ pip install r3e-api
```