Skip to main content

simple knob component

Project description

streamlit-Knobs


간단하게 쓸 수 있는 노브 컴포넌트입니다. AI로 이미지를 생성하여 아날로그 버튼과 비슷하게 구현하였습니다.

image


Installation instructions

pip install streamlit-knobs

Usage instructions

# streamlit_nobes
import streamlit as st

from knobs import streamlit-knobs

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_value and max_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.3.tar.gz (730.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

streamlit_knobs-0.0.3-py3-none-any.whl (1.5 MB view details)

Uploaded Python 3

File details

Details for the file streamlit_knobs-0.0.3.tar.gz.

File metadata

  • Download URL: streamlit_knobs-0.0.3.tar.gz
  • Upload date:
  • Size: 730.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.12.8

File hashes

Hashes for streamlit_knobs-0.0.3.tar.gz
Algorithm Hash digest
SHA256 84e7c39cbc7cb9605c81d77462148e83680982022d0a641bb46ea2db6b7b4dce
MD5 f5af300b8a2043d480fbdeb19f86a9e0
BLAKE2b-256 0f81567d1d832229e5d21671199503a4469c9847d29ab560f7c6688ef4f8796b

See more details on using hashes here.

File details

Details for the file streamlit_knobs-0.0.3-py3-none-any.whl.

File metadata

File hashes

Hashes for streamlit_knobs-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 2ad35480ed7be6a2a38b58bace6af715a412e37c31fb0db425d622bceb6e4152
MD5 6425dec07a9f0182d65691dbd78023af
BLAKE2b-256 cf186af82516612b7d0592796efe4606274652410f25150d56c0be64bc5bd24e

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