A web-based application to access shell & shell based applications via a browser
Project description
webpty
Web based application to access shell & shell based applications via a browser.
Installation
Use pip and install webpty.
pip install webpty
Usage
webpty
Creates a tornado server which will be serving bash shell on http://localhost:8000/
Change Shell
webpty -c $SHELL
or
webpty --cmd=$SHELL
This $SHELL can be bash, sh, python, vim, wtfutil, etc. that is available in the system.
Change Port
webpty -p $PORT
or
webpty --port=$PORT
Creates a tornado server that server on the specified port http://localhost:$PORT/
Change Allowed Hosts
By default, 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
Server accepts only requests from $ALLOWED_HOSTS. This $ALLOWED_HOSTS should be list of strings seperated by a comma.
Screenshots
Bash
Python
Vim
Contributing
Pull requests are welcome. Raise a issue and start a discussion before submitting a pr.
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.
Source Distribution
Built Distribution
File details
Details for the file webpty-3.9.tar.gz
.
File metadata
- Download URL: webpty-3.9.tar.gz
- Upload date:
- Size: 6.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.4.2 CPython/3.11.2 Darwin/22.5.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 968233d01475f4e66e78cf83713117eaa7d05a4d41aa84661342c235f2415dc9 |
|
MD5 | f36e5f56854178c99a38674b184d288d |
|
BLAKE2b-256 | 7a5a2e66c1caa5ba5eeab7bc8addd92df9a8cb975526ce683522fadc582b5e61 |
File details
Details for the file webpty-3.9-py3-none-any.whl
.
File metadata
- Download URL: webpty-3.9-py3-none-any.whl
- Upload date:
- Size: 9.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.4.2 CPython/3.11.2 Darwin/22.5.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 165f4964954f7f9b44acd7b5c0e72976590ceac39437208d8c7a15e2d8244380 |
|
MD5 | 14fbd4d513f190f68be002133f991a38 |
|
BLAKE2b-256 | 472be823408475da7161d87e06347cd30c59bd88ec551ec2edabe88dd15bbed4 |