Powerful command line translator.
Project description
ztranslator
Simples tradutor de linha de comando. Você pode configurar uma combinação de teclas de atalho para que execute o ztranslator, para isso basta passar --notify como parametro de linha comando, 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 na sua Área de Trabalho.
Instalação:
$ pip install ztranslator
Exemplos de uso:
Na linha de comando:
$ ztranslator --text "Hello World" --source-lang en --target-lang pt --source-api google
$ ztranslator --help
$ python -m translator --help
No seu código python:
In [1]: from translator import Translator
In [2]: t = Translator(source_lang="pt", target_lang='en', source_api="google")
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
- 1.0.0 - Altera interface da API e linha de comando.
- 0.1.0 - Adiciona acesso a api do google translate via googletrans.
- 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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file ztranslator-1.0.0.tar.gz.
File metadata
- Download URL: ztranslator-1.0.0.tar.gz
- Upload date:
- Size: 7.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.11 CPython/3.9.9 Linux/5.15.7-arch1-1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
890e4d53463d1809603fc8255e8402518174b1aa0b046fa14b6491eaf5a5cc23
|
|
| MD5 |
e392a0ac58f162c379a6c51f09e6c53e
|
|
| BLAKE2b-256 |
af21d593f40ac038793596eee4d73c0cdf6dfd030c4609480a2b3ffcf8e9e5fa
|
File details
Details for the file ztranslator-1.0.0-py3-none-any.whl.
File metadata
- Download URL: ztranslator-1.0.0-py3-none-any.whl
- Upload date:
- Size: 7.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.11 CPython/3.9.9 Linux/5.15.7-arch1-1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3c1ddb61bc609a3bb9c5d5441825a55e1dfb8daa079f8118f0e8bf1e6f527c81
|
|
| MD5 |
3a0c76dd6b7186555e05b21567a40885
|
|
| BLAKE2b-256 |
04661b41a8aad7b78c9b55011a95548411492fe4e6769bcd544e4ba526a16063
|