-
Notifications
You must be signed in to change notification settings - Fork 159
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Drop Python bindings? #66
Comments
generally, yes, reasons are: there's a tutorial on grid studies, the API is a bit more pythonic, it uses the OSC protocol and so handles multiple devices gracefully.
It doesn't need serialosc, but then again, i don't know if that's an advantage - the rest of "bindings" we have on grid studies also depend on serialosc. For extreme cases you can always use pyserial with standardised event loops, which I think I would prefer over libmonome's module. |
i'd be fine dropping it, but i'm also not aware if anyone is actually using it. as far as i know @artfwo is the foremost monome-in-python user :) |
@artfwo Do you think there would be an advantage in refresh rate for libmonome's Python bindings over pymonome? |
@simonvanderveldt when directly accessing devices through libmonome you don't hit the the UDP buffer size limits (which you will hit with serialosc), you will hit the serial i/o buffer though. in practice the framerates in both cases can go crazy high (beyond visible refreshing), for example i currently run the arc at 100 fps through serialosc/pymonome in my live setup, but if I set the framerate to 1000 it will still work - actual framerate will be probably lower due to some UDP packets skipped, but i won't be able to notice this with naked eye. |
@artfwo Thanks for the explanation, sounds like pymonome is plenty fast :) |
@simonvanderveldt please do so if you like, sorry, i have somehow busy week again. |
i'm gonna go ahead and nuke the python bindings and |
on second thought, may as well leave the Cython bindings. it does offer a lightweight means of directly controlling the serial device, handling protocol detection/rotation/etc. |
@catfact an alternative to Cython bindings is pyserial that provides a more pythonic API and is compatible with standard Python event loops (pyserial-asyncio), but the downside is of course that you have to write a grid protocol layer on top of it. |
Please don't nuke the python bindings:
|
As mentioned by @artfwo in #65
Would it be an idea to simply remove the Python bindings?
@artfwo I assume that most people would/should be using pymonome instead?
Are there any advantages to libmonome's Python bindings over pymonome?
The text was updated successfully, but these errors were encountered: