Skip to main content

A lightweight (5 KB) Python client to retrieve NBA data from stats.nba.com

Project description

dlo

A lightweight (5 KB) Python client to retrieve NBA data from stats.nba.com.

Installation

pip install dlo                                     # definite stable version
git clone https://github.com/avkondepudi/dlo.git    # latest version
pip install .

Dependencies

  • requests (required)
  • pandas (recommended)

Usage

The API isn't publicly well-documented. You can find a list of endpoints here and here.

from dlo import Data                                # import module

LOCAL = {                                           # set local parameters
    "PlayerID": 1626156,
    "Season": "2018-19",
    "SeasonType": "Regular Season"
}

d = Data(**LOCAL)                                   # create instance of Data class with local parameters
d.endpoint = "playergamelog"                        # set endpoint

data = d.getData()                                  # get data (game log of D'Angelo Russell for 2018-19 Regular Season)

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

dlo-0.0.6.tar.gz (6.0 kB view details)

Uploaded Source

Built Distribution

dlo-0.0.6-py3-none-any.whl (16.3 kB view details)

Uploaded Python 3

File details

Details for the file dlo-0.0.6.tar.gz.

File metadata

  • Download URL: dlo-0.0.6.tar.gz
  • Upload date:
  • Size: 6.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.18.4 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.33.0 CPython/3.6.3

File hashes

Hashes for dlo-0.0.6.tar.gz
Algorithm Hash digest
SHA256 5ac809d8c5522d22f6769c3c1bd56909a48c38ed8a971b70096cec219f589238
MD5 5ddd0eccdfcac69b0b0bad2a0b92b6c7
BLAKE2b-256 c0e83c33fcd7796aa4790f14af72f1546eaccb39f55e090dca2ed19f6c81bd78

See more details on using hashes here.

File details

Details for the file dlo-0.0.6-py3-none-any.whl.

File metadata

  • Download URL: dlo-0.0.6-py3-none-any.whl
  • Upload date:
  • Size: 16.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.18.4 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.33.0 CPython/3.6.3

File hashes

Hashes for dlo-0.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 3025cfe969dd82807446e75dffd36ffade8f2158a0aef4be4dd70fbe2d4d505c
MD5 8c9892b3817b75fdf69a6e179207b970
BLAKE2b-256 ff7d7785e8594efadc879a2646f92fdba0c231bbe6b99c186dd50e8a25dea428

See more details on using hashes here.

Supported by

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