AI-powered grammar checker for the terminal
Project description
EnglishUp
EnglishUp é uma CLI para revisar e melhorar textos em inglês no terminal.
A biblioteca oferece:
- correção gramatical (
check) - explicação de erros (
explain) - integração com shell (zsh/bash)
- sugestões ao digitar no terminal (live)
- score de qualidade e pontos de melhoria
Requisitos
- Python
>= 3.9 - Chave da API da Anthropic
Instalação
pip install englishup
Configuração
Você pode configurar a chave da API de duas formas.
1) Variável de ambiente (recomendado)
export ANTHROPIC_API_KEY="sua-chave"
2) Comando da própria CLI
englishup config --api-key "sua-chave"
Para validar se a chave está configurada:
englishup config
Uso básico
Corrigir texto
englishup check "I have maked a mistake"
Corrigir texto via pipe
echo "fix the broke pipeline" | englishup check
Explicar erros
englishup explain "She don't know the answer"
Integração com shell (zsh e bash)
Instala o hook no shell atual (~/.zshrc ou ~/.bashrc):
englishup setup
Depois, recarregue o shell:
source ~/.zshrc
# ou
source ~/.bashrc
Com isso ativo, ao digitar comandos com texto em inglês (ex.: git commit -m "fix the broke pipeline"), a CLI pode sugerir melhorias.
Atalhos no modo live (zsh):
Tab: aceita sugestãoEsc: descarta sugestãoEnter: executa o comando (com verificação final)
Para remover a integração:
englishup uninstall
Diagnóstico
Use o comando abaixo para validar setup, chave e conectividade:
englishup doctor
Sem chamada de API (somente validações locais):
englishup doctor --skip-api
Segurança
- Nunca commite sua chave de API.
- Prefira variável de ambiente para configurar a chave.
Comando principal
Após instalar, o entrypoint disponível é:
englishup --help
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 englishup-0.1.0.tar.gz.
File metadata
- Download URL: englishup-0.1.0.tar.gz
- Upload date:
- Size: 23.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ae9ec706b85c2c9c6166ab415f7fd12d5dd506374cb4a96239328f7c3dd0641a
|
|
| MD5 |
7e6f10ccb08aeec6857c2de8a583de1e
|
|
| BLAKE2b-256 |
aa3e33973e5c7139a3ad8c66f86fb33c853b09048256a3d9870c7d3b04951111
|
File details
Details for the file englishup-0.1.0-py3-none-any.whl.
File metadata
- Download URL: englishup-0.1.0-py3-none-any.whl
- Upload date:
- Size: 25.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ca5c90ab50211ed4cb7143e8106a96080de5626b956bb4762be30dd8c1e0e680
|
|
| MD5 |
dc5634649f60687ab321f580031b31db
|
|
| BLAKE2b-256 |
ceb0b8af4c732e050246a8b36ac894426c6a31bcb835e2f0c60ecde9476d374c
|