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.1.tar.gz (4.6 kB view details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: tt_terminal_translator-0.2.1.tar.gz
  • Upload date:
  • Size: 4.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.12.4 Linux/6.6.35-2-lts

File hashes

Hashes for tt_terminal_translator-0.2.1.tar.gz
Algorithm Hash digest
SHA256 1bd92fca40b2c7fa0ee34991ab72e7c38fcf5d8f5cb9351a20f4e0a7723b491c
MD5 2c9f6ebc24f6e30ebb63ff5865457441
BLAKE2b-256 8bdca294fa5ae6cd51ce5faca589b7fd1ce375e7a26c88056ddd8268685329ad

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tt_terminal_translator-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 53c30455355fc80b37cd6216f4af15f4c30f9acfa820550c71abca8418dd0202
MD5 87208d3864ed7c472151453b88d64df0
BLAKE2b-256 f596caaf132eec50cae9d8c47b2155060f16eaa6fe9fd4dca704194056e8a91f

See more details on using hashes here.

Supported by

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