🌎 LangPy

Write Python in Your Native Language

Breaking Language Barriers in Programming

LangPy is a lexical transpiler that allows you to write Python code using keywords in your native language. It removes the language barrier, making programming more accessible and intuitive for non-English speakers.

pip install langpy

πŸ“š Easier Learning

Learn programming concepts in your native language, making it more intuitive and reducing cognitive load for beginners.

⚑ Rapid Prototyping

Quickly sketch ideas and algorithms using familiar words, then transpile to standard Python when ready.

🧠 Better Understanding

Understand loops, conditionals, and data structures more clearly when they're written in your language.

πŸ”„ Seamless Migration

Easily transition to standard Python - your code transpiles to clean, readable Python that runs natively.

Example

definir calcular_promedio(numeros):
    total = 0
    para num en numeros:
        total = total + num
    retornar total / longitud(numeros)

datos = [10, 20, 30, 40]
imprimir("Promedio:", calcular_promedio(datos))

Supported Keywords by Language

πŸ‡ͺπŸ‡Έ Spanish (.pyes)
Spanish Python Category
si if Control Flow
sino else Control Flow
sino_si elif Control Flow
mientras while Loops
para for Loops
romper break Control
continuar continue Control
retornar return Functions
definir def Functions
clase class OOP
verdadero True Boolean
falso False Boolean
ninguno None Null
y and Operators
o or Operators
no not Operators
importar import Modules
desde from Modules
imprimir print Built-ins
longitud len Built-ins
rango range Built-ins
πŸ‡΅πŸ‡Ή Portuguese (.pypt)
Portuguese Python Category
se if Control Flow
senao else Control Flow
senao_se elif Control Flow
enquanto while Loops
para for Loops
quebrar break Control
continuar continue Control
retornar return Functions
definir def Functions
classe class OOP
verdadeiro True Boolean
falso False Boolean
nenhum None Null
e and Operators
ou or Operators
nao not Operators
importar import Modules
de from Modules
imprimir print Built-ins
comprimento len Built-ins
intervalo range Built-ins
πŸ‡«πŸ‡· French (.pyfr)
French Python Category
si if Control Flow
sinon else Control Flow
sinon_si elif Control Flow
tant_que while Loops
pour for Loops
rompre break Control
continuer continue Control
retourner return Functions
definir def Functions
classe class OOP
vrai True Boolean
faux False Boolean
aucun None Null
et and Operators
ou or Operators
non not Operators
importer import Modules
depuis from Modules
imprimer print Built-ins
longueur len Built-ins
intervalle range Built-ins

Get Started

Install LangPy and start coding in your language:

# Install
pip install langpy

# Create a file (ejemplo.pyes for Spanish)
definir saludar():
    imprimir("Β‘Hola Mundo!")

saludar()

# Run it
langpy ejemplo.pyes