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.11.tar.gz
(443.5 kB
view hashes)
Built Distribution
Close
Hashes for streamlit-screen-stats-0.0.11.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | ab358737680e94df31ab931eecaaa47e27631b286d8d91f8ce6392ca57732cc5 |
|
MD5 | 880004fc6016a042f89c88abc1a4990d |
|
BLAKE2b-256 | 50dd4e73f5115e3e0072e6576c977ef76de9d055dafb86412e44e4ad50b97031 |
Close
Hashes for streamlit_screen_stats-0.0.11-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cd39d9504b1f3cbeab1b75245bd4744113a2ad9325318524e3dd31c9a18f1897 |
|
MD5 | 54ea427852b81d4a3d8e1f7e6988d720 |
|
BLAKE2b-256 | f182a8aecf612e5d126ab391cb8c5cc8bf911822b16c22e16b08953aa4c2e0ac |