PTYSH is an abbreviation of 'Python Teletype Shell'.
It was made with reference to the 'zebra vtysh'.
Vtysh is an integrated shell for Quagga routing software.
Ptysh is not the only route shell, the shell is customizable, so you can general purpose.
You can install PTYSH through the pip.
However, you must manually install some libraries.
I'll update the library list soon.
When you run the 'ptysh_main.py', the shell begins.
You can use the commands summarized below.
You can't use the command (suchs as Ctrl-Z or Ctrl-C) to use during PTYSH.
To add a module, you will create a file with reference to the sample code in the "modules" directory.
You can create additional logic inherit the class 'ptysh_module'.
- enable
- Enter the control shell
- It is required password. (default password is ptysh)
- exit
- exit the shell.
- list
- show command list.
- st
- start-shell (default shell is bash)
- It is hidden command.
- It is required password and it is same to enable password.
- diable
- exit the enable mode
- exit
- exit the shell.
- list
- show command list.
- configure terminal
- It is control menu for other modules.
- exit
- exit the shell.
- list
- show command list.
- [Modules list]
- show modules name list
- Fix the pip install configuration problem(libraries).
- Improved stability in various environments.
- Create wiki page and fix the readme file.
If you have an idea or issue, feel free to open an issue or make pull request.