Skip to main content

Yandex translate async api wrapper

Project description

aioyatr

Async yandex.translate api wrapper for python

Example of usage

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!

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

aio_yandex_translate-1.0.tar.gz (3.0 kB view details)

Uploaded Source

Built Distribution

aio_yandex_translate-1.0-py3-none-any.whl (17.2 kB view details)

Uploaded Python 3

File details

Details for the file aio_yandex_translate-1.0.tar.gz.

File metadata

  • Download URL: aio_yandex_translate-1.0.tar.gz
  • Upload date:
  • Size: 3.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.8.0

File hashes

Hashes for aio_yandex_translate-1.0.tar.gz
Algorithm Hash digest
SHA256 0d30872938c6ec94b791444c3303d4feec0082f973c8d3e5bbfe9370d01ea3c8
MD5 76796862c71e3f0a2c4ce4e2bf445e43
BLAKE2b-256 50bd340f788be8a53516f961391003a75e13388fb7fe6b5bb96aab501a9e8dd3

See more details on using hashes here.

File details

Details for the file aio_yandex_translate-1.0-py3-none-any.whl.

File metadata

  • Download URL: aio_yandex_translate-1.0-py3-none-any.whl
  • Upload date:
  • Size: 17.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.8.0

File hashes

Hashes for aio_yandex_translate-1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 84995c19747ff2307a488d97a20fb91ed84a73bfe2bb187dfa234dd598ec2ad0
MD5 a184ce3bfaec9a94939bead162c809ab
BLAKE2b-256 263fb04ab13ebde3234ad74c5a4c358553b13ee8fdb1702f5ac790c59357a950

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page