Skip to main content

Streamlit component for displaying KPI's

Project description

Test it Live !


streamlit-kpi

Streamlit component for displaying KPIs

Installation instructions

pip install streamlit-kpi

Usage instructions

import streamlit as st
from streamlit_kpi import streamlit_kpi

streamlit_kpi(key="first_kpi",height='200',title='Monthly Sales',value=25000,icon='fa-solid fa-globe',progressValue=100,unit='K€')

   """
    Parameters:

    key: Optional str, default is '', the streamlit component key, higly recommended 
    title: Mandatory str, the title...
    value: Mandatory str or int or float, the value...
    icon: Optional str, default is 'fa-solid fa-globe', any Font Awesome class (v6.3). See https://fontawesome.com/search?o=r&m=free
    icon: Optional str, default is '', the value unit appended after the value
    textAlign: Optional str, default is 'left', title and value alignement
    backgroundColor: Optional str, default is '#f3f3f3', widget background color can be str like blue, orange, transparent... or HEX color
    titleColor: Optional str, default is 'dark', title font color, can be str like blue, orange... or HEX color
    valueColor: Optional str, default is 'dark', value font color, can be str like blue, orange... or HEX color
    progressColor: Optional str, default is 'green', progress color, can be str like blue, orange... or HEX color
    iconColor: Optional str, default is 'black', icon font color, can be str like blue, orange... or HEX color
    animate: Optional bool, default is True, activate or not the animation
    animateDuration: Optional int, default is 2000, the animation duration in milliseconds
    progressValue: Optional int, default is 100, the progress bar completion, from 0 to 100
    iconOpacity: Optional int, default is 50, the opacity of the icon, from 0 to 100, 0 is invisible
    iconTop: Optional int, default is 47, the icon position from the top, from 0 to 100
    iconLeft: Optional int, default is 100, the icon position from the left, from 0 to 100
    showProgress: Optional bool, default is True, show or hide the progress bar
    showIcon: Optional bool, default is True, show or hide the icon
    height: Optional int, default is 250, the height of the whole widget

    """

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-0.0.7.tar.gz (7.9 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-0.0.7-py3-none-any.whl (9.0 kB view details)

Uploaded Python 3

File details

Details for the file streamlit-kpi-0.0.7.tar.gz.

File metadata

  • Download URL: streamlit-kpi-0.0.7.tar.gz
  • Upload date:
  • Size: 7.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.2

File hashes

Hashes for streamlit-kpi-0.0.7.tar.gz
Algorithm Hash digest
SHA256 9028edb681ba740ba14c73b4f3705b0f8f8f05d58ad5d1e5510f041fc6b51634
MD5 9a4a9149e413bd94a1624aa8de52e941
BLAKE2b-256 7d3c0a37c72b518991d8390f5dddb912738999cc82f781b3a8f3c95d712fc93e

See more details on using hashes here.

File details

Details for the file streamlit_kpi-0.0.7-py3-none-any.whl.

File metadata

  • Download URL: streamlit_kpi-0.0.7-py3-none-any.whl
  • Upload date:
  • Size: 9.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.2

File hashes

Hashes for streamlit_kpi-0.0.7-py3-none-any.whl
Algorithm Hash digest
SHA256 5067cce54d1c6748e06a7f98c711455338f05fb4d70803563cd79a258242f701
MD5 ee535d2de1faf11e5dcfc0dd41c30f31
BLAKE2b-256 036a3dfeeb417957d3ce0ef8555a65c3a503fd99a9025806cc3c6c8e9ef9c2e6

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