JyP5 - a Jython interface to Processing
in
Processing with Other Languages
•
3 months ago
I've made a Jython library named
JyP5, that provides easy interface to Processing, along with some additional features like on-the-run code reloading.
In other words, it allows writing of Processing sketches in Jython - implementation of Python in Java.
Unike Jonathan Feinberg's
processing.py, which uses modified Jython interpreter,
JyP5 is just a Python library. This makes the project simpler, smaller, and more hackable. For exammple, the following things become possible:
-
changing Processing or Jython version just by referencing different library/launching another interpreter
-
IDE support - autocomplete, debug (via remote debugger), etc.
-
code reloading
-
REPL
Apart from providing interface to Processing, JyP5 has several additional features:
-
code reloading using Python Module Reloader
-
context managers for more pythonic way of dealing with renderer state (e.g. transforms)
More detailed info, installation and usage instructions, examples, and the library itself are available at
JyP5 repo on bitbucket.