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.

Files for cog-nba, version 0.0.8
Filename, size File type Python version Upload date Hashes
Filename, size cog_nba-0.0.8.tar.gz (3.7 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page