Skip to content

irvaniamirali/itranslator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

56 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ITranslator

Text translation package based on Google Translate API

Sync Example

from itranslator import Translator

translator = Translator()

translated_text = translator.translate(query='hi there', to_lang='fa')
print(translated_text)

Async Example

from itranslator.asyncio import Translator
from asyncio import run

translator = Translator()


async def main():
    translated_text = await translator.translate("Hello", "fa")
    print(translated_text)

run(main())

Install & Update

pip install itranslator -U

License

ITranslator is released under the GPL-3.0 License. See the bundled LICENSE file for details.

About

Text translation package based on Google Translate API

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages