Skip to main content

A Python Wrapper of NBA RESTful Stats APIs

Project description

python-nbaclient

A Python Wrapper of NBA Stats RESTful APIs

Installation

pip install python_nbaclient

Example

from python_nbaclient import teams
teams.FranchiseLeaders(1610612738)
{ 'parameters': {'LeagueID': None, 'TeamID': 1610612738},
  'resource': 'playerawards',
  'resultSets': [ { 'headers': [ 'TEAM_ID',
                                 'PTS',
                                 'PTS_PERSON_ID',
                                 'PTS_PLAYER',
                                 'AST',
                                 'AST_PERSON_ID',
                                 'AST_PLAYER',
                                 'REB',
                                 'REB_PERSON_ID',
                                 'REB_PLAYER',
                                 'BLK',
                                 'BLK_PERSON_ID',
                                 'BLK_PLAYER',
                                 'STL',
                                 'STL_PERSON_ID',
                                 'STL_PLAYER'],
                    'name': 'FranchiseLeaders',
                    'rowSet': [ [ 1610612738,
                                  26395,
                                  76970,
                                  'John Havlicek',
                                  6945,
                                  600003,
                                  'Bob Cousy',
                                  21620,
                                  78049,
                                  'Bill Russell',
                                  1703,
                                  305,
                                  'Robert Parish',
                                  1583,
                                  1718,
                                  'Paul Pierce']]}]}

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

python_nbaclient-0.0.7.tar.gz (4.4 kB view hashes)

Uploaded Source

Built Distribution

python_nbaclient-0.0.7-py3-none-any.whl (17.1 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page