API Wrapper for Data golf endpoints
Project description
Data Golf API (Unofficial)
An Unofficial API Library for DataGolf.com APIs
This is a Python library for interacting with the DataGolf APIs. DataGolf is a golf analytics platform that provides a wide range of data and analytics for golf tournaments, players, and courses.
This is an unofficial API lib, and it is not affiliated with DataGolf in any way.
This is being built to support some ML projects I am working on. I will be continuing to add more endpoints as I need them. If you have a specific endpoint you need, please open a ticket for submit a PR.
Usage
(Currently this only supports JSON formats, CSV is in progress)
pip install data_golf
from data_golf import DataGolfClient
client = DataGolfClient(api_key="YOUR_API_KEY")
# For more request logging
client = DataGolfClient(api_key="YOUR_API_KEY", verbose=True)
General APIs
# Player List
players = client.general.player_list()
# Current Season Tour Schedule
# Can use optinal parameter 'tour' to filter by tour: pga, euro, kft, alt, liv
tour_schedule = client.general.tour_schedule()
tour_schedule = client.general.tour_schedule(tour="pga")
tour_schedule = client.general.tour_schedule(tour="liv")
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
data_golf-0.2.1.tar.gz
(4.0 kB
view hashes)
Built Distribution
Close
Hashes for data_golf-0.2.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | be5efaca3010a7485b906d3ad8c0a5c8c466d2190e1099f16d8b7f60f178e369 |
|
MD5 | 843c2298d87b13f2504eccf469d043c2 |
|
BLAKE2b-256 | 9ba8ce0c3ded8c2ed3bb736400398588cb42cefec302e661f229a7a3c985e3a8 |