semvec/pypi-packages huggingface dataset:
turtle-shell 1.0.3
An interactive shell library
License: MIT

#  Turtle
An interactive shell application  [Learn More](https://kavunnuggihalli.com/turtle/)
Build interactive, menu driven, shell programs using Python 3+

##  Getting started
The easiest way to get started with Turtle is to install the library from pip. Turtle is hosted on PyPi as `turtle-shell` but is imported as `import turtle`.  

 1. `Create a file: shell.py`
 2. `pip install turtle-shell`
 3. `import turtle`

Here is sample code for a shell program with one menu to check disk space on the machine.

```
def disk_free():
    os.system("df -h")

turtle = Turtle("Kavun Nuggihalli", "Kavun", "A personal shell")
metrics = turtle.menu("metrics","Metrics")
disk = turtle.item("disk", "Disk check")
disk.add_procedure(disk_free)
metrics.add_item(disk)
turtle.menus['main'].add_item(metrics)
turtle.shell()

# This starts the turtle application
turtle.shell()
```
Now run `python3 shell.py`  you should see something like this:

<img src="https://kavunnuggihalli.com/wp-content/uploads/2022/03/disk-shell.png" alt="" width="100%" height="100%" style="float: left; padding-right: 20px;" />