Simple iRacing API Wrapper
Project description
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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file iracing_garage-0.0.6.tar.gz.
File metadata
- Download URL: iracing_garage-0.0.6.tar.gz
- Upload date:
- Size: 11.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.15
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fb11c26c739647bef1791ac97cb4648da9a713fa20445e35b79a4f88db254e74
|
|
| MD5 |
e8855eed800674699b807e5d880d6c45
|
|
| BLAKE2b-256 |
5f072393c9a6fe81e972b4da75ed672c52a4605aa2652d4ca1a88cf35385c7b4
|
File details
Details for the file iracing_garage-0.0.6-py3-none-any.whl.
File metadata
- Download URL: iracing_garage-0.0.6-py3-none-any.whl
- Upload date:
- Size: 17.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.15
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
dba682d6f5d78f293feb1184972fea04523496617f6ffd3dab2a9b99f53a8136
|
|
| MD5 |
add9507849b0db977c018c70ad28b03c
|
|
| BLAKE2b-256 |
cf648e30940f7a6b49cae0371944ff7829a9fd196af3b3162e1b34dc6282c56e
|