A web-based application to access shell & shell based applications via a browser
Project description
webpty
webpty is a simple web-based application to access shells & shell based applications in the system via a browser.
Screenshots
Bash Shell
Python Shell
VIM
Installation
Use the package manager pip to install webpty.
pip install webpty
Usage
webpty
This creates a tornado server which will be serving your bash shell on http://localhost:8000/
Change Shell
webpty -c $SHELL
or
webpty --cmd=$SHELL
This $SHELL can be anything like bash, sh, python, vim, etc. which is present in the system.
Change Port
webpty -p $PORT
or
webpty --port=$PORT
This creates a tornado server which will be serving your bash shell on http://localhost:$PORT/
Change Allowed Hosts
By default, the server will accept request from all the hosts without any restriction, to make it accept only from certain hosts
webpty -ah $ALLOWED_HOSTS
or
webpty --allowed-hosts=$ALLOWED_HOSTS
This creates a tornado server which allows only requests from $ALLOWED_HOSTS.
This $ALLOWED_HOSTS should be list of strings seperated by a comma.
Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.
-
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.