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)
Built Distribution
Close
Hashes for mark1_translate-0.1.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | dd2f116eea2c8ae3ad1a04a132b9e0c7b3a8c61e2f78192ac76ae4e82995675f |
|
MD5 | 5978b99bd6bb10bfca32e52c27628348 |
|
BLAKE2b-256 | 67d5c4febb964ec69d2ad98677a5883c1ef1f2e56451be859720393fec47c070 |