Skip to main content

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

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)

Source distribution for tt-terminal-translator 0.2.1
File Size Uploaded
tt_terminal_translator-0.2.1.tar.gz 4.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for tt-terminal-translator 0.2.1
File Interpreter ABI Platform
tt_terminal_translator-0.2.1-py3-none-any.whl Python 3 none any Details

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

Release history Release notifications | RSS feed

This release

0.2.1 This release

2 release files

0.2.0

2 release files

0.1.6

2 release files

0.1.5

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page