Skip to main content

Useful translation tool for console. With features: translate text from clipboard and store translation logs

Project description

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](https://wiki.archlinux.org/index.php/environment_variables)


### Usage Examples

- `itranslate -to es` Clipboard text will be translated

- `itranslate -to fr "Some text"` "Some text" will be translated

- `itranslate -to en -i` Interactive text input mode

- `itranslate -to en -p` Clipboard text will be translated and replaced with translation

- `itranslate --help` See All available options


### Tips and Tricks
- register bash/zsh aliases with most useful options; example `alias et="itranslate -to en -p -o -c yandex"

- save translation to file `itranslate [options] > file.txt`

- translate text from file `itranslate [options] "$(cat /path/to_file.txt)"`

- pipe result to another `itranslate --raw "Hello World"|cowsay`

### Limitations

This utility is for personal use, not automated translations.

The volume of translated text lenght is limited per-request

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

cli_translate-0.0.2.tar.gz (5.0 kB view details)

Uploaded Source

Built Distribution

cli_translate-0.0.2-py3-none-any.whl (5.6 kB view details)

Uploaded Python 3

File details

Details for the file cli_translate-0.0.2.tar.gz.

File metadata

  • Download URL: cli_translate-0.0.2.tar.gz
  • Upload date:
  • Size: 5.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for cli_translate-0.0.2.tar.gz
Algorithm Hash digest
SHA256 c0a21e02e733d03aebc958f8a1461ce29f1ed7ff14b715b980ff965ed3b0823e
MD5 1eb56a5383a9fce7d5eb9b3d0711e75e
BLAKE2b-256 1d0bd358a7eaaeb009d2b7fc6969024f9affd5936abbfad1fe12ce111060b882

See more details on using hashes here.

File details

Details for the file cli_translate-0.0.2-py3-none-any.whl.

File metadata

File hashes

Hashes for cli_translate-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 dcc09f7da53351d130dc250bd461ee7a05ec6406bcc0fbcb95f7da40dc0d896e
MD5 475a77dd11c4b56dba5459931d0899c0
BLAKE2b-256 567d7cffb229b2038e34a8b141be44c2fa3242764a8c75053e2a531a83065baa

See more details on using hashes here.

Supported by

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