TecJustica CLI
CLI para consulta de processos judiciais brasileiros via MCP.
Acesse seus processos diretamente do terminal — navegue, busque, analise e consulte precedentes sem sair da linha de comando.
Instalacao
# Recomendado (instala em venv isolado)
pipx install tecjustica
# Alternativa (dentro de um venv existente)
pip install tecjustica
Nota: Em sistemas com Python 3.12+ (Ubuntu 24.04, Debian 13, etc.),
pip installglobal e bloqueado por PEP 668. Usepipxou instale dentro de um virtual environment.
Autenticacao
# Login via navegador (metodo padrao — abre OAuth no browser)
tecjustica login
# Alternativa: login com API key
tecjustica login --token tk_SUA_CHAVE
# Alternativa: login com email/senha
tecjustica login --email seu@email.com --password suasenha
# Verificar autenticacao
tecjustica whoami
# Desconectar
tecjustica logout
Comandos
| Comando | Descricao |
|---|---|
login |
Autenticar (abre navegador por padrao) |
logout |
Remover autenticacao salva |
listar-processos |
Listar processos disponiveis |
visao-geral |
Visao geral de um processo (metadados, partes, stats) |
ls-docs |
Listar documentos de um processo |
ls-movs |
Listar movimentacoes de um processo |
read-doc |
Ler conteudo de um documento |
grep-docs |
Buscar texto em documentos (full-text search) |
grep-movs |
Buscar texto em movimentacoes |
glob-docs |
Filtrar documentos por nome/tipo |
localizar |
Localizar termo em documento (posicoes exatas) |
analisar |
Analisar processo com IA |
precedentes |
Buscar precedentes (sumulas, temas repetitivos, IRDR) |
stats-docs |
Estatisticas de documentos de um processo |
calc |
Calculadora de expressoes e prazos processuais |
agora |
Data e hora atual |
whoami |
Identidade do usuario autenticado |
Exemplos
# Login
tecjustica login
# Listar processos
tecjustica listar-processos
# Visao geral de um processo
tecjustica visao-geral 1234567-89.2024.8.26.0100
# Buscar "dano moral" nos documentos
tecjustica grep-docs "dano moral" --processo 1234567-89.2024.8.26.0100
# Analisar processo com IA
tecjustica analisar 1234567-89.2024.8.26.0100 --pergunta "Qual a situacao atual?"
# Buscar precedentes
tecjustica precedentes "dano moral"
# Saida em JSON (para scripting)
tecjustica --json listar-processos
Configuracao
O token e configuracoes ficam em ~/.config/tecjustica/config.toml.
Para usar um servidor diferente:
tecjustica login --token tk_SUA_CHAVE --server https://seu-servidor.com/mcp
Links
Metadata
Release files for tecjustica 0.1.6
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 |
|---|---|---|---|---|
| tecjustica-0.1.6.tar.gz | 365.0 kB | Without provenance | Details for tecjustica-0.1.6.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| tecjustica-0.1.6-py3-none-any.whl | Python 3 | none | any | Details for tecjustica-0.1.6-py3-none-any.whl |
Total release size: 385.3 kB
Release files / tecjustica-0.1.6.tar.gz
| Download URL | tecjustica-0.1.6.tar.gz |
|---|---|
| Size | 365.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
180b931b4c626cacac1446054725fc67ede9636eab89693582c6590f5019171f
|
|
BLAKE2b-256 checksum How to use checksums |
dc9a3ba1011325253d80b104fdc09dc2196da3ec5f607eb5829bb31a0c4944a0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.14
|
Release files / tecjustica-0.1.6-py3-none-any.whl
| Download URL | tecjustica-0.1.6-py3-none-any.whl |
|---|---|
| Size | 20.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
8c11195b2450f7ea718f3d8a0d1604bf4d3e580bb4d8467e8ff831015f38cf8a
|
|
BLAKE2b-256 checksum How to use checksums |
525aedd071b59f65b4b6274234a0e3bf4fa95b5d37961050d3ee180de058d639
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.14
|
Security for tecjustica 0.1.6
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.