Skip to main content

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 – @ztzandreandreztz@gmail.com

https://github.com/andreztz/ztranslator

Contribua

  1. Fork it (https://github.com/andreztz/ztranslator/fork)
  2. Create your feature branch (git checkout -b feature/fooBar)
  3. Commit your changes (git commit -am 'Add some fooBar')
  4. Push to the branch (git push origin feature/fooBar)
  5. Create a new Pull Request

Download files

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

Source Distribution

ztranslator-1.0.0.tar.gz (7.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ztranslator-1.0.0-py3-none-any.whl (7.6 kB view details)

Uploaded Python 3

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

Hashes for ztranslator-1.0.0.tar.gz
Algorithm Hash digest
SHA256 890e4d53463d1809603fc8255e8402518174b1aa0b046fa14b6491eaf5a5cc23
MD5 e392a0ac58f162c379a6c51f09e6c53e
BLAKE2b-256 af21d593f40ac038793596eee4d73c0cdf6dfd030c4609480a2b3ffcf8e9e5fa

See more details on using hashes here.

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

Hashes for ztranslator-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3c1ddb61bc609a3bb9c5d5441825a55e1dfb8daa079f8118f0e8bf1e6f527c81
MD5 3a0c76dd6b7186555e05b21567a40885
BLAKE2b-256 04661b41a8aad7b78c9b55011a95548411492fe4e6769bcd544e4ba526a16063

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 files

0.1.0

2 files

0.0.9

2 files

0.0.8

2 files

0.0.7

1 file

0.0.6

1 file

0.0.5

2 files

0.0.4

2 files

0.0.3

2 files

0.0.2

2 files

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page