textual-drivers
Drop-in subclasses of Textual's built-in terminal drivers with two extra capabilities:
lock_stdin: pause the driver's stdin thread and silence terminal events so you can run terminal queries or subprocesses without interferenceregister_event_handler: bind a pattern against raw stdin; when it matches, aMessageis posted into Textual's event system
A higher-level DNDApp base class builds on these to implement the full kitty drag-and-drop protocol (drag-in and drag-out).
Installation
uv add textual-drivers
Quick start
from textual_drivers import DrivenApp
class MyApp(DrivenApp):
...
MyApp().run()
DrivenApp picks the right platform driver automatically.
Documentation
Full docs are on the wiki:
- Drivers: driver classes,
DrivenApp, and mixin usage - lock_stdin: exclusive stdin ownership for terminal queries and subprocesses
- register_event_handler: pattern-based raw stdin -> Textual message routing
- Drag 'n Drop: kitty drag-and-drop protocol via
DNDApp(the main reason for this package)
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
textual_drivers-0.6.2.tar.gz
(20.8 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file textual_drivers-0.6.2.tar.gz.
File metadata
- Download URL: textual_drivers-0.6.2.tar.gz
- Upload date:
- Size: 20.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.11.28 {"installer":{"name":"uv","version":"0.11.28","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6a2444d6780ed0f606a093cd618323436bbe2a94d65df01c8b2dea1445d9cf51
|
|
| MD5 |
97fca97ad23b9ecdd4386c92241524e3
|
|
| BLAKE2b-256 |
ae5501a3e7296e2d9a856bceab93bef8ee6ee26e931ce7c2e6b7848ce15a67cc
|
File details
Details for the file textual_drivers-0.6.2-py3-none-any.whl.
File metadata
- Download URL: textual_drivers-0.6.2-py3-none-any.whl
- Upload date:
- Size: 27.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.11.28 {"installer":{"name":"uv","version":"0.11.28","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4b70714b7198e889439d88496e301c5214810864d7217fcd4afebf463d93dcc9
|
|
| MD5 |
d32cdeaa67e7bd8a5299f37cea2f879a
|
|
| BLAKE2b-256 |
35623a641351fdf521fa4b56d3c49dd3c3893de1673810fde9204f07d07a6b6d
|