Coder Social home page Coder Social logo

dangkv / iracing_garage Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 1.54 MB

A Python package to simplify data extraction from iRacing API endpoints. Helps you get stats, race results, and more! ๐ŸŽ๏ธ ๐Ÿ

License: MIT License

Python 100.00%
api-wrappers data iracing iracing-api

iracing_garage's People

Contributors

dangkv avatar hmkamel avatar

Stargazers

 avatar

Watchers

 avatar  avatar

iracing_garage's Issues

Create a README.md

What makes a good README.md?

For users:

  • How to install package
  • How to get started
  • What are the available methods to use

For contributors:

  • What are the code standards?
    • how to deploy
  • How to setup environment to contribute

Implement Python Black and Flake8 Pre commits

Goal

The objective of this issue is to create a CI (Continuous Integration) to force Python Black and pep8 standards to our code base. Black is a python package that automatically for formats your python code. Flake8 is a package that highlights Python code that doesn't follow pep8 standards. This allows the code to be readable, maintainable, and efficient.

Objective

  • On commits, I want the automation pep8 and black to run
  • I want a github action to validate if the code is up to standards before being implemented into production

Steps

  • install pre-commits
  • install black and flake8 modele in pre-commits
  • configure pre-commits rules
  • configure black and flake8 rules

Resources

Create a script to extract metadata on each iRacing endpoints and save it in a formatted markdown file

Objective:

Create a script that extracts the iRacing endpoint parameters and save it in a formatted markdown file.

You can find all the metadata in this json file: api.json

Acceptance Criteria:

  • One md file for all the methods and arguments
  • The python script itself does not need to be In the package, just the formatted md files
  • Save the file under ./docs as methods.md

The format of the markdown:

### car.assets()

image paths are relative to https://images-static.iracing.com/

link:`https://members-ng.iracing.com/data/car/assets`

---

### car.get()

link: `https://members-ng.iracing.com/data/car/get`

---

### carclass.get()

link: `https://members-ng.iracing.com/data/carclass/get`

---

### hosted.combined_sessions()

Sessions that can be joined as a driver or spectator, and also includes non-league pending sessions for the user.

| Argument   | Data Type | Description                                                      | Required |
|------------|-----------|------------------------------------------------------------------|----------|
| package_id | number    | If set, return only sessions using this car or track package ID. | False    |

link: `https://members-ng.iracing.com/data/hosted/combined_sessions`

SPIKE: Configure racing_connect For Open Source Contribution

Goal:

To configure Github in a way to help the iRacing community extract API data. Github stars help make the package more popular.

Brief topics to look into

  • What GitHub repo settings do we need to configure so that others can contribute to the project?
  • Security Settings?
  • What are Insights / Community Standards?
  • Issue Templates
  • PR Templates

Useful Links:

  1. https://contributing.md/
  2. https://opensource.guide/starting-a-project/
  3. https://www.youtube.com/watch?v=eNDuqcrLTLs
  4. https://www.youtube.com/watch?v=1wKtKFY_ueM

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.