How walrusquant/pgatourpy works
pgatourPY is a Python client that exposes PGA Tour data as pandas DataFrames. Users call its public functions for live tournament data, player and tournament records, statistics and standings, or editorial content; those functions retrieve API data and shape it for use. The internal request layer handles GraphQL, REST and configuration requests, while parsing helpers normalize labels and compressed payloads. The README documents the capabilities; sampled source confirms request handling and parsing, but not every client-to-operation mapping.
Main entry points: _api.py Request Layer · __init__.py Public Functions · client.py Client Functions · stat_ids.py Stat Lookup
Components 17
Public API
- Public Functions
src/pgatourpy/__init__.py
Golf Data
- Tournament Data
src/pgatourpy/client.py - Live Scoring
src/pgatourpy/client.py - Shot Tracking
src/pgatourpy/client.py - Stats & Standings
src/pgatourpy/client.py - Stat Lookup
src/pgatourpy/stat_ids.py - Player Profiles
src/pgatourpy/client.py
Content
- News & Video
src/pgatourpy/client.py - CMS Content
src/pgatourpy/client.py
Client Internals
- Client Functions
src/pgatourpy/client.py - Request Layer
src/pgatourpy/_api.py - GraphQL Operations
src/pgatourpy/graphql - Parsing Helpers
src/pgatourpy/_parse.py
Other components
- Python User
- PGA GraphQL API
- PGA REST API
- PGA Config API
Connections 16
- Python User → Public Functions: calls
README.md - Public Functions → Client Functions: exports
src/pgatourpy/__init__.py - Python User → Tournament Data: requests
README.md - Python User → Live Scoring: requests
README.md - Python User → Shot Tracking: requests
README.md - Python User → Stats & Standings: requests
README.md - Python User → Player Profiles: requests
README.md - Python User → News & Video: requests
README.md - Python User → CMS Content: requests
README.md - Client Functions → Request Layer: requests data
src/pgatourpy/client.py - Request Layer → GraphQL Operations: loads queries
src/pgatourpy/_api.py - Request Layer → PGA GraphQL API: sends GraphQL
src/pgatourpy/_api.py - Request Layer → PGA REST API: sends REST
src/pgatourpy/_api.py - Request Layer → PGA Config API: requests config
src/pgatourpy/_api.py - Client Functions → Parsing Helpers: uses helpers
src/pgatourpy/client.py - Public Functions → Stat Lookup: exports lookup
src/pgatourpy/__init__.py