YoussefMo7amed / GoTransPy

This tool is a free and unlimited python CLI for google translate. based on google_trans_new.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

GoTransPy

alt text

You can translate what you want using your terminal instead of wasting your memory opening a browser. 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.


Prerequisites

  • 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 main.py "hello world"
مرحبا بالعالم

Target a language by adding "-t" flag

$ python main.py "hello world" -t de
Hallo Welt

Change source language by adding "-s" flag

$ python main.py "Auto" -s de -t en
Automobile

Help tag

$ python main.py -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.

License

Copyright (c) 2022 Youssef Mohamed.

License MIT Open Source Hits

About

This tool is a free and unlimited python CLI for google translate. based on google_trans_new.

License:MIT License


Languages

Language:Python 100.0%