helper-streamlit-utils
Streamlit 애플리케이션을 위한 유틸리티 모음 라이브러리
설치
pip install helper-streamlit-utils
주요 기능
1. 커스텀 라벨 (st_label)
Streamlit의 text_input과 동일한 스타일의 커스텀 라벨을 생성합니다.
from helper_streamlit_utils import st_label
# 기본 스타일 사용
st_label("Hello World")
# 커스텀 스타일링
st_label("Custom Label",
color="#ff0000",
background_color="#f0f0f0",
font_size="16px",
font_weight="bold")
2. 페이지 스타일링
페이지 여백 및 헤더 숨김 (st_style_page_margin_hidden)
from helper_streamlit_utils import st_style_page_margin_hidden
# 상단/하단 여백 제거, 좌우 10px 유지
st_style_page_margin_hidden(top=0, left=10, right=10, bottom=0)
툴바만 숨김 (st_style_toolbar_hidden)
from helper_streamlit_utils import st_style_toolbar_hidden
st_style_toolbar_hidden()
페이지 여백 커스터마이징 (st_style_page_margin)
from helper_streamlit_utils import st_style_page_margin
# 상단 20px, 좌우 15px 여백 설정
st_style_page_margin(top=20, left=15, right=15, bottom=10)
3. 구분선 (st_div_divider)
여백 없는 구분선을 생성합니다.
from helper_streamlit_utils import st_div_divider
# 기본 1px 회색 구분선
st_div_divider()
# 커스텀 구분선
st_div_divider(height=2, color="#ff0000")
4. 설정 패널 표시 (st_settings_panel_show)
Streamlit 설정 패널을 프로그래밍 방식으로 표시합니다.
from helper_streamlit_utils import st_settings_panel_show
st_settings_panel_show()
전체 사용 예제
import streamlit as st
from helper_streamlit_utils import (
st_style_page_margin_hidden,
st_label,
st_div_divider
)
# 페이지 여백 제거
st_style_page_margin_hidden(top=0, left=10, right=10, bottom=0)
# 커스텀 라벨
st_label("Welcome to My App",
font_size="24px",
font_weight="bold",
color="#1f77b4")
# 구분선
st_div_divider(height=2, color="#ddd")
# 일반 Streamlit 위젯들
st.write("This is a Streamlit app with custom styling!")
의존성
streamlit>=1.20.0helper-dev-utils>=0.5.0
라이선스
MIT License
작성자
c0z0c (c0z0c.dev@gmail.com)
저장소
Metadata
Release files for helper-streamlit-utils 0.2.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| helper_streamlit_utils-0.2.1.tar.gz | 7.5 kB | Without provenance | Details for helper_streamlit_utils-0.2.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| helper_streamlit_utils-0.2.1-py3-none-any.whl | Python 3 | none | any | Details for helper_streamlit_utils-0.2.1-py3-none-any.whl |
Total release size: 14.3 kB
Release files / helper_streamlit_utils-0.2.1.tar.gz
| Download URL | helper_streamlit_utils-0.2.1.tar.gz |
|---|---|
| Size | 7.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f61911040e568e57dca3c9b0498f6fd899ad8fc2bd870245454a2c46b3f26ead
|
|
BLAKE2b-256 checksum How to use checksums |
f13662c10b5fb3a4a883ce5fcf0fcc84107a4129e43f64603e2218e2684010a1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.13
|
Release files / helper_streamlit_utils-0.2.1-py3-none-any.whl
| Download URL | helper_streamlit_utils-0.2.1-py3-none-any.whl |
|---|---|
| Size | 6.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
89553d19c187df5b7f9a00c663f6a76a89438f9eb42a6804df53b10bdc9bfc36
|
|
BLAKE2b-256 checksum How to use checksums |
be08af204b49bbd8bd47e9366781809427a9a391189f63198bf6e2221abde6c6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.13
|
Security for helper-streamlit-utils 0.2.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.