Skip to main content

An interactive WebSocket shell

Project description

pypi license

WSH is a command line interface that launches a shell to send and recieve messages from a WebSocket server. It was designed to be simplistic and allow developers to easily connect/send/receive data over a WS with very little effort.

Quickstart

Install via PyPi:

pip install wsh

Then simply call the command line tool with your WebSocket server host, you should also specify the WebSocket protocol (“ws” or “wss”)

wsh ws://127.0.0.1:7001/ws/connection

For more complex scenarios you can launch the shell manually via a simple python script.

from wsh import WSH


def main():
    # Custom Logic
    # ............
    wsh = WSH(host='ws://127.0.0.1:7001/ws/connection')
    wsh.run()


if __name__ == '__main__':
    main()

0.1.0 2018-10-17

  • Pre-alpha release

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

wsh-0.2.1.tar.gz (23.4 kB view hashes)

Uploaded Source

Built Distribution

wsh-0.2.1-py3.6.egg (8.4 kB view hashes)

Uploaded Source

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