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)
Release files for textual-drivers 0.9.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| textual_drivers-0.9.4.tar.gz | 23.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| textual_drivers-0.9.4-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 54.4 kB
Release files / textual_drivers-0.9.4.tar.gz
| Download URL | textual_drivers-0.9.4.tar.gz |
|---|---|
| Size | 23.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
988289455a2221b9f9fa3921a2f79c00ff8983c68daa39053bf490806385fe2d
|
|
BLAKE2b-256 checksum How to use checksums |
e55d12e90596322e560987fd3909b90c41eb35eadb14f08d6252d4a8eeeee9a0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.12.3 {"installer":{"name":"uv","version":"0.12.3","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}
|
Release files / textual_drivers-0.9.4-py3-none-any.whl
| Download URL | textual_drivers-0.9.4-py3-none-any.whl |
|---|---|
| Size | 30.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ba58d5fca8f0979004ff07e2c3e5b4791c22884403cfc80acafe7597db202d20
|
|
BLAKE2b-256 checksum How to use checksums |
b31535e696fda1add5814129a3eafe31648743f5c6000b268b9ffb3c9a2a33e8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.12.3 {"installer":{"name":"uv","version":"0.12.3","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}
|