Skip to main content

Google Translate based api

Project description

Mark1 Translator

This is a small tool to translate from Google Translate, base on mtranslate by mouuff

It was reduce to the minimum expression and converted to use requests

Install

Note: this instructions are made for ubuntu

It is highly recommended to use it inside a virtual enviroment for your project, but can be install globally with

$ pip3 install mark1_translate

Or

$ virtualenv .venv
$ source .venv/bin/activate
$ pip install mark1_translate
$ python3

Example

On interactive console type

>>> from mark1_translate imprt translate
>>> translate('hola mundo', 'en', 'auto')
'Hello World'

On a project

from mark1_translate imprt translate

t = translate('hola mundo', 'en', 'auto')

print(t)

Project details


Download files

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

Source Distribution

mark1-translate-0.1.5.tar.gz (2.0 kB view hashes)

Uploaded Source

Built Distribution

mark1_translate-0.1.5-py3-none-any.whl (2.1 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page