Install & Compatibility
Where this runs
tested against v4.0.6 · 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
muslpy 3.10–3.95 runs
installs and imports cleanly · install 0.0s · import 0.760s · 37.9MB
glibcpy 3.10–3.95 runs
installs and imports cleanly · install 3.4s · import 0.668s · 38MB
37MB installed
● package 37MB
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
AutoComplete
✓ from textual_autocomplete import AutoComplete
✗ from textual_autocomplete_autocomplete import AutoComplete
Wrong import from older API versions or confusion with internal module structure.
DropdownItem
✓ from textual_autocomplete import DropdownItem
✗ from textual_autocomplete.items import DropdownItem
Old import path from version <4.0; DropdownItem is now directly exported from main module.
A minimal Textual app with an autocomplete widget.
from textual.app import App, ComposeResult
from textual_autocomplete import AutoComplete, DropdownItem
class MyApp(App):
def compose(self) -> ComposeResult:
yield AutoComplete(items=[DropdownItem("apple"), DropdownItem("banana")])
app = MyApp()
app.run()
Errors
Common errors & fixes
ModuleNotFoundError: No module named 'textual_autocomplete'
Library not installed or virtual environment not activated.
fixRun 'pip install textual-autocomplete' in your environment.
ImportError: cannot import name 'DropdownItem' from 'textual_autocomplete'
Old import path from version <4.0; DropdownItem was moved to main module.
fixUse 'from textual_autocomplete import DropdownItem'.
AttributeError: 'AutoComplete' object has no attribute 'items'
Trying to set 'items' as an attribute after initialization; items are managed via reactive property.
fixUse widget.mount() or reactive: self.query_one(AutoComplete).items = new_items.
Upgrade
Version history
4.0.6latest on PyPI · released Sep 24, 2025
Audit
Dependencies
textualrequiredCore dependency; requires Textual >=0.34.0