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-metric
  • Importing function to parsing scripts

from streamlit_kpi_metric 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.1.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.1-py3-none-any.whl (2.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: streamlit_kpi_metric-0.1.1.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.1.tar.gz
Algorithm Hash digest
SHA256 d57069f33324c0e7db39a6461f238ab208b9c16ebb01d8ff0211a8556b33845b
MD5 6cd3f89efa169bb6277cce61ea4a79d5
BLAKE2b-256 3f066048811f12ca69e494c4f858a75a00d7655c9619848071e858bcbe682755

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for streamlit_kpi_metric-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 c79acedacd865559484abb270ab39ff3b1002d1a1395812370138bcb26f742e0
MD5 94f3425c5b41eafba74fabac11e1c865
BLAKE2b-256 4691f16cee02cb2f88f3034b35c8d8f52d4955c6cea4b815cfcf5a4dda246b32

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