About
iracing-data-api is a simple Python wrapper around the General Data API released by iRacing in January 2022 and documented here.
The client allows easy access to some of the most useful endpoints of the data API.
Installation
pip install iracingdataapi
Examples
from iracingdataapi.client import irDataClient
idc = irDataClient(username=[YOUR iRACING USERNAME], password=[YOUR iRACING PASSWORD])
# get the summary data of a member
idc.get_member_summary(cust_id=20979)
# get latest results of a member
idc.get_member_recent_races(cust_id=209179)
# get all laps for a specific driver in a race
idc.get_result_lap_data(subsession_id=43720351, cust_id=209179)
All available methods of irDataClient are included in client.py.
Contributing
I welcome all pull requests for improvements or missing endpoints over time as they are added by iRacing.
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
iracingdataapi-0.0.4.tar.gz
(3.8 kB
view details)
File details
Details for the file iracingdataapi-0.0.4.tar.gz.
File metadata
- Download URL: iracingdataapi-0.0.4.tar.gz
- Upload date:
- Size: 3.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/4.0.1 CPython/3.9.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
be7203f91d560dd7a6cbab62a8cecda3e751d09edca55c55e1798dfff7bc0a0d
|
|
| MD5 |
47807c6c2f98e1d33907e8412d7ea8bc
|
|
| BLAKE2b-256 |
dfe56420f8edd256be2ac801d12a67ca6736711786478505461c301acec4f415
|