Streamlit component that allows you to get simple facts about the screen to provide custom contextual designs
Project description
streamlit-screen-stats
Streamlit component that allows you to do get various stats for your screeen to build repsonsive apps for your users with different devices.
Installation instructions
pip install streamlit-screen-stats
Usage instructions
import streamlit as st
from st_screen_stats import ScreenData, StreamlitNativeWidgetScreen
# using react component
screenD = ScreenData(setTimeout=1000)
screen_d = screenD.st_screen_data_window_top()
st.write(screen_d)
# using sctreamlit native widget and some custom components
# Requirements:
# Need to install from pypi:
# - streamlit-browser-session-storage (pip install streamlit-browser-session-storage)
# - streamlit-local-storage (pip install streamlit-local-storage)
screenDN = StreamlitNativeWidgetScreen(setTimeout=1000)
screenDN.st_screen_data_window_top()
stats_ = screenDN.get_window_screen_stats()
st.write(stats_)
# decided to build alternatives in case one is less reliable than the other.
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-screen-stats-0.0.19.tar.gz
(446.1 kB
view hashes)
Built Distribution
Close
Hashes for streamlit-screen-stats-0.0.19.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | a5719e0311a2f3d0bbce4825f5b882a90dcf01421fe18fdf3b5d678a01f99736 |
|
MD5 | 203796de3a36319d28ca2d26186743bf |
|
BLAKE2b-256 | 149248b9b479daeed08310914590f5c18f0e2e414f6fa0fb74c44d1aa14c2606 |
Close
Hashes for streamlit_screen_stats-0.0.19-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5bab6febde9414d33b81e1a3713ba75a8f58070daf95ad519d79bc3c4951d557 |
|
MD5 | 8c480c46038460f0c3245fe1da0e0fc5 |
|
BLAKE2b-256 | 8565ef0480185ef2cadd8307b2f092fe3c85df3c3b28285ab0b778ff1c2e5af5 |