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

Galeria

Sintaxe Básica Controle de Fluxo Classes e Funções

Exemplo de Código

Pitão suporta arquivos com extensão .pt ou .pit:

# ola_mundo.pt (ou ola_mundo.pit)
def ola_mundo():
    imprimir("Olá, Mundo!")

se __nome__ == "__principal__":
    ola_mundo()

Execute com:

pitao ola_mundo.pt
# ou
pitao ola_mundo.pit

Palavras Reservadas

Português Python Português Python
Falso False importe import
Nulo None em in
Verdadeiro True eh is
e and nao not
ou or passe pass
se if retorne return
senaose elif tente try
senao else exceto except
para for finalmente finally
enquanto while levante raise
quebre break com with
continue continue produza yield
def def assincrono async
classe class aguarde await
del del afirme 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.2.2.tar.gz (405.2 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.2.2-py3-none-any.whl (8.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pitao-0.2.2.tar.gz
  • Upload date:
  • Size: 405.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for pitao-0.2.2.tar.gz
Algorithm Hash digest
SHA256 d00537cf144f8e372ffcd0b751c782f2f9ea6853337cc9013e16bae3a024c7dc
MD5 a352637ba3223f3cd32ed2aa207f3208
BLAKE2b-256 126f35789fdd5ca97a6d4cafeb96ba8c9aef501bfd27c80462bfda4bfc456d88

See more details on using hashes here.

Provenance

The following attestation bundles were made for pitao-0.2.2.tar.gz:

Publisher: publish.yml on ivancrneto/pitao

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

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

File metadata

  • Download URL: pitao-0.2.2-py3-none-any.whl
  • Upload date:
  • Size: 8.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for pitao-0.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 c8af55c8ed84606c534cefd5b318b052d3079eafd5a78b92a950c6318efda531
MD5 51335b6884cb3371b3c2b8d36f7f2e3c
BLAKE2b-256 b096f0f432f6f79bb9228e6064b87538ad2c86a3b8c5a813222512e8384654c0

See more details on using hashes here.

Provenance

The following attestation bundles were made for pitao-0.2.2-py3-none-any.whl:

Publisher: publish.yml on ivancrneto/pitao

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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