Skip to main content

A pip package to use the programing language TNLang from 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

Installation

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!")

License

MIT

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

tnlang-1.0.28.tar.gz (4.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

tnlang-1.0.28-py3-none-any.whl (4.5 kB view details)

Uploaded Python 3

File details

Details for the file tnlang-1.0.28.tar.gz.

File metadata

  • Download URL: tnlang-1.0.28.tar.gz
  • Upload date:
  • Size: 4.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.2

File hashes

Hashes for tnlang-1.0.28.tar.gz
Algorithm Hash digest
SHA256 57067a1e9a4e88a667728fefe9ffbda67ea07ae5ef1bc039c12aefb38d5cc25e
MD5 1db45a33a64fb53065c9c137403db9ce
BLAKE2b-256 cfa740db26d5e7af8c0397a0f880f775820ffbc15a4ba3c20c75485119735598

See more details on using hashes here.

File details

Details for the file tnlang-1.0.28-py3-none-any.whl.

File metadata

  • Download URL: tnlang-1.0.28-py3-none-any.whl
  • Upload date:
  • Size: 4.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.2

File hashes

Hashes for tnlang-1.0.28-py3-none-any.whl
Algorithm Hash digest
SHA256 bd432906f17383f74f0b13242a37758b12c9ea4b9e2d0785ca8f9d566ae32b3f
MD5 7abf083e6a5a0e4320bf8092cdfe1484
BLAKE2b-256 7cc44d60ec34d8fd158818f64af3861f2f7347a0f02fb3effa49d762731d7159

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page