Skip to content

YoussefMo7amed/GoTransPy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages