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.13.tar.gz
(443.6 kB
view hashes)
Built Distribution
Close
Hashes for streamlit-screen-stats-0.0.13.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | fa9633680e8a0cdb40fd4481558e3060674c04b29b453c71f4c56d6611699bbb |
|
MD5 | b7746ae4f16a426496a9a6e1a0f18c37 |
|
BLAKE2b-256 | 93bcd040a296971da99a3bf122a314d9c8e0c350767726124ffc8ad6cc35ef2d |
Close
Hashes for streamlit_screen_stats-0.0.13-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2230fee24b7e82cdee57c8550e2f13820601ccb3fcbc4d8098eb4b3306649340 |
|
MD5 | d7b59d0f89e0b3b527c68c1c32c6933c |
|
BLAKE2b-256 | d29e9faeb67dcdf6c551465745288c40c457c92f056027278860d82863ec29be |