Home¶
Welcome to iracing_garage! 🏎️¶
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. 😎
🚀 Getting Started¶
1. Install the package 📦¶
(Optional: consider installing in a virtual environment)
2. Authentication 🛡️¶
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.
🔍 What Can You Do?¶
After logging in, you can access a bunch of data in JSON format from the iRacing API. Here are some examples:
Get Cars 🚗¶
Get Tracks 🏁¶
Get Driver Stats 📊¶
Get Race Results 🏆¶
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!!¶
📬 Contact¶
🏁 Final Lap¶
Enjoy the ride. 🏎️💨
- :fontawesome-brands-html5: HTML for content and structure
- :fontawesome-brands-js: JavaScript for interactivity
- :fontawesome-brands-css3: CSS for text running out of boxes
- :fontawesome-brands-internet-explorer: Internet Explorer ... huh?