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.5.tar.gz (402.2 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.5-py3-none-any.whl (405.5 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for streamlit_client_timezone-0.1.5.tar.gz
Algorithm Hash digest
SHA256 e505c816b013bb237517dc691a3671ef86729d579490c555a88d0c4462304a74
MD5 b14de039aa3d0642dff473e815423ac2
BLAKE2b-256 18e8232ba68ddd22c444d9c0cb74584976ec05c4b10dc786692bb8d0ecd5e82e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for streamlit_client_timezone-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 b9e66c5e7345152105552531deb0d49ee7e8da04d8cde4fbbffd89876ccbbdb6
MD5 2fd2a6d316807067652155fb2b365c5e
BLAKE2b-256 da6889338cdd0c475f931a3946c7b49c7ab3371cbd16a2ff295d6baf03b32447

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