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 in a virtual enviroment
$ 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.7.tar.gz
(2.7 kB
view hashes)
Built Distribution
Close
Hashes for mark1_translate-0.1.7-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fccb328a160c3d3f3a8d7653df3c4de1fde9683c5fc670fff92595af2a8f4f7f |
|
MD5 | 8b6e8ce276763e3ac718902855ea3250 |
|
BLAKE2b-256 | a1b825ab0c8262a80f8fcc7f8df74fdfdfdb92580012197e103fdd7b9c0f312c |