Skip to main content

A library to manage and update NFL data in a relational database.

Project description

Module nfldb provides command line tools and a library for maintaining and querying a relational database of play-by-play NFL data. The data is imported from nflgame, which in turn gets its data from a JSON feed on NFL.com’s live GameCenter pages. This data includes, but is not limited to, game schedules, scores, rosters and play-by-play data for every preseason, regular season and postseason game dating back to 2009.

In theory, both nfldb and nflgame provide access to the same data. The difference is in the execution. In order to search data in nflgame, a large JSON file needs to be read from disk and loaded into Python data structures for each game. Conversely, nfldb’s data is stored in a relational database, which can be searched and retrieved faster than nflgame by a few orders of magnitude. Moreover, the relational organization of data in nfldb allows for a convenient query interface to search NFL play data.

The database can be updated with real time data from active games by running the nfldb-update script included with this module as often as you like. Roster updates are done automatically at a minimum interval of 12 hours.

nfldb has comprehensive API documentation and a wiki with examples.

nfldb can be used in conjunction with nflvid to search and watch NFL game footage.

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

nfldb-0.0.1.tar.gz (1.1 MB view details)

Uploaded Source

Built Distribution

nfldb-0.0.1.linux-x86_64.exe (1.1 MB view details)

Uploaded Source

File details

Details for the file nfldb-0.0.1.tar.gz.

File metadata

  • Download URL: nfldb-0.0.1.tar.gz
  • Upload date:
  • Size: 1.1 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for nfldb-0.0.1.tar.gz
Algorithm Hash digest
SHA256 d361280e9b2dc243eb531626ede0d05485fb822fa3bbb06bef6cb9ee04772fae
MD5 ee318ac69646a35edfeb24c85ad65f2e
BLAKE2b-256 4ebbc629798d8c6295265b22cd31f1b30c14b8477c5bc70970ab6c62ca7fb9dd

See more details on using hashes here.

File details

Details for the file nfldb-0.0.1.linux-x86_64.exe.

File metadata

File hashes

Hashes for nfldb-0.0.1.linux-x86_64.exe
Algorithm Hash digest
SHA256 aba0b52523407c9a1527c0cc8ba39fc08dfccf456ea9e06bd52d6430d430f96f
MD5 849db299277f98915ce2094f2d431f6d
BLAKE2b-256 9c8698b6d3f2181de273250d9e674dcd35dbe0987c7c967420fc28877bc3edbc

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