From 6aa6671c4fa1d166d111cd71a074753f338b9115 Mon Sep 17 00:00:00 2001 From: Jacob Anderson Date: Sun, 26 Jul 2020 14:25:36 -0700 Subject: [PATCH 1/2] Update README.md --- README.md | 35 ++++++----------------------------- 1 file changed, 6 insertions(+), 29 deletions(-) diff --git a/README.md b/README.md index 1e87f20..d8f42cb 100644 --- a/README.md +++ b/README.md @@ -1,35 +1,12 @@ # About +This package is an asynchronous API "wrapper" for retrieving data from iRacing. We use the term "wrapper" loosely as iRacing does not yet have an officially documented API; However, we've done our best to build something that might resemble one. -This package is an API wrapper/client for retrieving data from iRacing. We use the term "wrapper" loosely because iRacing does not yet have an officially documented API. However, we've done our best to build something that might resemble an actual API. +The goal of this project is to provide access to iRacing stats in a manner that is convienent, flexible, and efficient. In using this package, if you find something in its design that goes against these goals, **we want to know.** The contributors of this project use Discord as the primary means of communication; The [iRacing Open Wheel server](https://discord.gg/UwnhM7w) was created by the author of this project and hosts the channels for discussion there. When joining, please ask Jacob Anderson for the role to see the appropriate channels. -Please feel free to open issues, offer suggestions, or fork and submit a pull request to help polish things up here. We only ask that you be willing to openly discuss things in a respectful manner. If you'd like to chat in Discord, I can be reached in the [iRacing Open Wheel Discord](https://discord.gg/UwnhM7w) (nearing 1000 members!). My username is Jacob Anderson7#4903. I'd be happy to hear from those interested in this project and if enough people reach out I'll make a section just for this project. +# Documentation & Discussion +All documentation for this project is available through the [Github Pages project site](https://esterni.github.io/pyracing/). -# Usage -```py -import pyracing -import pyracing.constants as ct -# Storing in system env is another option and use os.getenv() to retrieve them. -username = 'username' -password = 'password' -ir = pyracing.client.Client('username', 'password') # or any other method -await ir.authenticate() - -iRating = await ir.get_irating(ct.Category.road, custid) - -current_irating = iRating.current() -``` - -## See the wiki page [List of Functions](https://github.com/Esterni/pyracing/wiki/List-of-functions) for a list of what is available to use. - -FILES -===== - -- client.py : This is where the main class is defined. -- constants.py : Useful constants used in request fields sent to the service. - -REQUIREMENTS -============ - -Python 3.8+ (with network access) +# Dependancies +[httpx](https://www.python-httpx.org/) = 0.13.x From bcb95ac8fc3787986ca8e6db60872c91b26f5a6b Mon Sep 17 00:00:00 2001 From: Jacob Anderson Date: Sun, 26 Jul 2020 14:27:38 -0700 Subject: [PATCH 2/2] Update README.md --- README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index d8f42cb..deb6f5d 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,9 @@ # About This package is an asynchronous API "wrapper" for retrieving data from iRacing. We use the term "wrapper" loosely as iRacing does not yet have an officially documented API; However, we've done our best to build something that might resemble one. -The goal of this project is to provide access to iRacing stats in a manner that is convienent, flexible, and efficient. In using this package, if you find something in its design that goes against these goals, **we want to know.** The contributors of this project use Discord as the primary means of communication; The [iRacing Open Wheel server](https://discord.gg/UwnhM7w) was created by the author of this project and hosts the channels for discussion there. When joining, please ask Jacob Anderson for the role to see the appropriate channels. +The goal of this project is to provide access to iRacing stats in a manner that is convienent, flexible, and efficient. In using this package, if you find something in its design that goes against these goals, **we want to know.** + +The contributors of this project use Discord as the primary means of communication; The [iRacing Open Wheel server](https://discord.gg/UwnhM7w) was created by the author of this project and hosts the channels for discussion there. When joining, please ask Jacob Anderson for the role to see the appropriate channels. # Documentation & Discussion All documentation for this project is available through the [Github Pages project site](https://esterni.github.io/pyracing/).