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.10.tar.gz
(443.0 kB
view hashes)
Built Distribution
Close
Hashes for streamlit-screen-stats-0.0.10.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 48fe471742f8037c295e2ee6bf01e5434bcc22dca53cfc91372ae26a75d4dea3 |
|
MD5 | 5fb384da4c1fb234752717e734619684 |
|
BLAKE2b-256 | 45895f38501fe7cb3163761ae18b0332a0b7296e3ae4438fe4dbdc17bb573f0d |
Close
Hashes for streamlit_screen_stats-0.0.10-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4ac622b7fe8ac80222b5d5a157f761561cf3c658d5a6a71e369aa37e6aedb995 |
|
MD5 | f0aa27db3888f57abc3c8f974bbca8b8 |
|
BLAKE2b-256 | 10d7c10f21bb6175246d37a2361e7e75674f380d1947b094760dcb2cc0b6c730 |