Textual DOMInfo
Introduction
This library provides a very simple debugging aid for Textual applications; designed as a very quick and easy "what widget is under the mouse and how is it styled" tool.
TO BE CLEAR: This isn't a full-blown DOM inspection tool; it's not even close. It's a quick and dirty but handy bit of code to quickly check what part of the terminal display belongs to what underlying widget and to see how it's styled.
Installing
The package can be installed with pip or related tools, for example:
$ pip install textual-dominfo
Using
As mentioned above, this is only ever intended to be used when trying to debug something, and also note that it will take over the tooltips of any widgets it is attached to.
To use, import the class:
from textual_dominfo import DOMInfo
and then in your code somewhere, probably in the on_mount method of your
application or main screen, attach it like this:
DOMInfo.attach_to(self)
This will then install the information tooltip in that widget and all of its descendants.
To see this in action right away, with the library installed into your development environment, do this:
$ python -m textual_dominfo
Metadata
Release files for textual-dominfo 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| textual_dominfo-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for textual_dominfo-0.1.0-py3-none-any.whl |
Release files / textual_dominfo-0.1.0-py3-none-any.whl
| Download URL | textual_dominfo-0.1.0-py3-none-any.whl |
|---|---|
| Size | 4.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
db60b904db0e92a73e741ecd85418fde9a0d57ac0369cf4e6640746fc602ce53
|
|
BLAKE2b-256 checksum How to use checksums |
de25309b754b7778cc9b15cef2dcdb5e7e2a83b448b397ed997033b56410af68
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.12.1
|
Security for textual-dominfo 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.