Skip to main content

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.

PyPI version

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

Online Bash Shell

Python

Online Python Shell

Vim

Online Vim

Contributing

Pull requests are welcome. Raise a issue and start a discussion before submitting a pr.

Python Powered

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

webpty-3.9.tar.gz (6.7 kB view details)

Uploaded Source

Built Distribution

webpty-3.9-py3-none-any.whl (9.0 kB view details)

Uploaded Python 3

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

Hashes for webpty-3.9.tar.gz
Algorithm Hash digest
SHA256 968233d01475f4e66e78cf83713117eaa7d05a4d41aa84661342c235f2415dc9
MD5 f36e5f56854178c99a38674b184d288d
BLAKE2b-256 7a5a2e66c1caa5ba5eeab7bc8addd92df9a8cb975526ce683522fadc582b5e61

See more details on using hashes here.

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

Hashes for webpty-3.9-py3-none-any.whl
Algorithm Hash digest
SHA256 165f4964954f7f9b44acd7b5c0e72976590ceac39437208d8c7a15e2d8244380
MD5 14fbd4d513f190f68be002133f991a38
BLAKE2b-256 472be823408475da7161d87e06347cd30c59bd88ec551ec2edabe88dd15bbed4

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