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

Usage Examples

  • itrans -to es Clipboard text will be translated

  • itrans -to fr "Some text" "Some text" will be translated

  • itrans -to en -i Interactive text input mode

  • itrans -to en -p Clipboard text will be translated and replaced with translation

  • itrans --help See 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

Screen1

Screen2

Screen3

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.5.tar.gz (5.8 kB view details)

Uploaded Source

Built Distribution

cli_translate-0.0.5-py3-none-any.whl (6.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: cli_translate-0.0.5.tar.gz
  • Upload date:
  • Size: 5.8 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for cli_translate-0.0.5.tar.gz
Algorithm Hash digest
SHA256 3210a68679ca4a9167429959cee918a3ff586f1af390cf28866f7cf7cf8b4ead
MD5 1083a57511d9d9866ea301072a1f2118
BLAKE2b-256 8b6455c3c1785a55f3a1e99cd64f2aa8bf91844cfd89e2f744536a4e86db21d8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: cli_translate-0.0.5-py3-none-any.whl
  • Upload date:
  • Size: 6.9 kB
  • Tags: Python 3
  • Uploaded using 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

File hashes

Hashes for cli_translate-0.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 aea784270bd59c35d3e3898e44e52d123ac117a458651c344c11732b3a8b3893
MD5 5d59264ffccb6f125847c535f517c835
BLAKE2b-256 a8b887d82496d5e0b799c7e0d6c1f6a63af919b676ebc0937913cc589fcfba4e

See more details on using hashes here.

Supported by

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