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.12.tar.gz
(443.5 kB
view hashes)
Built Distribution
Close
Hashes for streamlit-screen-stats-0.0.12.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7eb76f67895646b81369b3fd60fa8c7ae98afbb3d15c59d98765474a3bb40df8 |
|
MD5 | 8974d9367951a9e8548a6b2a9881b58c |
|
BLAKE2b-256 | fb6627c165ed53d57914546ca733a8e37981d3eaef62615f382fef43a8742b75 |
Close
Hashes for streamlit_screen_stats-0.0.12-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9aa4366f01ab6f3e7faeeb34c2e47114222a6b65a3480f1ad553cc97b5d4323c |
|
MD5 | 3370059b74cefdfa63f72a24a353494e |
|
BLAKE2b-256 | e345a6bd34b74ac6c641206fab574b626c5f1c600c287e3d48e4cab4d40a8265 |