Get data from Ergast
Project description
Zoompy is a Python wrapper for calling the Ergast API, to get data related to Formula 1. It can be used to get the races, results, driver standings, constructors standings and qualifying results from any year or from a custom duration
Installation
Use the package manager pip to install zoompy.
pip install zoompy==1.0
Usage
To obtain any of the data it is neccesary to first obtain the races in that particular time frame and then get the rounds in those season(s).
Obtaining Lists of Races
zoompy.races(start_year,end_year)
# To obtain races from 2020
zoompy.races(2020,2021)
Obtaining Rounds
races = zoompy.races(2020,2021)
rounds = zoompy.get_rounds(races)
Obtaining Results
races = zoompy.races(2020,2021)
rounds = zoompy.get_rounds(races)
results= zoompy.results(rounds)
Obtaining Driver Standing
races = zoompy.races(2020,2021)
rounds = zoompy.get_rounds(races)
d_standings= zoompy.driver_standings(rounds)
Obtaining Constructor Standing
races = zoompy.races(2020,2021)
rounds = zoompy.get_rounds(races)
c_standings= zoompy.constructor_standings(rounds)
Obtaining Qualifying data
zoompy.qualifying(start_year,end_year)
#obtaining qualifying results from 2020
qualifying= zoompy.qualifying(2020,2021)
Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.
License
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
zoompy-1.0.tar.gz
(4.8 kB
view hashes)
Built Distribution
zoompy-1.0-py3-none-any.whl
(5.2 kB
view hashes)