Skip to main content

Package for obtaining live nfl play by play data

Project description

nfllivepy

About

Python package for obtaining live nfl play by play data

For pbp data for past games, view nfl-data-py which gets its data from the nflreadr package. This data contains postprocessing variables which are more detailed then the ones in the live data.

Much of this package is inspired by the work of nfl-nerd. For a full list of all the ESPN v2 NFL api endpoints, click here.

Installation

This project can be installed with pip by running:
pip install nfllivepy

Usage

nfllivepy is very simple and easy to use, wth two simple methods to obtain live data.

from nfllivepy.requester.pbp_requester import PBPRequester

requester = PBPRequester()

# Get live data for all current games
requester.get_live_pbp_all_games()

# Get live data for the Chicago Bears
requester.get_live_pbp_for_team("CHI")

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

nfllivepy-0.1.0.tar.gz (6.6 kB view hashes)

Uploaded Source

Built Distribution

nfllivepy-0.1.0-py3-none-any.whl (7.6 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