Skip to main content

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

streamlit_client_timezone-0.1.4.tar.gz (402.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

streamlit_client_timezone-0.1.4-py3-none-any.whl (406.0 kB view details)

Uploaded Python 3

File details

Details for the file streamlit_client_timezone-0.1.4.tar.gz.

File metadata

File hashes

Hashes for streamlit_client_timezone-0.1.4.tar.gz
Algorithm Hash digest
SHA256 d2a7d583780da275d41978c0a3b4d783afa2d3826f2e09e05df7f9b6e419f680
MD5 f000a2496bfd1464190c3ae34c2822dd
BLAKE2b-256 78b40149572ca7729b11c571a3aa766367c84224f5c262390d817a12932f8bea

See more details on using hashes here.

File details

Details for the file streamlit_client_timezone-0.1.4-py3-none-any.whl.

File metadata

File hashes

Hashes for streamlit_client_timezone-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 b92d98eb5a874e648f5f95d9a9f142d3df70ac270345b87eaf849f0c2ee7c709
MD5 a37affe24011eb7bb38f55c7b6a6eb38
BLAKE2b-256 0705ee46c749eb875c3348ec71b177fc0541a1f6d3934170ed9d7f9f2d1b85ee

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page