Skip to main content

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

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


Download files

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

Source Distribution

py_eawrc_sdk-0.0.2.tar.gz (4.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

py_eawrc_sdk-0.0.2-py3-none-any.whl (4.5 kB view details)

Uploaded Python 3

File details

Details for the file py_eawrc_sdk-0.0.2.tar.gz.

File metadata

  • Download URL: py_eawrc_sdk-0.0.2.tar.gz
  • Upload date:
  • Size: 4.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.7

File hashes

Hashes for py_eawrc_sdk-0.0.2.tar.gz
Algorithm Hash digest
SHA256 532ff962da23fbfe75fea6a91688689b502496725dced11531079051a42e3bcb
MD5 dad12f7319c48edfd72dbc00379d4b83
BLAKE2b-256 81bade6967affb4e25cda7c284423e2319f2c60ebfb5a5317bf8208e1e68ba4a

See more details on using hashes here.

File details

Details for the file py_eawrc_sdk-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: py_eawrc_sdk-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 4.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.7

File hashes

Hashes for py_eawrc_sdk-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 fbf7b3dc5bd32f9508cc8c915fe4f73c923a9bfda82dad701d086313a0f11d83
MD5 0ff1f7eba83eea5b25dd1aba0ecb739b
BLAKE2b-256 d35c82b8fa89addb4b51d56f9838a454c7d33f60d4f80e154acd988af6002004

See more details on using hashes here.

Supported by

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