Skip to main content

Japanese calendar date input component for Streamlit

Project description

streamlit-jp-date-input

日本語カレンダー付き日付選択コンポーネントです。Streamlit アプリに和暦スタイルのカレンダー UI を追加できます。

インストール

pip install streamlit-jp-date-input

使い方

import streamlit as st
from streamlit_jp_date_input import jp_date_input

date = jp_date_input("日付を選択", min_date="2020-01-01", max_date="2030-12-31")
st.write("選択日:", date)

パラメータ

パラメータ 説明
label str 入力フィールドのラベル
value str | None 初期選択日付(YYYY-MM-DD 形式)
min_date str | None 選択可能な最小日付(YYYY-MM-DD 形式)
max_date str | None 選択可能な最大日付(YYYY-MM-DD 形式)
key str | None コンポーネントを一意に識別するキー

戻り値

選択された日付(YYYY-MM-DD 形式の str)、未選択の場合は None

フロントエンドのビルド手順

開発時やソースからビルドする場合:

cd streamlit_jp_date_input/frontend
npm install
npm run build

ビルド成果物は streamlit_jp_date_input/frontend/build/ に出力されます。

PyPI 配布手順

# パッケージビルド
uv build

# PyPI アップロード
uv run twine upload dist/*

Note: PyPI 公開前に pyproject.tomlauthors.email を実際のメールアドレスに変更してください。

ライセンス

Apache License 2.0

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_jp_date_input-0.1.0.tar.gz (62.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_jp_date_input-0.1.0-py3-none-any.whl (117.2 kB view details)

Uploaded Python 3

File details

Details for the file streamlit_jp_date_input-0.1.0.tar.gz.

File metadata

  • Download URL: streamlit_jp_date_input-0.1.0.tar.gz
  • Upload date:
  • Size: 62.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.3

File hashes

Hashes for streamlit_jp_date_input-0.1.0.tar.gz
Algorithm Hash digest
SHA256 67aec895dbba331dad08cde932567863909a77f66f1adea8de45e7836b698914
MD5 c1121023f0c808c75325956692975b2a
BLAKE2b-256 3c7956c05bb55724281eb7ea6421e50e5fb90726a6f01cf5b0cf18c5e949483e

See more details on using hashes here.

File details

Details for the file streamlit_jp_date_input-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for streamlit_jp_date_input-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 bcd530e5352428e220fc229d108bfcd9594fe17963bdd933acd6ada99598e016
MD5 aa8f6d8569d0dc3a3fbd2b098de05e38
BLAKE2b-256 958e209de3a967db32d45c8e8ce2257727f1fa84269ca1ee8e44b4bd543787de

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