Skip to main content

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

MIT

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

zoompy-1.0.tar.gz (4.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

zoompy-1.0-py3-none-any.whl (5.2 kB view details)

Uploaded Python 3

File details

Details for the file zoompy-1.0.tar.gz.

File metadata

  • Download URL: zoompy-1.0.tar.gz
  • Upload date:
  • Size: 4.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.3

File hashes

Hashes for zoompy-1.0.tar.gz
Algorithm Hash digest
SHA256 59a6696116b7486dd0f9a516132a1b74eb59c103441cfc0bf6a83215edc8df8e
MD5 89dbde81bc1848f0e0696669cb584b22
BLAKE2b-256 3b8f6c91780f9fd1f0443aa0cb06e452a0cf4489627e40c26e1d90b5882a2d55

See more details on using hashes here.

File details

Details for the file zoompy-1.0-py3-none-any.whl.

File metadata

  • Download URL: zoompy-1.0-py3-none-any.whl
  • Upload date:
  • Size: 5.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.3

File hashes

Hashes for zoompy-1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 546cfb95c88202f10e351866958caee5b8a5cbf0d27d15723097b634631c5874
MD5 dc091053377efd16eda857def5793b33
BLAKE2b-256 6660936f194a11ac976d6d8f298d590bda8cf5ae2f961c7afee62f37f1d862db

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