This is a simple and free Python wrapper around the iRacing API, created for the awesome iRacing community. Whether you're building a tool, analyzing your races, or just love data β this is your pit crew in code form. π
The official documentation can be found here.
pip install iracing-garage
(Optional: consider installing in a virtual environment)
You'll need to log in with your iRacing email and password (this uses the same method the iRacing web portal does).
from iracing_garage import iRacingGarage
email = 'maxv@gmail.com'
password = 'hotwheels'
iracing = iRacingGarage(email, password)
π This iRacing Garage does not store your credentials. It's all handled securely at runtime.
After logging in, you can access a bunch of data in JSON format from the iRacing API. Here are some examples:
cars = iracing.car.get()
print(cars)
tracks = iracing.track.get()
print(tracks)
cust_id = 123456
driver_data = iracing.stats.summary(cust_id)
print(driver_data)
subsession_id = 654321
simsession_number = 0
results = iracing.results.get(subsession_id, simsession_number)
print(results)
Check out the Data Endpoints page for more data points!!
Enjoy the ride. ποΈπ¨
You can check out the full license here
This project is licensed under the terms of the MIT license.