typer-to-texual
typer-to-textual is a TUI developed through the Textual module, which aims to simplify the use of applications. This tool analyzes the help screens of different typer applications and creates a TUI that allows the user to select the desired commands and options easily and intuitively, without the need to know all available commands and options by heart. In summary, the use of the interactive TUI represents a major step forward in simplifying the use of typer applications and making them more accessible to all users, even the less experienced ones.
Install
As a preliminary requirement, you need to install some utility:
xdotool. Installs the package via prompt with the command: 'sudo apt-get install xdotool'
After that, you can proceed either via PyPI, or by cloning the repository and install dependencies. If you opt for PyPI, run the following command:
$ pip install typer-to-textual
After that, typer-to-textual can be run with:
$ python3 -m typer-to-textual [typer_application]
If you instead opt for the repository, you also need the Poetry Python package manager. On Debian-like OSes it can be installed with the following command:
$ sudo apt install python3-poetry
After that, run the following commands:
$ git clone https://github.com/palla98/typer-to-textual.git
after downloading:
$ cd typer-to-textual
$ poetry install
After that, typer-to-textual can be run with:
$ poetry run ./typer_to_textual.py [typer_application]
se però [typer_application] è 'python3 -m [nome_modulo]' bisogna stare attenti perchè si utlizza l'interprete Python dell'ambiente virtuale creato da Poetry. Quindi bisogna andare ad installare [nome_modulo] nell'ambiente virtuale altrimenti non viene riconosciuto.
oppure semplicemente si può lanciare il comando:
python3 typer_to_textual.py 'python3 -m [nome_modulo]'
la cosa migliore è andare a creare uno script .sh in modo tale da passare direttamente un eseguibile Lo si va a creare e salvare nella tua directory bin personale: (~/.local/bin/[nome_script].sh):
sudo nano ~/.local/bin/[nome_script].sh
#!/bin/bash
OLD_PWD=$PWD
cd path/to/executable
poetry run ./executable "$@"
cd $PWD
In seguito renderlo eseguibile con questo comando:
sudo chmod +x ~/.local/bin/[nome_script].sh
e poi andare a creare un link simbolico:
sudo ln -s ~/.local/bin/[nome_script].sh ~/.local/bin/[nome_script]
Dopodichè semplicemente basterà chiamare lo script digitando semplicemente il comando [nome_script] da qualsiasi posizione nel terminale.
quindi si potrà usare typer-to-textual anche in questo modo senza avere problemi di ambiente virtuale:
poetry run ./typer_to_textual.py [nome_script]
Metadata
Release files for typer-to-textual 2.5.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| typer_to_textual-2.5.0.tar.gz | 10.2 kB | Without provenance | Details for typer_to_textual-2.5.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| typer_to_textual-2.5.0-py3-none-any.whl | Python 3 | none | any | Details for typer_to_textual-2.5.0-py3-none-any.whl |
Total release size: 21.6 kB
Release files / typer_to_textual-2.5.0.tar.gz
| Download URL | typer_to_textual-2.5.0.tar.gz |
|---|---|
| Size | 10.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e5d5c909e1b219969a48f9acc9417c35b2f0e04aeeef5f45c58682f72315f056
|
|
BLAKE2b-256 checksum How to use checksums |
c49f8ac0e2ae6db76300aa3f09e3732064295952bcebc48a3d346df0efa1ebf3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.3.1 CPython/3.8.10 Linux/5.4.0-135-generic
|
Release files / typer_to_textual-2.5.0-py3-none-any.whl
| Download URL | typer_to_textual-2.5.0-py3-none-any.whl |
|---|---|
| Size | 11.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2ec65400cb9c9ed9a26688b50b299efe21e7273627a5ff4576761e9bb972e876
|
|
BLAKE2b-256 checksum How to use checksums |
cb69dc86c8a415855371ad9546105f82a53b2d5ce69a94ac347852773a2bdfec
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.3.1 CPython/3.8.10 Linux/5.4.0-135-generic
|
Security for typer-to-textual 2.5.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.