Streamlit component for displaying KPI's
Project description
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
Release history Release notifications | RSS feed
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.2.tar.gz
(7.7 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file streamlit-kpi-0.0.2.tar.gz.
File metadata
- Download URL: streamlit-kpi-0.0.2.tar.gz
- Upload date:
- Size: 7.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
17e7deb3040850811505a0d44fecc405eeb8defdf087726d189039fe6c2049a6
|
|
| MD5 |
097eea8fbcf40afea40ad39bcfef03de
|
|
| BLAKE2b-256 |
7980fff45416b2fb4a5c99e1b4d9388d76c5d15585e31bff65461c28fca10134
|
File details
Details for the file streamlit_kpi-0.0.2-py3-none-any.whl.
File metadata
- Download URL: streamlit_kpi-0.0.2-py3-none-any.whl
- Upload date:
- Size: 8.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1139c2537049ec131aae363cc27fc478314ccac28fedf7d9b9b853233691d802
|
|
| MD5 |
59b36110bbbd0a20725a186aea856cc1
|
|
| BLAKE2b-256 |
a8dc34e59c72e65983708b1645870547b269d1b52390f2608081c1d52bd41d10
|