Skip to main content

Library to create KPI metric for streamlit dashboards

Project description

What?

streamlit-kpi-metric library function is to facilitate display of key-point indicators to dashboards.


WHY?

  • Effective KPIs are important metrics to make sure that you can summerize and pay attention to important indicators.

  • Library makes it easy to generate KPI with different labels to mention important figures.


HOW?

  • Install library to respective project's pyproject.toml

poetry add streamlit-kpi-metrics
  • Importing function to parsing scripts

from streamlit_kpi_metrics import metric, metric_row
  • Implementing function

Write following code to a file main.py

st.write("## Solo Metric")
metric("Metric 0", 150)

st.write("## Multiple Metric")
metric_row(
    {
        "Metric 1": 10,
        "Metric 2": 20,
        "Metric 3": 30,
        "Metric 4": 40,
        "Metric 5": 50,
    }
)
  • Running file

poetry run streamlit run main.py

  • Output of the mentioned code


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

streamlit_kpi_metric-0.1.0.tar.gz (2.1 kB view details)

Uploaded Source

Built Distribution

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

streamlit_kpi_metric-0.1.0-py3-none-any.whl (2.1 kB view details)

Uploaded Python 3

File details

Details for the file streamlit_kpi_metric-0.1.0.tar.gz.

File metadata

  • Download URL: streamlit_kpi_metric-0.1.0.tar.gz
  • Upload date:
  • Size: 2.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.4 CPython/3.9.1 Darwin/20.3.0

File hashes

Hashes for streamlit_kpi_metric-0.1.0.tar.gz
Algorithm Hash digest
SHA256 2c80680c969b7aaa080c7090b3d37ec9554886a68c9e2365f858c804d3880b0a
MD5 e9f2236aaf72225db5f55b01d9246faf
BLAKE2b-256 b3ab6b15137285a81d6fe9d179cad1e614779f9ee41e18addc4057f9a3d0c67a

See more details on using hashes here.

File details

Details for the file streamlit_kpi_metric-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for streamlit_kpi_metric-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 447adee0704937fcf6605d50504ec8645d67ba6b2c15170e9e42354ae417a76f
MD5 dc778e4175585997cf3fc388ed1881b0
BLAKE2b-256 05b02733041ded5b498f6d275ec93c96bec57b065033c8ed1f092972251a5b71

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