Linguagem de programação em português para scripts e automação
Project description
SimpliPT
Linguagem de programação em português para scripts, automação e produtividade.
usar sistema
usar arquivos
falar "=== GERADOR DE SENHA ==="
tamanho = sistema.ler("Tamanho: ").inteiro()
caracteres = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!@#$%&*"
senha = ""
para i em 1...tamanho
senha = senha + caracteres[matematica.aleatorio(0, caracteres.tamanho() - 1)]
fim
falar "Senha gerada: " + senha
arquivos.escrever("senha.txt", senha)
falar "Salvo em senha.txt"
Instalação
# Via PyPI (recomendado)
pip install simplipt
# Ou via repositório (modo desenvolvimento)
git clone https://github.com/anomalyco/simplipt
cd simplipt
pip install -e .
# Ou diretamente sem instalação
python -m src.cli arquivo.spt
Requer Python 3.12+. Zero dependências externas (pacote opcional colorama para cores no terminal).
Uso
CLI (linha de comando)
simplipt # REPL interativo
simplipt arquivo.spt # Executar script
simplipt formatar <arquivo> # Formatador de código
simplipt transpilar <arq> # Transpilar SimpliPT → Python
simplipt build <arquivo> # Compilar para .pyz (zipapp)
simplipt build --exe <arq> # Compilar para .exe (requer PyInstaller)
simplipt dashboard [dir] # IDE web / admin dashboard
simplipt lsp # Servidor LSP (autocomplete em editores)
simplipt install <pacote> # Instalar pacote do repositório
simplipt new <nome> # Criar novo projeto (scaffold)
simplipt test [dir] # Rodar test runner
simplipt debug [dir] # Debugger web interativo
simplipt modulo install <pkg> # Instalar módulo Python externo
simplipt modulo listar # Listar módulos externos
Opções: --debug, -b/--breakpoint, -w/--watch, --strict, --hot, --json, --profile
Características
- Comandos em português natural (
falar,se,para,enquanto,tentar) - 18 módulos embutidos (sistema, arquivos, json, http, servidor, banco, template, etc.)
- Ternário em qualquer expressão:
status = "ok" se resposta eh 200 senao "erro" - Template engine:
{{ var }},{% se %},{% para %},{% incluir %} - List comprehension:
[x*2 para x em lista se x > 5] - Orientação a objetos:
classe,novo,este,super,extende - Servidor web embutido com rotas, sessões, arquivos estáticos, templates
- SQLite, cache com TTL, fila de tarefas com workers
- Tipagem opcional:
nome: texto = "João" - Zero dependências externas
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 simplipt-5.3.0.tar.gz.
File metadata
- Download URL: simplipt-5.3.0.tar.gz
- Upload date:
- Size: 67.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.15
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
16a7e30f229941a070ba00e2ff81192edb34f4fd0eb3dd40723a7720ed043450
|
|
| MD5 |
032fa9e61e9ade9665a475b131720e1c
|
|
| BLAKE2b-256 |
3b40812c0b84c39d1787bbd3505efc42848dd787fe0d4401c1a8be7e43ea174f
|
File details
Details for the file simplipt-5.3.0-py3-none-any.whl.
File metadata
- Download URL: simplipt-5.3.0-py3-none-any.whl
- Upload date:
- Size: 63.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.15
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8d1589484d4a2fe218b9c22efdbc65747ce55161e33850fc6be12f00b0ec8656
|
|
| MD5 |
8574879e22a803893ee72d789bd9f0f4
|
|
| BLAKE2b-256 |
90feb48ca72a1b59e0a36a0f4fce788974975f510483c8afad44bfcdc7c1b011
|