simple knob component
Project description
streamlit-Knobs
간단하게 쓸 수 있는 노브 컴포넌트입니다. AI로 이미지를 생성하여 아날로그 버튼과 비슷하게 구현하였습니다.
Installation instructions
pip install streamlit-knobs
Usage instructions
# streamlit_nobes
import streamlit as st
from streamlit-knobs import knob
knob_value = knob(knob_type="1",max_value=1000, min_value=0)
st.write(knob_value)
Parameters
knob_type: str, optional
- Specifies the visual style of the knob.
- Options may include "1", "2", or "3", representing different design types. Default is "1".
size: str, optional
- Defines the size of the knob.
- Available options are "small", "medium", or "large". Default is "medium".
title: str, optional
- A title displayed above the knob to describe its purpose or context. Default is "Knob".
max_value: int or float, optional
- The maximum value the knob can represent. Default is 100.
min_value: int or float, optional
- The minimum value the knob can represent. Default is 0.
step: int or float, optional
- The incremental step size for the knob's value. Default is 1.
initial_value: int or float, optional
- The starting value of the knob.
- If not specified, defaults to the midpoint between
min_valueandmax_value.
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_knobs-0.0.4.tar.gz
(3.9 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file streamlit_knobs-0.0.4.tar.gz.
File metadata
- Download URL: streamlit_knobs-0.0.4.tar.gz
- Upload date:
- Size: 3.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
eb594c491016d9912a0b59f47a189dd3dacd2c9b4eac29baf8edd570d47e7030
|
|
| MD5 |
b3b73b4bb9297a8fe2cf5ebc5b2a6a91
|
|
| BLAKE2b-256 |
e05e1695d9b3fc2bfa83207253ecc8e322ea3cec173110ebc8a056746a1ff0e6
|
File details
Details for the file streamlit_knobs-0.0.4-py3-none-any.whl.
File metadata
- Download URL: streamlit_knobs-0.0.4-py3-none-any.whl
- Upload date:
- Size: 1.5 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d11ca409d40079ac5959c6ae021107a500284a7291c7bb1a0e456dabffff8a39
|
|
| MD5 |
cfa1be83c35ed1bfc6f881108bbca974
|
|
| BLAKE2b-256 |
974aa894e9908ecef03e392c9c01385ce329e1889b3ef8e05b1367e9ca583e71
|