Skip to main content

A wrapper over the stats.nba.com API which builds in caching of GET queries.

Project description

Cache-or-GET NBA Wrapper

This is a simple wrapper over the stats.nba.com API which caches requests made.

Visit my Personal Website for other projects.

Dependencies

This project uses requests and sqlalchemy

Instructions

pip install cog_nba

Available Commands

The following command scan be used at this stage.

cog_nba.nba.get_current_players()

cog_nba.nba.get_all_players()

cog_nba.nba.get_player_career_data(player_id)

Alternatively, you can access any given endpoint by using:

cog_nba.nba.get(endpoint, params)

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

cog_nba-0.0.8.tar.gz (3.7 kB view details)

Uploaded Source

File details

Details for the file cog_nba-0.0.8.tar.gz.

File metadata

  • Download URL: cog_nba-0.0.8.tar.gz
  • Upload date:
  • Size: 3.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/39.0.1 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.1

File hashes

Hashes for cog_nba-0.0.8.tar.gz
Algorithm Hash digest
SHA256 8a478c095ddda10bc74a7e8da02871922e62f4983f51bc3af5d509ed90835cbe
MD5 a4974f4e709809831869c5720fd29fab
BLAKE2b-256 97046d9e38900765d1a1a77c01576f9a83b8f35fbe352f711b0d35d04b645f9c

See more details on using hashes here.

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