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.8.tar.gz
(442.7 kB
view hashes)
Built Distribution
Close
Hashes for streamlit-screen-stats-0.0.8.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 05230b8b55aa60a88e2e508b9abd0fe12bb474ce456b8df00ac35227f99f662c |
|
MD5 | 5edffa6d90d69388f19a8824a5bdaa90 |
|
BLAKE2b-256 | b5f3ffa1db6a0713ba6b2fc4ac5b1e057f98d7180131b56db9b54f5e09b8ea3d |
Close
Hashes for streamlit_screen_stats-0.0.8-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 66a71bc3182f7bf6839966679ce47919594a696fcb5e4d36f8b9d52671c078bd |
|
MD5 | 05921c1ffad43f5dc941d531486fb826 |
|
BLAKE2b-256 | ed19ae6e3d219cb8fd116c44208d1edb80051ab7519f04c98f773f40d17849f2 |