Skip to main content

Python com palavras reservadas em Português

Project description

Pitão 🐍

Pitão Logo

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.3.tar.gz (759.6 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.3-py3-none-any.whl (9.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pitao-0.2.3.tar.gz
  • Upload date:
  • Size: 759.6 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.3.tar.gz
Algorithm Hash digest
SHA256 e5b1a71e06953eb8160b71424ff76a1aa0d9fb19caff63630b77b84e525f1c5f
MD5 57478fe48206697cab9a55187685cba2
BLAKE2b-256 e50a4b5e188fcb7e8fdc208cea72981ef20a6c6d3364b0c9cab97482a2b128f6

See more details on using hashes here.

Provenance

The following attestation bundles were made for pitao-0.2.3.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.3-py3-none-any.whl.

File metadata

  • Download URL: pitao-0.2.3-py3-none-any.whl
  • Upload date:
  • Size: 9.0 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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 c0ade2cdf46de27dbd2dfc56f6b1a302b23c977a41906d3873e8831a9450bbff
MD5 da76d974d27f9ac735a64e380bb162fd
BLAKE2b-256 458965ecb5ccd83331535cb4d56e3d1c065917d03e232fa2b282c37b30bbcca2

See more details on using hashes here.

Provenance

The following attestation bundles were made for pitao-0.2.3-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