Skip to main content

Simple iRacing API Wrapper

Project description

[!NOTE] This package is not officially launched on pypi yet

iracing-garage

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

The official documentation can be found here.

1. Install the package 📦

Clone the repo:

git clone https://github.com/dangkv/iracing_garage.git
cd iracing_garage

Install dependencies:

pip install -r requirements.txt

(Optional: consider creating 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

iracing_garage-0.0.5.tar.gz (11.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

iracing_garage-0.0.5-py3-none-any.whl (17.2 kB view details)

Uploaded Python 3

File details

Details for the file iracing_garage-0.0.5.tar.gz.

File metadata

  • Download URL: iracing_garage-0.0.5.tar.gz
  • Upload date:
  • Size: 11.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.15

File hashes

Hashes for iracing_garage-0.0.5.tar.gz
Algorithm Hash digest
SHA256 658ec6b92c83c21a4b381addb09c5bfb5f1ac1052d755494911c7912d9047302
MD5 8ba15ad1f4e8013f8a939f8f014973aa
BLAKE2b-256 956f926decfc245be284d6e38bc22a6f189e961dbb32ca352817d8f0c83865b9

See more details on using hashes here.

File details

Details for the file iracing_garage-0.0.5-py3-none-any.whl.

File metadata

  • Download URL: iracing_garage-0.0.5-py3-none-any.whl
  • Upload date:
  • Size: 17.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.15

File hashes

Hashes for iracing_garage-0.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 6beb135382e9b3d7ef19fb2165e94afda4b99155528704c754a83f2afe8c708e
MD5 79608f61266df8abf4e42828d6441746
BLAKE2b-256 20ea0c01f866ae09492e46c79e94b8a0f62e24a5844c25f6d8bca2d447027f7d

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page