Skip to content

Latest commit

 

History

8 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Icon

statsgrid

Licence MIT Python 3.0 GitHub Workflow Status Binder


Description

Module for creating Grafana style metrics dashboards in python.

Preview image

Installation

python -m pip install git+https://github.com/pkubiak/statsgrid.git

Examples

from statsgrid import StatsGrid

StatsGrid([
    [
        ("accuracy", "0.71 ↗", dict(style="success")),
        ("precision", "0.92 ↘", dict(style="warning")),
        ("f1-score",  "0.80} ↗", dict(style="success"))
    ], [
        ("train-corpus-size", 1234567),
        ("test-corpus-size", 34567),
        ("no-classes", 42),
        ("training-time [s]", 123.45),
    ], [
        ("model-location", "s3://mybucket/model.pth", dict(size=3)),
        ("model-size [MiB]", 234.54), 
    ]
], caption="Classifier Training Summary", style="dark")

Check /examples directory for sample Jupyter Notebooks or run it using mybinder.org

API Reference

TBA

CHANGELOG

  • 2022.04.14

    • 🚀 implemented automatic background gradient generation for any color
    • 🔥 renamed style to color cell parameter
    • 🚀 add text cell style
  • 2022.04.08

    • initial version

About

Module for creating Grafana style metrics dashboards in python.

Topics

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages