Evalle/pytranslator

Pytranlator is a python cli program which allows you to translale words and sentencies from russian to english and vice verse.

★ 0Forks 1PythonGitHub ↗Compare

README

pytranslator

pytranlator is a python cli program which allows you to translale words and sentencies from Russian to English and vice verse. It uses Yandex translator API and it's very accurate.

pytranslator

##Instructions

  1. First of all you need to install additional python library: yandex_translate. You can do it with pip
$ pip install yandex.translate
  1. Then need to clone this repository git clone https://github.com/Evalle/pytranslator.git

  2. Also, you need to register your own API key. It's absolutely free and you can do it [here] (https://tech.yandex.com/translate/)

  3. Once you got it, run cpkey.py script (you can find it in your pytranslator directory) and follow the instructions.

  4. Now you can run pytranslator (see Examples section).

Arguments

There is no other arguments except the words or sentencies that you want to translate.

Examples

$ pytranslator 'Hello my name is pytranslator'
Здравствуйте меня зовут pytranslator
$ pytranslator 'Я умею переводить с русского на английский и наоборот!'
I can translate from Russian to English and Vice versa!
$ pytranslator 'Хорошего дня!'
Have a nice day!

Free software

pytranslator - Copyright (C) 2016 Evgeny Shmarnev [email protected]

pytranslator is a free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

pytranslator is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

Contributors

Evalle

Issues