Skip to main content

Free Google Translate API for Python. Translates totally free of charge.

Project description

===============================================================
GoogleFreeTrans: Free Google translate API for Python
===============================================================

|GitHub license| |travis status| |version|

python 3.4+

----------
Quickstart
----------
You can install it from PyPI:

.. sourcecode:: bash

$ pip install GoogleFreeTrans

..
or manual install:

.. sourcecode:: bash

$ python setup.py test
$ python setup.py install

..

~~~~~~~~~~~~~~~~~~~~~~~~~~~
single sentence translation
~~~~~~~~~~~~~~~~~~~~~~~~~~~

.. code:: python

>>> from GoogleFreeTrans import Translator
>>> translator = Translator.translator(scr='en', dest='fr')
>>> translator.translate('china')
'Chine'

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
multiple sentence translation
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

.. code:: python

>>> from GoogleFreeTrans import Translator
>>> translator = Translator.translator(scr='en', dest='fr')
>>> translator.translate('china. french')
[[['Chine. ', 'china.', None, None, 1], ['français.', 'french.', None, None, 1]], None, 'en']

----------------
support language
----------------

.. code::

'afrikaans': 'af',
'arabic': 'ar',
'belarusian': 'be',
'bulgarian': 'bg',
'catalan': 'ca',
'czech': 'cs',
'welsh': 'cy',
'danish': 'da',
'german': 'de',
'greek': 'el',
'english': 'en',
'esperanto': 'eo',
'spanish': 'es',
'estonian': 'et',
'persian': 'fa',
'finnish': 'fi',
'french': 'fr',
'irish': 'ga',
'galician': 'gl',
'hindi': 'hi',
'croatian': 'hr',
'hungarian': 'hu',
'indonesian': 'id',
'icelandic': 'is',
'italian': 'it',
'hebrew': 'iw',
'japanese': 'ja',
'korean': 'ko',
'latin': 'la',
'lithuanian': 'lt',
'latvian': 'lv',
'macedonian': 'mk',
'malay': 'ms',
'maltese': 'mt',
'dutch': 'nl',
'norwegian': 'no',
'polish': 'pl',
'portuguese': 'pt',
'romanian': 'ro',
'russian': 'ru',
'slovak': 'sk',
'slovenian': 'sl',
'albanian': 'sq',
'serbian': 'sr',
'swedish': 'sv',
'swahili': 'sw',
'thai': 'th',
'filipino': 'tl',
'turkish': 'tr',
'ukrainian': 'uk',
'vietnamese': 'vi',
'yiddish': 'yi',
'chinese_simplified': 'zh-CN',
'chinese_traditional': 'zh-TW',
'auto': 'auto'

.. |GitHub license| image:: https://img.shields.io/github/license/mashape/apistatus.svg
:target: http://opensource.org/licenses/MIT
.. |travis status| image:: https://travis-ci.org/ziliwang/GoogleFreeTrans.svg?branch=master
:target: https://travis-ci.org/ziliwang/GoogleFreeTrans
.. |version| image:: https://img.shields.io/github/release/ziliwang/GoogleFreeTrans.svg
:target: https://github.com/ziliwang/GoogleFreeTrans/releases

Project details


Release history Release notifications

This version
History Node

0.1.2

History Node

0.1.1

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
GoogleFreeTrans-0.1.2.tar.gz (5.4 kB) Copy SHA256 hash SHA256 Source None May 12, 2017

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page