Skip to content

A Python app to get data from the iRacing API endpoints. Helps you get stats, race results, and more! 🏎️ 🏁

License

Notifications You must be signed in to change notification settings

dangkv/iracing_garage

Repository files navigation

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

The official documentation can be found here.

1. Install the package πŸ“¦

pip install iracing-garage

(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 πŸš—

cars = iracing.car.get()
print(cars)

Get Tracks 🏁

tracks = iracing.track.get()
print(tracks)

Get Driver Stats πŸ“Š

cust_id = 123456
driver_data = iracing.stats.summary(cust_id)
print(driver_data)

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. πŸŽοΈπŸ’¨

License

You can check out the full license here

This project is licensed under the terms of the MIT license.

About

A Python app to get data from the iRacing API endpoints. Helps you get stats, race results, and more! 🏎️ 🏁

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages