Skip to main content

streamlit-Knobs


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

image


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_value and max_value.

Metadata

Release files for streamlit-knobs 0.0.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for streamlit-knobs 0.0.4
File Size Uploaded
streamlit_knobs-0.0.4.tar.gz 3.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for streamlit-knobs 0.0.4
File Interpreter ABI Platform
streamlit_knobs-0.0.4-py3-none-any.whl Python 3 none any Details

Total release size: 1.5 MB

Release files / streamlit_knobs-0.0.4.tar.gz

Download URL streamlit_knobs-0.0.4.tar.gz
Size 3.9 kB
Tags Source
SHA-256 checksum
How to use checksums
eb594c491016d9912a0b59f47a189dd3dacd2c9b4eac29baf8edd570d47e7030
BLAKE2b-256 checksum
How to use checksums
e05e1695d9b3fc2bfa83207253ecc8e322ea3cec173110ebc8a056746a1ff0e6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.0.1 CPython/3.12.8

Release files / streamlit_knobs-0.0.4-py3-none-any.whl

Download URL streamlit_knobs-0.0.4-py3-none-any.whl
Size 1.5 MB
Tags Python 3
SHA-256 checksum
How to use checksums
d11ca409d40079ac5959c6ae021107a500284a7291c7bb1a0e456dabffff8a39
BLAKE2b-256 checksum
How to use checksums
974aa894e9908ecef03e392c9c01385ce329e1889b3ef8e05b1367e9ca583e71
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.0.1 CPython/3.12.8

Release history Release notifications | RSS feed

This release

0.0.4 This release

2 release files

0.0.3

2 release files

0.0.2

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page