Skip to main content

No project description provided

Project description

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]

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

typer_to_textual-2.5.0.tar.gz (10.2 kB view details)

Uploaded Source

Built Distribution

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

typer_to_textual-2.5.0-py3-none-any.whl (11.4 kB view details)

Uploaded Python 3

File details

Details for the file typer_to_textual-2.5.0.tar.gz.

File metadata

  • Download URL: typer_to_textual-2.5.0.tar.gz
  • Upload date:
  • Size: 10.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.3.1 CPython/3.8.10 Linux/5.4.0-135-generic

File hashes

Hashes for typer_to_textual-2.5.0.tar.gz
Algorithm Hash digest
SHA256 e5d5c909e1b219969a48f9acc9417c35b2f0e04aeeef5f45c58682f72315f056
MD5 3c7b1dbb06d7e1fd782190484cc9c45a
BLAKE2b-256 c49f8ac0e2ae6db76300aa3f09e3732064295952bcebc48a3d346df0efa1ebf3

See more details on using hashes here.

File details

Details for the file typer_to_textual-2.5.0-py3-none-any.whl.

File metadata

  • Download URL: typer_to_textual-2.5.0-py3-none-any.whl
  • Upload date:
  • Size: 11.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.3.1 CPython/3.8.10 Linux/5.4.0-135-generic

File hashes

Hashes for typer_to_textual-2.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2ec65400cb9c9ed9a26688b50b299efe21e7273627a5ff4576761e9bb972e876
MD5 d2952fb017fe601521f99e6348e02d86
BLAKE2b-256 cb69dc86c8a415855371ad9546105f82a53b2d5ce69a94ac347852773a2bdfec

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