Use the Programing Language TNLang in Python (custom made programing language by floxxy0)
Project description
TNLang
A simple programming language that runs via Python.
Which Python Versions are tested?
Python 3.14 ✅
Python 3.13 ✅
Python 3.12 ✅
Python 3.11 ✅
Python 3.10 ✅
If you want to use older Python versions, feel free to test it. It should work 3.8+ based on the functions
Installatio
pip install TNLang
Quick Start
Create a .tnlang file:
echo("Hello World!")
Then run it with Python:
import TNLang
TNLang.launch("program.tnlang")
Functions
| Function | Description |
|---|---|
echo("text") |
Print text to console |
wait(1) |
Wait X seconds |
clear() |
Clear the console |
loop.10(echo("text")) |
Repeat an action 1-100 times |
Packages
colors
importPackage colors
echo.red("Red text!")
echo.green("Green text!")
echo.blue("Blue text!")
echo.yellow("Yellow text!")
echo.cyan("Cyan text!")
echo.magenta("Magenta text!")
echo.white("White text!")
system
importPackage system
system.CreateFile(filename=test.txt, content="Hello")
system.DeleteFile(filename=test.txt)
Examples
Hello World
echo("Hello World!")
Countdown
echo("3")
wait(1)
echo("2")
wait(1)
echo("1")
wait(1)
echo("Done.")
Loop with colors
importPackage colors
loop.5(echo.red("Loop!"))
echo.green("Done!")
Project details
Release history Release notifications | RSS feed
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 tnlang-1.0.32.tar.gz.
File metadata
- Download URL: tnlang-1.0.32.tar.gz
- Upload date:
- Size: 4.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
eff6334f3455da1003d3fe2423b8dfd6c29d724042003d8da884b9d968426bc6
|
|
| MD5 |
eb78c2f5578a39534da40f8b425448b1
|
|
| BLAKE2b-256 |
fc4b83f8728004a21ccf3a41c0c056b551011d786921e4ab82199e73f058a1c2
|
File details
Details for the file tnlang-1.0.32-py3-none-any.whl.
File metadata
- Download URL: tnlang-1.0.32-py3-none-any.whl
- Upload date:
- Size: 4.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0403744add6f58f77a53944d3a5b8d995159bb1730fa96450ffda669f42ad7ef
|
|
| MD5 |
cf41801c35eea77cdbcbb8492ee2366d
|
|
| BLAKE2b-256 |
40bf481f400d7f6d5df8d47f0f656f19afc5e0cd725f3d9ca9dcbd991ed966b4
|