astrowonk / aoc_scoreboard

Python class to analyze private leaderboard Advent of Code json

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Advent of Code Scoreboard

This class will parse a JSON file from the API listed on an Advent of Code private scoreboard into pandas dataframes.

You should be able to install with

python setup.py install

or even

pip install .

This module powers the AOC Dashboard which is a Plotly Dash web app that renders charts and tables based on user-uploaded .json file from the AoC site. The web app is running live on my web site, if you want to check it out.

Usage:

from aoc_scoreboard import AOCScoreboard
scores = AOCScoreboard('myfile.json')

## one row per name, time, day, star, points, and running total points
scores.df

## axis name, columns points by day
scores.make_daily_leaderboard()

## Minutes between stars by day for each user
scores.minutes_between_stars()

Screenshots from Jupyter

Screen Shot 2021-12-13 at 12 35 57 PM

About

Python class to analyze private leaderboard Advent of Code json

License:GNU General Public License v2.0


Languages

Language:Python 100.0%