Inspector¶
inspector ¶
Collection inspector using Textual TUI.
CollectionInspectorApp ¶
Bases: App[None]
Textual app for inspecting collections.
Initialize the collection inspector application.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
data
|
Sequence[Dict[str, Any]]
|
Sequence of JSON-serializable dictionaries to inspect. |
required |
collection_name
|
str
|
Display name for the collection shown in the title and status bar. |
'collection'
|
Source code in t3api_utils/inspector/app.py
compose ¶
Create the app layout.
Source code in t3api_utils/inspector/app.py
on_mount ¶
Initialize the app when mounted.
action_previous ¶
action_next ¶
action_first ¶
action_last ¶
action_clear ¶
Clear search filter.
Source code in t3api_utils/inspector/app.py
action_focus_search ¶
action_help ¶
Show help information.
Source code in t3api_utils/inspector/app.py
on_search_changed ¶
Handle search input changes.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
event
|
Changed
|
The Input.Changed event containing the new search value. |
required |
Source code in t3api_utils/inspector/app.py
inspect_collection ¶
Launch the Textual collection inspector.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
data
|
Sequence[Dict[str, Any]]
|
Sequence of JSON-serializable dictionaries to inspect. If empty, prints an info message and returns immediately. |
required |
collection_name
|
str
|
Display name for the collection shown in the title and status bar. |
'collection'
|