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.14.tar.gz
(443.6 kB
view hashes)
Built Distribution
Close
Hashes for streamlit-screen-stats-0.0.14.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1c75f213808ef61e48ad3f88d9901be46275b93f140e2b126397b5f92911fde8 |
|
MD5 | 421d0c0c12d46a30eed97010f54317ff |
|
BLAKE2b-256 | 510932be5554698e5d129a66919dc2cc5538b98f0b1613779242bf87d6ad04e1 |
Close
Hashes for streamlit_screen_stats-0.0.14-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 624caa0ade394de6fb5290f49c296718cf516f82449b8a0f40d12cd29bbdc9dc |
|
MD5 | a3d9bc325fbeba29f10d1416fe8d5290 |
|
BLAKE2b-256 | 2edd3892cbca94dca7dd9db8df24298a42531bd10029104c589e1223f86620a7 |