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.1.0.tar.gz (6.1 kB view details)

Uploaded Source

Built Distribution

dlo-0.1.0-py3-none-any.whl (16.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: dlo-0.1.0.tar.gz
  • Upload date:
  • Size: 6.1 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.1.0.tar.gz
Algorithm Hash digest
SHA256 0a4b4a847aecabeca452fcd3d62d6c168b40a3fbd5f5f6417ed80660f615fd1d
MD5 9c5597feb75070e9ae7d384afc7c9284
BLAKE2b-256 668deb78e347bc3a159fc910a261d8217c92ca8f45785847bfeb301bc6a8b32b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: dlo-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 16.5 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.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3d3da308036c6e3c3d76cdb70305e3d0f135999601d3d9b363605bd503581e33
MD5 ab5243383fd050c72f1d62e484af6fcf
BLAKE2b-256 a4de01d8e2eec555c93c6241b2c71ab4f84a30348516d53b29da2866b7faa5ef

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