Streamlit component that allows to create custom card content for streamlit dashboard
Project description
streamlit-slb-card
Streamlit component that allows to create custom card content for streamlit dashboard
Installation instructions
pip install streamlit-slb-card
Usage instructions
import streamlit as st
from streamlit_slb_card import streamlit_slb_card
# sample data
# LineChart
# data = {
# "xAxis": ["Nov 1", "Nov 2", "Nov 3", "Nov 4", "Nov 5", "Nov 6"],
# "value": [2, 5.5, 2, 8.5, 1.5, 1],
# "color": "maroon"
# }
# PieChart
# data = [
# { "id": 0, "value": 10, "label": 'Helmet Violation', "color": 'green' },
# { "id": 1, "value": 32, "label": 'Coverall Violation', "color": 'red' },
# { "id": 2, "value": 45, "label": 'Glove Violation', "color": 'blue' },
# { "id": 3, "value": 28, "label": 'Vest Violation', "color": 'orange' }
# ]
# BarChart
# data = {
# "name": ["Total Wells", "Total Active", "Total Down"],
# "value": [45, 30, 15],
# "color": "green"
# }
streamlit_slb_card(
title="Crew Health",
titleTextAlign="left",
titleTextSize="25",
headerContent=f"<div><div style='font-size:14px;font-weight: bold'>Average Pulse Rate</div><div><span style='font-size:40px'>10</span> beats/min</div></div>",
showChart=True,
chartType="LineChart", # Supported charts -> PieChart, BarChart, LineChart
chartTitle= "Violation Types",
chartData=[]
)
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-slb-card-1.0.7.tar.gz
(909.5 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-slb-card-1.0.7.tar.gz.
File metadata
- Download URL: streamlit-slb-card-1.0.7.tar.gz
- Upload date:
- Size: 909.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
32316bdfc7a512ad4ba57b73d126de540f31f5711180315368088c7af2865f4a
|
|
| MD5 |
180371db29b455c66b25573761638d4f
|
|
| BLAKE2b-256 |
81fef107f6effb869fdecc6286bc90fab4e41498278301afffd713faae9c64cc
|
File details
Details for the file streamlit_slb_card-1.0.7-py3-none-any.whl.
File metadata
- Download URL: streamlit_slb_card-1.0.7-py3-none-any.whl
- Upload date:
- Size: 1.8 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2982210f9ac2ee700430becd2f704422bf96d37635272dc6b012362a030774a6
|
|
| MD5 |
3904e8db361728161fcc24b9bb73ad34
|
|
| BLAKE2b-256 |
75a7171d99d636f85909401c737575ba048dd40070e233ec0c8fdf75eb3c65cb
|