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.17.tar.gz
(445.5 kB
view hashes)
Built Distribution
Close
Hashes for streamlit-screen-stats-0.0.17.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3e7ac5a353aada5076fcac18968c3b01fd223cac3bb3b44ad917884eca7342f7 |
|
MD5 | 2a2989d98f9ac34ba46dd7b8d17f45ae |
|
BLAKE2b-256 | 4d145171a058da0b9d13b2cefc554798ad31088563dfcc1d899e112bd802b59e |
Close
Hashes for streamlit_screen_stats-0.0.17-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1239b363dedaf05ddc1377ed85382b2ae15ce74d89e5911e1997533248526f91 |
|
MD5 | 1dc8455c7781f729010593a025e235ea |
|
BLAKE2b-256 | 5e88266cd30ecaa600cd5051f397a5d457bb7c8da5a5154d2d1bfaa519fa6f64 |