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.
##Instructions
- First of all you need to install additional python library: yandex_translate. You can do it with pip
$ pip install yandex.translate
-
Then need to clone this repository
git clone https://github.com/Evalle/pytranslator.git -
Also, you need to register your own API key. It's absolutely free and you can do it [here] (https://tech.yandex.com/translate/)
-
Once you got it, run cpkey.py script (you can find it in your pytranslator directory) and follow the instructions.
-
Now you can run pytranslator (see Examples section).
There is no other arguments except the words or sentencies that you want to translate.
$ pytranslator 'Hello my name is pytranslator'
Здравствуйте меня зовут pytranslator
$ pytranslator 'Я умею переводить с русского на английский и наоборот!'
I can translate from Russian to English and Vice versa!
$ pytranslator 'Хорошего дня!'
Have a nice day!
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.
