Python + PixiJS
Can the same browser experiment be written in Python?
A short experiment that uses Transcrypt to turn Python into JavaScript for a PixiJS browser scene.
Keep the renderer, change the authoring language
Python + PixiJS asks a narrow question: can a browser graphics experiment be authored in Python while still using PixiJS? Transcrypt supplies the bridge by translating the Python source into JavaScript that the browser can run.
The translation step is explicit
The repository contains the Python experiment, a Transcrypt compilation command and a static browser entry point. After compilation, a local HTTP server delivers the resulting page. PixiJS remains the graphics runtime; the source language is the variable being explored.
What it does and does not demonstrate
The experiment tests the ergonomics of a small transpiled program rather than embedding a full Python interpreter. It does not imply support for arbitrary CPython packages, native extensions or unchanged Python applications. Its scope is a specific route from a constrained Python program to a browser scene.
Implementation at a glance
- Uses a Python-to-JavaScript compilation step.
- Serves the resulting output as a static browser application.
- Explores authoring-language choice while retaining a JavaScript graphics runtime.
Project status
Python-to-JavaScript transpilation, rather than native CPython execution in the browser.