Giter Site home page Giter Site logo

dannywillems / google-translate-python Goto Github PK

View Code? Open in Web Editor NEW

This project forked from terryyin/translate-python

0.0 3.0 0.0 160 KB

Google translate as Python module & command line tool. No key, no authentication whatsoever.

Makefile 0.30% Python 99.70%

google-translate-python's Introduction

google-translate-python

Google translate as Python module & command line tool. No key, no authentication whatsoever. The default target language is Simplified Chinese.

利用google translate实现的命令行工具(translate),也可以当做Python模块用在你的代码中。

Installation

pip install translate

Or, you can download the source and

python setup.py install

Add sudo in the beginning if you met problem.

Command-Line Usage

In your command-line:

translate "This is a pen."

Or

translate -f zh -t ja 我是谁?

Use As A Python Module

from translate import Translator
translator= Translator(to_lang="zh")
translation = translator.translate("This is a pen.")

The result is in translation, and it's usually a unicode string.

google-translate-python's People

Contributors

terryyin avatar

Watchers

James Cloos avatar Danny Willems avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.