Metadata-Version: 2.1
Name: aio-yandex-translate
Version: 1.0
Summary: Yandex translate async api wrapper
Home-page: https://github.com/Rud356/aioyatr
Author: Rud356
Author-email: devastator12a@mail.ru
License: GPLv3
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)
Classifier: Operating System :: OS Independent
Classifier: Intended Audience :: Developers
Classifier: Natural Language :: English
Requires-Python: >=3.6
Description-Content-Type: text/markdown
Requires-Dist: aiohttp (>=3.6)
Provides-Extra: ujson
Requires-Dist: 1.35 ; extra == 'ujson'

# aioyatr
Async yandex.translate api wrapper for python

# Example of usage
```python
import asyncio
from aio_yandex_translate.translator import Translator
key = "TOKEN"

async def main():
    text = 'Hello world'
    print(text)
    t = Translator(key)
    r = await t.translate(text, to_language='ru')
    print(r)


loop = asyncio.get_event_loop()
loop.run_until_complete(main())
```

## Explaining some details
To get to exceptions that module can throw you may go
to Translator.exc and see classes of exceptions (TranslatorError is base)  
The code is really short but i hope it will help you!

