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


Download files

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

Source Distribution

ptysh-0.1.0.tar.gz (6.3 kB view details)

Uploaded Source

Built Distribution

ptysh-0.1.0.linux-x86_64.tar.gz (13.1 kB view details)

Uploaded Source

File details

Details for the file ptysh-0.1.0.tar.gz.

File metadata

  • Download URL: ptysh-0.1.0.tar.gz
  • Upload date:
  • Size: 6.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for ptysh-0.1.0.tar.gz
Algorithm Hash digest
SHA256 2ebcb8166ccde3cbfed64bbe8e60c6ab815036dc57e031c8bfdfeb15ab63db0b
MD5 9efeb638be889efbf19550fe560936fc
BLAKE2b-256 0f7aa6eebd91eb8f35c024b8ff200eeb751e3c1e93b7f2888711c273ffd58459

See more details on using hashes here.

File details

Details for the file ptysh-0.1.0.linux-x86_64.tar.gz.

File metadata

File hashes

Hashes for ptysh-0.1.0.linux-x86_64.tar.gz
Algorithm Hash digest
SHA256 4cbeb5a01a9b75ca9a37076ff4da04316a37935e7a10173c5ead97ad5d28aa4c
MD5 172c62136d77d61c56cbef0f2dd99d95
BLAKE2b-256 d37c0434778f1d1b2c69c4dbc0939377596146fc3450851169611249c8d734a6

See more details on using hashes here.

Supported by

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