Skip to main content

Python com palavras reservadas em Português

Project description

Pitão 🐍

Python com palavras reservadas em Português!

Pitão é um preprocessador Python que permite escrever código usando palavras reservadas em Português. Inspirado no Bython.

Instalação

pip install pitao

Ou para instalar localmente com uv:

git clone https://github.com/ivancrneto/pitao.git
cd pitao
uv sync

Exemplo de Código

# ola_mundo.pt
definir ola_mundo():
    imprimir("Olá, Mundo!")

se __nome__ == "__principal__":
    ola_mundo()

Execute com:

pitao ola_mundo.pt

Palavras Reservadas

Português Python Português Python
Falso False importar import
Nulo None em in
Verdadeiro True eh is
e and nao not
ou or passar pass
se if retornar return
senaose elif tentar try
senao else exceto except
para for finalmente finally
enquanto while levantar raise
quebrar break com with
continuar continue produzir yield
definir def assincrono async
classe class aguardar await
deletar del afirmar assert
de from como as
global global naolocal nonlocal

Comandos

pitao - Executar arquivos Pitão

pitao arquivo.pt [args...]     # Executa o arquivo
pitao -c arquivo.pt            # Compila para .py sem executar
pitao -k arquivo.pt            # Executa e mantém o .py gerado
pitao -v arquivo.pt            # Modo verbose

pt2py - Traduzir Pitão para Python

pt2py arquivo.pt               # Cria arquivo.py
pt2py -o saida.py arquivo.pt   # Especifica nome de saída

py2pt - Traduzir Python para Pitão

py2pt arquivo.py               # Cria arquivo.pt
py2pt -o saida.pt arquivo.py   # Especifica nome de saída

Licença

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pitao-0.1.0.tar.gz (8.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pitao-0.1.0-py3-none-any.whl (8.7 kB view details)

Uploaded Python 3

File details

Details for the file pitao-0.1.0.tar.gz.

File metadata

  • Download URL: pitao-0.1.0.tar.gz
  • Upload date:
  • Size: 8.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.8.15

File hashes

Hashes for pitao-0.1.0.tar.gz
Algorithm Hash digest
SHA256 f87e87691c761272dfe6bb7e6f3dfe35be80ca464f97f9fafba37f77080b23d6
MD5 0c4e3298eec05b77e0f77b994e8d0f71
BLAKE2b-256 c9d4350e0fa460a9d874a4003027ea701c4f0c8d59d155b1e339e964aee57587

See more details on using hashes here.

File details

Details for the file pitao-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: pitao-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 8.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.8.15

File hashes

Hashes for pitao-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d0988f0b4b21c6c63010a5678170101cf305bb6b66817ba7407d1710fca25b58
MD5 296cd61da171fb2e0557133b44c9ee7f
BLAKE2b-256 6bdbefd55661177608969a0f53a6109428a8917faefdfb0abd0ef351201139e0

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page