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.9.tar.gz
(443.0 kB
view hashes)
Built Distribution
Close
Hashes for streamlit-screen-stats-0.0.9.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8deac4aecfdbdad3293d7d55dcc264eff225a73dd812fc176e9e351c966671b2 |
|
MD5 | 6b87557ec6c4c07a0a14cb0067cac101 |
|
BLAKE2b-256 | 47c1551994788e8d7fbca93c51782419b6f14c5db12208b833677955f6412aab |
Close
Hashes for streamlit_screen_stats-0.0.9-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b4438aa27d24475ab4524575d7e7e3d49f19a17fb14c555f5584354c80c230d1 |
|
MD5 | ae9f4600fb837cd308fb6d20a5c5912f |
|
BLAKE2b-256 | 1cc40b2400025d9968266e5516f3597e1b957d79ad397a904061ae489e5d7a3d |