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
Metadata
Release files for tt-terminal-translator 0.2.1
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 |
|---|---|---|---|---|
| tt_terminal_translator-0.2.1.tar.gz | 4.6 kB | Without provenance | Details for tt_terminal_translator-0.2.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| tt_terminal_translator-0.2.1-py3-none-any.whl | Python 3 | none | any | Details for tt_terminal_translator-0.2.1-py3-none-any.whl |
Total release size: 10.2 kB
Release files / tt_terminal_translator-0.2.1.tar.gz
| Download URL | tt_terminal_translator-0.2.1.tar.gz |
|---|---|
| Size | 4.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1bd92fca40b2c7fa0ee34991ab72e7c38fcf5d8f5cb9351a20f4e0a7723b491c
|
|
BLAKE2b-256 checksum How to use checksums |
8bdca294fa5ae6cd51ce5faca589b7fd1ce375e7a26c88056ddd8268685329ad
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.8.3 CPython/3.12.4 Linux/6.6.35-2-lts
|
Release files / tt_terminal_translator-0.2.1-py3-none-any.whl
| Download URL | tt_terminal_translator-0.2.1-py3-none-any.whl |
|---|---|
| Size | 5.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
53c30455355fc80b37cd6216f4af15f4c30f9acfa820550c71abca8418dd0202
|
|
BLAKE2b-256 checksum How to use checksums |
f596caaf132eec50cae9d8c47b2155060f16eaa6fe9fd4dca704194056e8a91f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.8.3 CPython/3.12.4 Linux/6.6.35-2-lts
|
Security for tt-terminal-translator 0.2.1
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.