Metadata-Version: 2.1
Name: iracingdataapi
Version: 0.0.5
Summary: A simple wrapper around the iRacing General Data API
Home-page: https://github.com/jasondilworth56/iracingdataapi
Author: Jason Dilworth
Author-email: hello@jasondilworth.co.uk
Project-URL: Bug Tracker, https://github.com/jasondilworth56/iracingdataapi/issues
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.6
Description-Content-Type: text/markdown
License-File: LICENSE

# About

iracing-data-api is a simple Python wrapper around the General Data API released by iRacing in January 2022 and documented [here](https://forums.iracing.com/discussion/15068/general-availability-of-data-api/).

The client allows easy access to some of the most useful endpoints of the data API. 

# Installation
`pip install iracingdataapi`

# Examples

```python
from iracingdataapi.client import irDataClient

idc = irDataClient(username=[YOUR iRACING USERNAME], password=[YOUR iRACING PASSWORD])

# get the summary data of a member
idc.get_member_summary(cust_id=20979)

# get latest results of a member
idc.get_member_recent_races(cust_id=209179)

# get all laps for a specific driver in a race
idc.get_result_lap_data(subsession_id=43720351, cust_id=209179)
```

All available methods of `irDataClient` are included in `client.py`.

# Contributing

I welcome all pull requests for improvements or missing endpoints over time as they are added by iRacing.
