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.3.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.3-py3-none-any.whl (406.0 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for streamlit_client_timezone-0.1.3.tar.gz
Algorithm Hash digest
SHA256 b04e2722202ff5f8bc88e4ea3645ce4fff0756702bd6bbc2bbaf5f7e5deed291
MD5 57091646e5ed7ec16c7674c94f7c3803
BLAKE2b-256 282ac4310d012de13e242b11100efb10c8b78284bfa155c3c7f3e16b8322ca54

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for streamlit_client_timezone-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 0921eaf0a38553e576439cade81f5bf4a580670cd43cfbe0fc82cad02e32904a
MD5 80da1d74452c009a49b35de9888f7a0b
BLAKE2b-256 7678028bf20923eb49ca2f266b779731ca1acb96111950ad63b64488a03af6aa

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