Console Translator
Installation
pip3 install cli_translate --user
Features
-
Quick translation for text in clipboard
-
Ability for replace text in clipboard with translation
-
Ability for output with notify-send (useful with hotkey binding)
-
Store all translated texts in sqlite database
-
Google or Yandex translation clients
Configure Yandex Api key
The usage yandex translator require following steps
-
go to https://translate.yandex.ru/developers/keys and register free api key
-
define environment variable with name YANDEX_TRANSLATE_API_KEY and with api key as value Guide
Usage Examples
-
itrans -to esClipboard text will be translated -
itrans -to fr "Some text""Some text" will be translated -
itrans -to en -iInteractive text input mode -
itrans -to en -pClipboard text will be translated and replaced with translation -
itrans --helpSee All available options
Tips and Tricks
-
register bash/zsh aliases with most useful options; example `alias et="itrans -to en -p -o -c yandex"
-
save translation to file
itrans [options] > file.txt -
translate text from file
itrans [options] "$(cat /path/to_file.txt)" -
pipe result to another
itrans --raw "Hello World"|cowsay
Limitations
This utility is for personal use, not automated translations.
The volume of translated text lenght is limited per-request
Screens
Metadata
Release files for cli-translate 0.0.5
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 |
|---|---|---|---|---|
| cli_translate-0.0.5.tar.gz | 5.8 kB | Without provenance | Details for cli_translate-0.0.5.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| cli_translate-0.0.5-py3-none-any.whl | Python 3 | none | any | Details for cli_translate-0.0.5-py3-none-any.whl |
Total release size: 12.7 kB
Release files / cli_translate-0.0.5.tar.gz
| Download URL | cli_translate-0.0.5.tar.gz |
|---|---|
| Size | 5.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3210a68679ca4a9167429959cee918a3ff586f1af390cf28866f7cf7cf8b4ead
|
|
BLAKE2b-256 checksum How to use checksums |
8b6455c3c1785a55f3a1e99cd64f2aa8bf91844cfd89e2f744536a4e86db21d8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/42.0.2 requests-toolbelt/0.9.1 tqdm/4.41.0 CPython/3.8.0
|
Release files / cli_translate-0.0.5-py3-none-any.whl
| Download URL | cli_translate-0.0.5-py3-none-any.whl |
|---|---|
| Size | 6.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
aea784270bd59c35d3e3898e44e52d123ac117a458651c344c11732b3a8b3893
|
|
BLAKE2b-256 checksum How to use checksums |
a8b887d82496d5e0b799c7e0d6c1f6a63af919b676ebc0937913cc589fcfba4e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/42.0.2 requests-toolbelt/0.9.1 tqdm/4.41.0 CPython/3.8.0
|
Security for cli-translate 0.0.5
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.