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.15.tar.gz
(443.6 kB
view hashes)
Built Distribution
Close
Hashes for streamlit-screen-stats-0.0.15.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7f43c2f84d1fb20081b973b1e6e10049dcc6854d806468ca70431f5293fdabaa |
|
MD5 | 98aa028c454ea39c40b52ca597624f87 |
|
BLAKE2b-256 | 5ef2f97430cf5fde5839401394a57a24ff34d320113ec30c2f9478384846836e |
Close
Hashes for streamlit_screen_stats-0.0.15-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1f0826653cbb228c1e68d407e811ab02ba066680c94c17d071d2f99c81abbb34 |
|
MD5 | bd7be3373c9270474d106402ed0473f9 |
|
BLAKE2b-256 | c4cee91fdcd7ca654c568824d6279d8474dda1eb136c5a5b2b6dd69455827dec |