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
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)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| ztranslator-1.0.0.tar.gz | 7.1 kB | Without provenance | Details for ztranslator-1.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| ztranslator-1.0.0-py3-none-any.whl | Python 3 | none | any | Details for ztranslator-1.0.0-py3-none-any.whl |
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
|
Security for ztranslator 1.0.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.