Skip to main content

A package for retrieving and processing event-based video game data. Additional authors: Nick Spevacek, Renee Li, John McCloskey, Zach Studdiford, Glenn Palmer, Haishuo Chen, Daus, Ameya Kshirsagar, Yunqing Xiao, Erik Harpstead, Manuel Jesus Gomez Moratilla

Project description

Python3 implementation of the Open Game Gata feature extractor

This code pulls raw game data from a SQL database, BigQuery database, or export file; chooses appropiate features to extract based on the "game_id"; and writes results to a file for data mining.

See http://fielddaylab.wisc.edu/opengamedata for exports of raw events and the features created by this code for a collection of education games. See https://www.youtube.com/watch?v=gelyDJjxIeg for a walkthorugh of the high-level code structure.

Please feel free to modify this code, add new features or games and share back to the authors. We will deploy improvements to the Open Game Data site.

Setup:

  • Install python3 (could write a whole chapter on this)
  • Install python dependencies: "pip3 install -r requirements.txt"
  • Copy config.py.template to config.py and set server/authentication data
  • Download any authentication keys needed for BigQuery game data projects

Running Data Exports:

usage: <python> main.py <cmd> [<args>]

<python> is your python command.
<cmd>    is one of the available commands:
         - export
         - export-events
         - export-features
         - info
         - readme
         - help
[<args>] are the arguments for the command:
         - export: game_id, [start_date, end_date]
             game_id    = id of game to export
             start_date = beginning date for export, in form mm/dd/yyyy (default=first day of current month)
             end_date   = ending date for export, in form mm/dd/yyyy (default=current day)
         - export-events: game_id, [start_date, end_date]
             game_id    = id of game to export
             start_date = beginning date for export, in form mm/dd/yyyy (default=first day of current month)
             end_date   = ending date for export, in form mm/dd/yyyy (default=current day)
         - export-features: game_id, [start_date, end_date]
             game_id    = id of game to export
             start_date = beginning date for export, in form mm/dd/yyyy (default=first day of current month)
             end_date   = ending date for export, in form mm/dd/yyyy (default=current day)
         - info: game_id
             game_id    = id of game whose info should be shown
         - readme: game_id
             game_id    = id of game whose readme should be generated
         - help: *None*
[<opt-args>] are option arguments, which affect certain commands:
         --file: specifies a file to export events or features
         --monthly: with this flag, specify dates by mm/yyyy instead of mm/dd/yyyy

(you can see a similar printout directly from the system by running python3 main.py --help)

Example use:

python3 main.py export JOWILDER 1/1/2019 2/28/2019

In the example above, all JOWILDER data from beginning of January to end of February (in 2019) is exported. This includes both the events and the processed session features.

python3 main.py export JOWILDER --monthly 1/2019

In the example above, all JOWILDER data from the month of January 2019 is exported. This includes both the events and the processed session features.

python3 main.py export-events JOWILDER 1/1/2019 2/28/2019

In the example above, only the events from the JOWILDER data during given date range are exported.

python3 main.py export-features JOWILDER 1/1/2019 2/28/2019

In the example above, only the processed session/player/population features from the JOWILDER data during given date range are exported.

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

opengamedata_core-0.0.11.tar.gz (355.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

opengamedata_core-0.0.11-py3-none-any.whl (622.9 kB view details)

Uploaded Python 3

File details

Details for the file opengamedata_core-0.0.11.tar.gz.

File metadata

  • Download URL: opengamedata_core-0.0.11.tar.gz
  • Upload date:
  • Size: 355.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.0.0 CPython/3.12.3

File hashes

Hashes for opengamedata_core-0.0.11.tar.gz
Algorithm Hash digest
SHA256 d93cfbd5d2d7970af1503400548d90b15b3017a7808d06542afbaddb9bf628a7
MD5 e98fb21a15a758870e2e9c332ead0bb9
BLAKE2b-256 297919fdd92fdbb3a55e1fe1c4fa01e892116c14da22cfa10b1a06bdf947394e

See more details on using hashes here.

File details

Details for the file opengamedata_core-0.0.11-py3-none-any.whl.

File metadata

File hashes

Hashes for opengamedata_core-0.0.11-py3-none-any.whl
Algorithm Hash digest
SHA256 21ecc5917059cc6c14beeead61c3ddd250cad9614529179417ea812f7dda2667
MD5 6c5201eeaa16cb5a494ee024cf145996
BLAKE2b-256 b0bed2883e254b7eea9577d248ad4ead88cc5851763a9f0ba89d67fac969c935

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page