Skip to content

Module for creating Grafana style metrics dashboards in python.

License

Notifications You must be signed in to change notification settings

pkubiak/statsgrid

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published