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.16.tar.gz
(445.4 kB
view hashes)
Built Distribution
Close
Hashes for streamlit-screen-stats-0.0.16.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | de53ef7c49685021e31d20a10959f28f6c5e24abf7a5c3c9b2a90aee4b8bce0a |
|
MD5 | 43ca3d772c6e3f96bec2e5c4c44331ee |
|
BLAKE2b-256 | 400a8caa1f12ef5886f179b802c68a8f8fe89ba477e2d9c09f58cdf2d8c959d0 |
Close
Hashes for streamlit_screen_stats-0.0.16-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1d7a5d80b55e6f53712c917f33f17f63af2c465cbf8e5c66382dea1f6a195de8 |
|
MD5 | 106d2b7004b439a4941fd178ba97138f |
|
BLAKE2b-256 | 5d541358382cfc77a2cd1d43ee713989a312491a4c4c8abfda0f7f1ae08bc091 |