Metadata-Version: 2.4
Name: TNLang
Version: 1.0.29
Summary: Use the Programing Language TNLang in Python (custom made programing language by floxxy0)
Author: floxxy0
Requires-Python: >=3.10
Description-Content-Type: text/markdown
Requires-Dist: requests
Requires-Dist: asyncio

# 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

## Installation

```bash
pip install TNLang
```

## Quick Start

Create a `.tnlang` file:

```tnlang
echo("Hello World!")
```

Then run it with Python:

```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
```tnlang
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
```tnlang
importPackage system
system.CreateFile(filename=test.txt, content="Hello")
system.DeleteFile(filename=test.txt)
```

## Examples

### Hello World
```tnlang
echo("Hello World!")
```

### Countdown
```tnlang
echo("3")
wait(1)
echo("2")
wait(1)
echo("1")
wait(1)
echo("Done.")
```

### Loop with colors
```tnlang
importPackage colors
loop.5(echo.red("Loop!"))
echo.green("Done!")
```

## License

MIT
