This repository has been archived on 2026-05-19. You can view files and clone it. You cannot open issues or pull requests or push a commit.
2026-05-18 15:56:17 +00:00
2026-05-18 15:54:48 +00:00
2026-05-15 18:53:00 -05:00
2026-05-15 18:41:13 -05:00
2026-05-18 15:56:17 +00:00

ForeignThon

Write Python in any human language.

ForeignThon transpiles .es.py, .ta.py (and more) into standard Python. Keywords, builtins, exceptions — all translated. Errors come back in your language too.

# hola.es.py
def saludar(nombre):
    retornar f"Hola, {nombre}!"

para i en dist(3):
    imprimir(saludar(f"mundo {i}"))
fpy run hola.es.py
# Hola, mundo 0!
# Hola, mundo 1!
# Hola, mundo 2!

Install

pip install foreignthon
pip install foreignthon-es   # Spanish
pip install foreignthon-ta   # Tamil

Docs

License

GPL

Description
A naive solution for foreign language coders to code with their native language into python code.
Readme GPL-3.0 125 KiB
Languages
Python 100%