An interactive WebSocket shell
Project description
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
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
wsh-0.1.8.tar.gz
(23.3 kB
view hashes)
Built Distribution
wsh-0.1.8-py3.6.egg
(8.6 kB
view hashes)