Python library to help aid access to EA WRC telemetry
Project description
py-eawrc-sdk
SDK built with Python 3 to aid with access to EA WRC's live telemetry.
Install
- Python 3.9+
pip install py-eawrc-sdk
Usage/Examples
NOTE - EA WRC must be launched at least once to generate telemmetry configuration files found in %UserProfile%/Documents/My Games/WRC/telemetry/
Basic Usage
#!python3
import pyeawrcsdk
wrc = pyeawrcsdk.EAWRCSDK()
wrc.connect()
print(wrc['vehicle_speed'])
Simple Application Example
#!python3
import eawrcsdk
import time
if __name__ == "__main__":
wrc = eawrcsdk.EAWRCSDK()
wrc.connect()
while True:
try:
wrc.freeze_buffer_latest() #Freeze telemmetry data so all data retrieved is from the same telemmetry packet
if wrc['game_total_time']: #check if data exists first
##
## application logic
##
print(wrc['game_total_time'])
time.sleep(1/30)
except KeyboardInterrupt:
break
wrc.close()
print("client closed")
Feedback
Feel free to contact me if you'd like to contribute to this package. I'm relatively new to python and programming in general and created this package to provide core functionality to other python projects I'm working on.
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file py_eawrc_sdk-0.0.3.tar.gz.
File metadata
- Download URL: py_eawrc_sdk-0.0.3.tar.gz
- Upload date:
- Size: 4.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
aa0a7de18f1a80d6ad3c24e25b98f228a976b09c20371648ac3c06bbf1edb192
|
|
| MD5 |
f7026311ddf71451e9328ec81ea21ab2
|
|
| BLAKE2b-256 |
d26ce7fef86d6b416f97602385aa24d13f2cb9c872497b74d8575a6dd1d3bd3c
|
File details
Details for the file py_eawrc_sdk-0.0.3-py3-none-any.whl.
File metadata
- Download URL: py_eawrc_sdk-0.0.3-py3-none-any.whl
- Upload date:
- Size: 5.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d5bcad90b675f7f1c26615ca96aadb969a6df2032a954cb0c610ac881622ac8b
|
|
| MD5 |
33e747e845b73bf516014a23398b09a4
|
|
| BLAKE2b-256 |
20925052c20a9102576a882d3b7e5e6ee2716009f2a39d077cc7e8ade9773051
|