Giter Site home page Giter Site logo

satheesh1997 / webpty Goto Github PK

View Code? Open in Web Editor NEW
14.0 3.0 5.0 201 KB

A helpful package that helps you access shell & shell-based applications via web application

Home Page: https://replit.com/@satheesh1997/webpty

License: MIT License

Python 57.89% HTML 12.34% CSS 2.08% JavaScript 27.32% Procfile 0.38%
xterm-js tornado websocket pty pkg python

webpty's Introduction

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.