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.20.tar.gz
(446.1 kB
view hashes)
Built Distribution
Close
Hashes for streamlit-screen-stats-0.0.20.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | fed5e56b7933ad664c1aec718638a22c662129e708c86be792720ccf1778212d |
|
MD5 | 3112f66df0260b702af2f3340e4e6cdf |
|
BLAKE2b-256 | 6fbb17804339e9248dc67fab413bea3ca1d53b730f382f9fee619e86dc682d9e |
Close
Hashes for streamlit_screen_stats-0.0.20-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d91b3059563ef3e25da8cfa086deb7a0906ef256f0e7c0774f6da1bf6b0cba6b |
|
MD5 | 56d4a28c315fba3e42b52cdf1a672d98 |
|
BLAKE2b-256 | 91a7e049f6c96d936c340444ae4f50cad3a8975fbee01fff4eeb58fd7f8fe863 |