Skip to content

Sz3rs/yandex-translate-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Переводчик текста

from yandex_translate_api import translate

en_text = 'Hello, world'
ru_text = translate(en_text, from_lang='en', to_lang='ru')

print(ru_text) #Привет, мир
from yandex_translate_api import async_translate
import asyncio

async def main():
    en_text = 'Hello, world'
    ru_text = await async_translate(en_text, from_lang='en', to_lang='ru')

    print(ru_text) #Привет, мир

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages