Terminal Translator is a translation CLI that uses the Google Cloud API.
Project description
Terminal Translator
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
We can also inform the target language for the translation
tt ola mundo --target es # spanish
There is also a parameter to translate directly into Portuguese
tt hello world -p
In addition there is a parameter to copy the output directly to the clipboard
tt -c hola mundo
For more information use the parameter --help
tt --help
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1bd92fca40b2c7fa0ee34991ab72e7c38fcf5d8f5cb9351a20f4e0a7723b491c |
|
MD5 | 2c9f6ebc24f6e30ebb63ff5865457441 |
|
BLAKE2b-256 | 8bdca294fa5ae6cd51ce5faca589b7fd1ce375e7a26c88056ddd8268685329ad |
File details
Details for the file tt_terminal_translator-0.2.1-py3-none-any.whl
.
File metadata
- Download URL: tt_terminal_translator-0.2.1-py3-none-any.whl
- Upload date:
- Size: 5.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.12.4 Linux/6.6.35-2-lts
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 53c30455355fc80b37cd6216f4af15f4c30f9acfa820550c71abca8418dd0202 |
|
MD5 | 87208d3864ed7c472151453b88d64df0 |
|
BLAKE2b-256 | f596caaf132eec50cae9d8c47b2155060f16eaa6fe9fd4dca704194056e8a91f |