Melon Library provides simple tools for creating terminal-based games.
Currently, it includes 6 tools.
No more manually using =
or -
symbols!
melon.whiteline()
Clear the terminal without the os library:
melon.clear()
Quickly check if a number is odd:
melon.is_odd(5) # Output: True
melon.is_odd(2) # Output: False
A better way to run Python files:
Using subprocess:
subprocess.run(["python", "file.py"])
Using Melon Library:
melon.run("file.py")
A simple alternative to the random library:
melon.randomize(1, 3)
A colored printer(may not work on all terminals)
melon.colorize("#ee00ff", "this is a purple colored text")
Enter string values please
You cant download this library with "pip install melon" Follow these steps to install the library:
- Download as a ZIP file.
- Unzip the file to
/username123/melon
. - Open a terminal and run the following commands:
cd melon
python setup.py sdist bdist_wheel
pip install .
If want contact with me: feedback5383@gmail.com