Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/aksiksi/yandex-translate
A thin Python wrapper around the Yandex Translation API.
https://github.com/aksiksi/yandex-translate
Last synced: 6 days ago
JSON representation
A thin Python wrapper around the Yandex Translation API.
- Host: GitHub
- URL: https://github.com/aksiksi/yandex-translate
- Owner: aksiksi
- License: mit
- Created: 2013-12-29T18:35:46.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2013-12-29T18:46:33.000Z (almost 11 years ago)
- Last Synced: 2024-10-23T09:02:02.258Z (14 days ago)
- Language: Python
- Size: 117 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
yandex-translate
================A thin Python wrapper around the Yandex Translation API.
## Requirements
* Python 2.6+ (for `multiprocessing` module)
* requests (can be found in the accompanying `requirements.text`)## Usage
```python
from yandex import YandexTranslatort = YandexTranslator(api_key='TEST', from_lang='en', to_lang='de')
t.strings.append('My name is Joe.')t.update_languages()
print t.languages # Show supported language pairst.translate() # Translate current strings
print t.translatedtranslation_dict = t.make_dict() # For easier use later on
```