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
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
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 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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d00537cf144f8e372ffcd0b751c782f2f9ea6853337cc9013e16bae3a024c7dc
|
|
| MD5 |
a352637ba3223f3cd32ed2aa207f3208
|
|
| BLAKE2b-256 |
126f35789fdd5ca97a6d4cafeb96ba8c9aef501bfd27c80462bfda4bfc456d88
|
Provenance
The following attestation bundles were made for pitao-0.2.2.tar.gz:
Publisher:
publish.yml on ivancrneto/pitao
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pitao-0.2.2.tar.gz -
Subject digest:
d00537cf144f8e372ffcd0b751c782f2f9ea6853337cc9013e16bae3a024c7dc - Sigstore transparency entry: 1102374457
- Sigstore integration time:
-
Permalink:
ivancrneto/pitao@9162665ab90594e62233a6e77227727984fbfa53 -
Branch / Tag:
refs/tags/0.2.2 - Owner: https://github.com/ivancrneto
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@9162665ab90594e62233a6e77227727984fbfa53 -
Trigger Event:
release
-
Statement type:
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c8af55c8ed84606c534cefd5b318b052d3079eafd5a78b92a950c6318efda531
|
|
| MD5 |
51335b6884cb3371b3c2b8d36f7f2e3c
|
|
| BLAKE2b-256 |
b096f0f432f6f79bb9228e6064b87538ad2c86a3b8c5a813222512e8384654c0
|
Provenance
The following attestation bundles were made for pitao-0.2.2-py3-none-any.whl:
Publisher:
publish.yml on ivancrneto/pitao
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pitao-0.2.2-py3-none-any.whl -
Subject digest:
c8af55c8ed84606c534cefd5b318b052d3079eafd5a78b92a950c6318efda531 - Sigstore transparency entry: 1102374488
- Sigstore integration time:
-
Permalink:
ivancrneto/pitao@9162665ab90594e62233a6e77227727984fbfa53 -
Branch / Tag:
refs/tags/0.2.2 - Owner: https://github.com/ivancrneto
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@9162665ab90594e62233a6e77227727984fbfa53 -
Trigger Event:
release
-
Statement type: