Streamlit component that gets the client's timezone.
Project description
Streamlit Client Timezone
Streamlit custom component to get the client's timezone as a tzinfo object.
Download
pip install streamlit-client-timezone
Usage
import streamlit as st
from datetime import datetime
from client_timezone import client_timezone
timezone = client_timezone(key="client-timezone")
time_loaded = datetime.now(tz=timezone)
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file streamlit_client_timezone-0.1.4.tar.gz.
File metadata
- Download URL: streamlit_client_timezone-0.1.4.tar.gz
- Upload date:
- Size: 402.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.11.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d2a7d583780da275d41978c0a3b4d783afa2d3826f2e09e05df7f9b6e419f680
|
|
| MD5 |
f000a2496bfd1464190c3ae34c2822dd
|
|
| BLAKE2b-256 |
78b40149572ca7729b11c571a3aa766367c84224f5c262390d817a12932f8bea
|
File details
Details for the file streamlit_client_timezone-0.1.4-py3-none-any.whl.
File metadata
- Download URL: streamlit_client_timezone-0.1.4-py3-none-any.whl
- Upload date:
- Size: 406.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.11.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b92d98eb5a874e648f5f95d9a9f142d3df70ac270345b87eaf849f0c2ee7c709
|
|
| MD5 |
a37affe24011eb7bb38f55c7b6a6eb38
|
|
| BLAKE2b-256 |
0705ee46c749eb875c3348ec71b177fc0541a1f6d3934170ed9d7f9f2d1b85ee
|