The Pyjsdl-ts library permits scripts coded in Python and Pygame to compile to JavaScript using the Transcrypt Python-to-JavaScript compiler. It is coded in Python that wraps JavaScript API for online deployment of web browser applications. The library is a port of Pyjsdl for Transcrypt that compiles Python 3 code to efficient JavaScript. The library is available on the Pyjsdl-ts project page and used to compile the following demo.
Pyjsdl Demo