Powerful command line translator.
Project description
ztranslator
Simples tradutor de linha de comando, com mymemory.translated.net por trás. Você pode configurar uma combinação de teclas de atalho para que execute o ztranslator. Para isso basta passar --notify como parametro, que o ztranslator se encarrega de pegar a última entrada na área de transferência e exibir o texto traduzido em um simpático balãozinho no seu desktop.
Instalação:
$ pip install ztranslator
Exemplos de uso:
Na linha de comando:
$ ztranslator --help
$ python -m translator --help
No seu código python:
In [1]: from translator import Translator
In [2]: t = Translator(to_lang='pt-br')
In [3]: t.translate("Type copyright, credits or license for more information")
Out[3]: 'Digite copyright, créditos ou licença para mais informações'
Configuração para Desenvolvimento
$ git clone https://github.com/andreztz/ztranslator.git
$ cd ztranslator
$ virtualenv venv
$ source venv/bin/activate
$ pip install -e .
Histórico de lançamento
- 0.0.7 - O primeiro lançamento adequado.
- Trabalho em andamento
André Santos – @ztzandre – andreztz@gmail.com
https://github.com/andreztz/ztranslator
Contribua
- Fork it (https://github.com/andreztz/ztranslator/fork)
- Create your feature branch (
git checkout -b feature/fooBar
) - Commit your changes (
git commit -am 'Add some fooBar'
) - Push to the branch (
git push origin feature/fooBar
) - Create a new Pull Request
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
ztranslator-0.0.9.tar.gz
(6.4 kB
view hashes)
Built Distribution
Close
Hashes for ztranslator-0.0.9-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3adabc643af93599abc060388d1b70b4d2fe815f23cfae4ed4bd96ef40a143c8 |
|
MD5 | 763c92429773d6f69a3130e293baee3a |
|
BLAKE2b-256 | efcb8f037ea0e4a31993b3df763fd5cc6cc3f299a3bdfd40aa07eac43f1278b9 |