Skip to content

agunq/gt-py

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 

Repository files navigation

gt-py

google translate free API

Usage

simply run python tes.py

from gt import GT

tes = GT()
print(tes.t("selamat pagi", "ja", "id"))

will make dict() output

{'translate': 'おはようございます', 'pronunciation': 'Ohayōgozaimasu', 'text': 'selamat pagi', 'pronunciation_text': None, 'lang_from': 'id', 'lang_to': 'ja'}

another example

from gt import GT

tes = GT()
text = tes.text("good morning", "ko", "en")
print(text["translate"])

output

좋은 아침

and another one :v

from gt import GT

tes = GT()
text = tes.text("좋은 아침", "en")
print(text["translate"])

output

Good morning

About

google translate free API

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages