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.21.tar.gz
(446.1 kB
view hashes)
Built Distribution
Close
Hashes for streamlit-screen-stats-0.0.21.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 56cfca6070c460ea7413fa42d9eb6edb34140f3626e3abcab2330673b53123fb |
|
MD5 | 12ddd68d66ba1b217e569cd44e6afcf0 |
|
BLAKE2b-256 | 883ac47f1f01c96b0e0d8b647698ce8bff6f565a7a8b58938f57fb2b68e5a814 |
Close
Hashes for streamlit_screen_stats-0.0.21-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b98421ba40e384a60ec3d21a0fb5a92f5dd112f7420a36a548c8ffbd6a3ab745 |
|
MD5 | 13aa2f355e28bc0f3f7b7ec0e257b0d4 |
|
BLAKE2b-256 | 4fc1caae1c710aee94fd1980bf5ba6ad491f2d440f78b574bf463b52f961c862 |