Skip to main content

Terminal Translator is a translation CLI that uses the Google Cloud API.

Project description

Terminal Translator

Documentation Status

Terminal Translator is a translation CLI that uses the Google Cloud API.

Documentation

See the full documentation

Installation

Installation is very simple, just run the following command in the terminal:

pip install tt-terminal-translator

Basic Usage

The CLI consists of two commands, tt and tt-configure.

tt

tt is the main CLI command.

Usage

Basically we call the command passing the text to be translated

By default the text will be translated to en-us

tt ola mundo

tt

We can also inform the target language for the translation

tt ola mundo --target es  # spanish

tt-2

There is also a parameter to translate directly into Portuguese

tt hello world -p

tt-3

In addition there is a parameter to copy the output directly to the clipboard

tt -c hola mundo

tt-4

For more information use the parameter --help

tt --help

tt-5

tt-configure

tt-configure is only for the initial configuration of the Google Cloud API credentials, as seen in the settings section.

Usage

Basically we call the command passing two arguments, first the project-id followed by the path of the credentials Json file.

tt-configure <project-id> <google-api-credentials>

For quick help use the --help argument.

tt-configure --help

tt-configure

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

tt_terminal_translator-0.2.0.tar.gz (4.6 kB view details)

Uploaded Source

Built Distribution

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

tt_terminal_translator-0.2.0-py3-none-any.whl (5.7 kB view details)

Uploaded Python 3

File details

Details for the file tt_terminal_translator-0.2.0.tar.gz.

File metadata

  • Download URL: tt_terminal_translator-0.2.0.tar.gz
  • Upload date:
  • Size: 4.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.5.1 CPython/3.11.6 Linux/6.7.0-arch3-1

File hashes

Hashes for tt_terminal_translator-0.2.0.tar.gz
Algorithm Hash digest
SHA256 4fc7912cf72d62e9150d3c24cc21dfa5753ba70f4b935fca13abae3321f27762
MD5 f3c5a85d8cbd5f57bb705d691f10ecde
BLAKE2b-256 3ca093e01ad889d8ff1faf1705567bea85b4b7b99f85176611e6952d41aab97b

See more details on using hashes here.

File details

Details for the file tt_terminal_translator-0.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for tt_terminal_translator-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 411b4545165dbb44c735e236020f033f64215da0e992216eca6b8e5a703d2a75
MD5 b4e22c83f3401ca545c91434731ce928
BLAKE2b-256 e8e276d95668541800aea903b3a8539a70d1a05e962e7799b0c7d1f4e526bbd0

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