Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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.

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 YandexTranslator

t = 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 pairs

t.translate() # Translate current strings
print t.translated

translation_dict = t.make_dict() # For easier use later on
```