Registry / web-framework / textual-slider

textual-slider

JSON →
library0.2.0pypypi✓ verified 86d ago

A Textual widget for a simple slider. Version 0.2.0 requires Python >=3.8 and Textual >=0.42.0. Release cadence appears irregular; early development.

pip install textual-slider
INSTALL
IMPORT
SIG · TEXTUAL-SLIDER
T
textual-slider
web-frameworkpythonv0.2.0
Install
3.5s avg
Import
569ms
Disk
37MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v0.2.0 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
py 3.103.95 runs
installs and imports cleanly · install 0.0s · import 0.592s · 37.9MB
glibc
py 3.103.95 runs
installs and imports cleanly · install 3.5s · import 0.546s · 38MB
37MB installed
● package 37MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Slider
from textual_slider import Slider
from textual_slider.slider import Slider
The public API is from the package directly, not from a module.

Minimal app with a slider widget. Adjust min, max, and default as needed.

from textual.app import App, ComposeResult from textual_slider import Slider class SliderApp(App): def compose(self) -> ComposeResult: yield Slider(min=0, max=100, default=50, id='my_slider') if __name__ == '__main__': SliderApp().run()
Debug
Known issues
breakingSlider API may change in future versions; currently no stable release.
fix
Pin to exact version if used in production.
affects: <1.0.0
gotchaSlider requires Textual >=0.42.0. Older Textual versions will cause import or runtime errors.
fix
Ensure Textual is updated: pip install 'textual>=0.42.0'
affects: 0.2.0
deprecatedThe 'id' parameter is optional but recommended for value retrieval.
fix
Always provide an id to access slider.value later via self.query_one('#my_slider').value
affects: 0.2.0
Errors
Common errors & fixes
ModuleNotFoundError: No module named 'textual_slider'
Package not installed or installed under different name (e.g., textual-slider).
fix
Run: pip install textual-slider
AttributeError: module 'textual_slider' has no attribute 'Slider'
Incorrect import path; attempting to import from wrong module.
fix
Use: from textual_slider import Slider
Upgrade
Version history
0.2.0latest on PyPI · released Jan 24, 2025
Audit
Dependencies
textualrequiredCore dependency: Textual framework needed >=0.42.0
Agent activity
14 hits · last 30 days
node
14
Resources
textual-slider — pip install textual-slider · libregistry