Repository
https://github.com/Divirad/PythonTranslate
PythonTranslate.py
The Project
What is this project about?
Yesterday i found a very cool free API from yandex.com (some real cool russian developer). So i decided to write a little wrapper for it to use it in future projects. The API supports language-detection, translations and so the wrapper.
Its just a wrapper for this API, nothing big, but i hope its powerful and helps you with some projects.
Maybe a webpage where posts on the steem blockchain can be translated? ;)
Technology Stack
Here a quick list of libraries and stuff i used :)
- Python3.6.x
- urllib (should be installed with Python)
- translate.yandex.com
Roadmap
My future plans are :
Maybe some translating chat-bots, maybe on Telegram, Skype... we will see :D
And i should handle the errors with exceptions. Its nothing big and not my main-project :) Feel free to use it! :D
How to contribute?
Just fork it like its hot and make pull requests! :D If you have some issues post them into the issues-board.
Feel free to contact me on Telegram @kurodevs if you need help :)
Lil Quick Documentation
How to use it?
First you have to get an Api-Key from this Site
Keep in mind that it's not safe to upload your API-Key publicly on Github.
I recommend you to save it in an private.py file to import it locally into your project.
private.py
# DONT UPLOAD TO GITHUB
APIKEY = "<your key here>"
After that create an object in your file where you want to translate something.
main.py
from pythontranslate import Translator
from private import APIKEY
translator = Translator(APIKEY)