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.4.tar.gz (11.2 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.4-py3-none-any.whl (17.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: iracing_garage-0.0.4.tar.gz
  • Upload date:
  • Size: 11.2 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.4.tar.gz
Algorithm Hash digest
SHA256 5f783603bf0cd3d004c0cdf4110e66cf1d4e43630f42fc8461607a57e80adb17
MD5 1a9bef3baa8e06f186479c38fdc9b8bb
BLAKE2b-256 9260b17f8978274c1a0bdf98d548e4ecd7d259f21a37da78eabb060fb3095832

See more details on using hashes here.

File details

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

File metadata

  • Download URL: iracing_garage-0.0.4-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.4-py3-none-any.whl
Algorithm Hash digest
SHA256 c214237c2f1bc37974f92417a914aeba0b1e92b0667caadf1d69588400be7998
MD5 ac58ac196ae0371ecb36dfa1cbd52664
BLAKE2b-256 04b661e2a464081a5230691fb0af2f13b32bd75994548673d914527171585421

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