Skip to main content

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 interference
  • register_event_handler: bind a pattern against raw stdin; when it matches, a Message is 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.8.0.tar.gz (23.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

textual_drivers-0.8.0-py3-none-any.whl (30.4 kB view details)

Uploaded Python 3

File details

Details for the file textual_drivers-0.8.0.tar.gz.

File metadata

  • Download URL: textual_drivers-0.8.0.tar.gz
  • Upload date:
  • Size: 23.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.12.1 {"installer":{"name":"uv","version":"0.12.1","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

Hashes for textual_drivers-0.8.0.tar.gz
Algorithm Hash digest
SHA256 3ea8edb54a7c0b4473220d122b28d8ee56ff4a0315a514820638248a24dea5e4
MD5 4ddfa3c16672adf4b09185eeb6afdde2
BLAKE2b-256 40cd0baaf2939770f5044b5501a7d6d4c26f6c4a2820e51d249c82c02c84b25f

See more details on using hashes here.

File details

Details for the file textual_drivers-0.8.0-py3-none-any.whl.

File metadata

  • Download URL: textual_drivers-0.8.0-py3-none-any.whl
  • Upload date:
  • Size: 30.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.12.1 {"installer":{"name":"uv","version":"0.12.1","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

Hashes for textual_drivers-0.8.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a2e16f6c2cb97af4a08d8ee263b6d7e719143c6ff60f431a9e3fb1a04f75a73b
MD5 17e7261b53f1b2880e60e5e1d52a7ac6
BLAKE2b-256 6367258b57f439322d590d84d7d7f57b19a2a8a75332e61765698f03418e85ec

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page