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 – @ztzandre – andreztz@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

Metadata

Release files for ztranslator 1.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ztranslator 1.0.0
File Size Uploaded
ztranslator-1.0.0.tar.gz 7.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for ztranslator 1.0.0
File Interpreter ABI Platform
ztranslator-1.0.0-py3-none-any.whl Python 3 none any Details

Total release size: 14.7 kB

Release files / ztranslator-1.0.0.tar.gz

Download URL ztranslator-1.0.0.tar.gz
Size 7.1 kB
Tags Source
SHA-256 checksum
How to use checksums
890e4d53463d1809603fc8255e8402518174b1aa0b046fa14b6491eaf5a5cc23
BLAKE2b-256 checksum
How to use checksums
af21d593f40ac038793596eee4d73c0cdf6dfd030c4609480a2b3ffcf8e9e5fa
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.11 CPython/3.9.9 Linux/5.15.7-arch1-1

Release files / ztranslator-1.0.0-py3-none-any.whl

Download URL ztranslator-1.0.0-py3-none-any.whl
Size 7.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3c1ddb61bc609a3bb9c5d5441825a55e1dfb8daa079f8118f0e8bf1e6f527c81
BLAKE2b-256 checksum
How to use checksums
04661b41a8aad7b78c9b55011a95548411492fe4e6769bcd544e4ba526a16063
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.11 CPython/3.9.9 Linux/5.15.7-arch1-1

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 release files

0.1.0

2 release files

0.0.9

2 release files

0.0.8

2 release files

0.0.7

1 release file

0.0.6

1 release file

0.0.5

2 release files

0.0.4

2 release files

0.0.3

2 release files

0.0.2

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page