Python library providing an implementation of the WebSocket protocol defined in RFC 6455. Read the documentation for more information. You can also join the ws4py mailing-list to discuss the library.
Create a systemd service (or run the Docker command from the command line) somewhere, setting the MINECRAFT_SERVER_HOST and optionally MINECRAFT_SERVER_PORT addresses ...