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
Built Distribution
Close
Hashes for streamlit-screen-stats-0.0.22.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4cd36723440b71288f7233de007a9e7a8f9fa3e57d876b69abe69aff987fef21 |
|
MD5 | ee2826a22479ce59f49092bac133b679 |
|
BLAKE2b-256 | 43ecf93defbfb4071f092cf68dedacd3c1b1751df081eb935d3fad5888ef7b9c |
Close
Hashes for streamlit_screen_stats-0.0.22-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c2ab9ac6499069c8f95ebd5a9b39c3d3a42b10af2634670dd1ffe5cecc6133b1 |
|
MD5 | 5e645babc994d03197374d927948e3ba |
|
BLAKE2b-256 | f94491f33ab4ad7f91b4c3920df30f5f49cdd8cd3354d2eaf9187e381444057a |