A free and unlimited python CLI for google translate based on google_trans_new.
It’s very easy to use and solve the problem that the old api which use tk value cannot be used.
This interface is for academic use only, please do not use it for commercial use.


  • Python >=3.6
    • You can install python form here
  • requests
pip install requests
  • six
pip install six

Basic Usage

Auto detection translation (*Arabic is the default targeted langauge*)

$ python "hello world"
مرحبا بالعالم

Target a language by adding “-t” flag

$ python "hello world" -t de
Hallo Welt

Change source language by adding “-s” flag

$ python "Auto" -s de -t en

Help tag

$ python -h
 positional arguments:
  text                  text that will be translated.

optional arguments:
  -h, --help            show this help message and exit
  -v, --version         show program version number and exit
  -s SOURCE, --source SOURCE
                        the source language.
  -t TARGET, --target TARGET
                        the target language.


Copyright (c) 2022 Youssef Mohamed.

License MIT
Open Source


View Github