Skip to main content

Python Teletype Shell

Project description

## PTYSH
PTYSH is an abbreviation of 'Python Teletype Shell'.<br>
It was made with reference to the 'zebra vtysh'.<br>
Vtysh is an integrated shell for Quagga routing software.<br>
<br>
Ptysh is not the only route shell, the shell is customizable, so you can normally use.<br>
It made it possible to add commands to the module for availability.<br>


## Note
You can install ptysh through the pip.<br>
However, you must manually install some libraries.<br>
I'll update the library list soon.<br>


## Usage
### Start shell
When you run the 'ptysh_main.py', the shell begins.<br>
You can use the commands summarized below.<br>
During PTYSH to use commands such as ctrl-c and ctrl-z does not work.<br>


### Add custom module
To add a module, you will create a file with reference to the sample code in the "modules" directory.<br>
You can create additional logic inherit the class ptysh_module.<br>


## Command
### disable mode
1. enable
* Enter the control shell
* It required password. (default password is ptysh)
2. exit
* exit the shell.
3. list
* show command list.
4. st
* start-shell (default shell is bash)
* It is hidden command.
* It required password and it is same to enable password.


### enable mode
1. diable
* exit the enable mode
2. exit
* exit the shell.
3. list
* show command list.
4. configure terminal
* It is control menu for other modules.

### configure terminal mode
1. exit
* exit the shell.
2. list
* show command list.


## Idea or Issue
If you have an idea or issue, feel free to open an issue or make pull request.

Project details


Release history Release notifications

This version
History Node

0.1.0

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
ptysh-0.1.0.linux-x86_64.tar.gz (13.1 kB) Copy SHA256 hash SHA256 Dumb Binary any Aug 4, 2016
ptysh-0.1.0.tar.gz (6.3 kB) Copy SHA256 hash SHA256 Source None Aug 4, 2016

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page