There’s this Trinket.io site which can host Python sketches w/ some limited modules.
Among those few modules there’s 1 called “processing” which features basic Processing API:
Trinket.io/docs/python
I didn’t host much on that site yet, but here’s some basic sketch which cross-runs both there online and also on Processing’s Python Mode:
My other Python cross mode sketch can be found on this post below:
However, when I was attempting to deploy a 3rd sketch on Trinket.io which relied on class PVector it didn’t work out!
Although PVector is available on Trinket’s “processing” module, it seems very buggy & incomplete.
I still need to make more PVector experiments w/ basic sketches there in order to make sure it’s indeed buggy or my 3rd sketch had other conversion issues besides PVector alone.
If it comes to that, we could simply write our own basic PVector class in Python, so it cross-works on both environments.