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.18.tar.gz
(446.0 kB
view hashes)
Built Distribution
Close
Hashes for streamlit-screen-stats-0.0.18.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 16749d760fafaf00e76f1f9d14dabdc0c56b843bfb337851ddcb5debe0ce3e1b |
|
MD5 | c35ff49246e43a22c37cc996b0efd6ee |
|
BLAKE2b-256 | 19139775723cf72dcfad1ecdc1b25feaed05b697e0994d125c81f58db7dbac42 |
Close
Hashes for streamlit_screen_stats-0.0.18-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 76f6e92fc0294f2947a190500e73d2dc3f072a37470c99409544ea797cb2eab9 |
|
MD5 | 0eccb1985520d6816b70651ad1bb2fd0 |
|
BLAKE2b-256 | 94edc9581c861c7f9e3a3b2a543fc4206c5a6c6e70fd40f98f5e7d3394c52729 |