I threw that code together when I was first learning ZeroMQ and wanted to play with the idea of making it a simple RPC mechanism. Turned out some guys at RedHat were using it and asked for some more thing, so I expanded it a bit more.
I really like ZeroMQ. Its a lot of lower level elements that allow you to put together the patterns you need. While I didn't use pyRpc very much, I did use ZeroMQ for other things like pubsub. I think its really strong for a number of use cases, with RPC just being one of them. Its good for when you want to seamlessly scale work from interthread to interprocess to local network to even remote network situations, since all that changes is the socket types and devices you use to connect them.
Its just a really flexible library for communication, messaging, and concurrent processing.
--
You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email to python_inside_m...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/61159046-f043-4a56-b2a5-a67ef77fc178%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/CAPGFgA0Q3jCB6Btv45AM90BKGeMszKfzTMwyftTPRFhfPxF5Lg%40mail.gmail.com.
I'm not sure what inspired me specifically to do that. It just seemed appropriate to make it easy to export functions as services and then make them discoverable when queried. I figured it was useful to be able to have first class registration of what is available remotely. I've actually never used RPyc yet.
Currently for my RPC solutions I am working with Apache Thrift. It allows you to generate bindings for all the modern languages so you can have a server in one Lang and 5 clients each in different langs. It handled all of the network aspects and wire formats.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/CAFRtmOAxswLjnC%2BebKkx_F%2BNe4G-D6iZxdqE3E6Xb5YDkH-M6Q%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/CAPGFgA3jevShCpFOd740q0KXvAOY50x3H3cq60uYS6-94fppPw%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/CAFRtmOAfynu1PYkpkoecBGcOSJSNkWGFH9tdeNjqkcakHGj_mQ%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/CAPGFgA1JhAE6Kxt6LG-SvqpMCXr9ETtz%2BetaF2N2NsJ_iHzAsg%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/CAFRtmOCgttU3zAzcRYio4kUz3EDcvNJvmL23hgqVDAheuy0VsQ%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/CAPGFgA3LHL4Ak3GVmAa3aSYcsVUi57mbTRRpXp9wGiZzBAWR_g%40mail.gmail.com.
Protocol buffer is similar for part of what Thrift does but only covers the serialization spec. It doesn't give you the RPC mechanisms. You still have to handle that layer yourself. Its just a versioning serialization/wire protocol.
But yes you would have to say what type a service will return to allow you to fulfil the ability to generate code for static typed languages. Also it is needed to guarantee the versionable wire spec since it has to be able to encode the right sizes for types. But then you get all the free type validation. Thrift doesn't even put it on the wire if you construct things wrong.
RPyc makes perfect sense if you are dealing with 100% python systems as it probably strives to remain pythonically flexible. Thrift has to work in a way that the IDL can generate code for different languages. I suggest you try it out and see what you think.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/CAFRtmOA8fvgotx3L-_btMQXThpdznVNQQWuBO785-1vu3MmH7g%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/CAPGFgA2yP8QvDphkp7oXzx2VVSWgEDuLJ-9ze%3D4MRsDrYxWA%2BQ%40mail.gmail.com.
Report back with your experience with Thrift, since you are able to make comparisons to RPyc. Would be interested to know your impression.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/CAFRtmOAsgJ-S1Znq0SiHCBS34M_JaRYa93vapBhR931pYeEMWg%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/CAPGFgA1a1iJxjxZtD%3DYr%3DHZbXr2TzbOU3W4ZYWMeDzfCH6wn6Q%40mail.gmail.com.
Oh Windows, why are you so complicated? :-)
Can you explain this part?
" PyZMQ come with a Python extension for Python 2.7, but is compiled with MSC v.1500 which means Maya's Python won't be able to work with it"
Does this mean you were using a binary distribution of PyZMQ specifically for Python2.7? The actual source should be a cython-based extension that supports >= 2.6
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/CAFRtmOBQwe845iZDmsA2D9UK9UzN-xubC%3DTiayKXowfRVjnT6w%40mail.gmail.com.
Oh Windows, why are you so complicated? :-)
Can you explain this part?
" PyZMQ come with a Python extension for Python 2.7, but is compiled with MSC v.1500 which means Maya's Python won't be able to work with it"
Does this mean you were using a binary distribution of PyZMQ specifically for Python2.7? The actual source should be a cython-based extension that supports >= 2.6
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/CAPGFgA1RBv-i_Otx-81UF0Q%3DE_2ozWpMkVqjt_AVtPbasiqbVw%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/CAFRtmODq%2BA8SnCzXL9CLt9u%3D%2BF1deonUzDLuQQR4kn0JiPT24g%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/CAPGFgA1P9kOwExEfTDRF_%2Bk%2Bgn1S-0qDavWEJy0w62-SrDp3hA%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/CAFRtmOAWUVD7Vgx2uMr1bbUFLGy%2BhdJkDcXnyATC1N4mY%2B%3Dr-Q%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/CAPGFgA0z-%3DHm0mk%2Bv6setPdp_Akuwoh93eBNjrK9z434-3Kwfg%40mail.gmail.com.
To unsubscribe from this group and stop receiving emails from it, send an email to python_inside_maya+unsub...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/61159046-f043-4a56-b2a5-a67ef77fc178%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email to python_inside_maya+unsub...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/CAPGFgA0Q3jCB6Btv45AM90BKGeMszKfzTMwyftTPRFhfPxF5Lg%40mail.gmail.com.
--
You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email to python_inside_maya+unsub...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/CAFRtmOAxswLjnC%2BebKkx_F%2BNe4G-D6iZxdqE3E6Xb5YDkH-M6Q%40mail.gmail.com.
--
You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email to python_inside_maya+unsub...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/CAPGFgA3jevShCpFOd740q0KXvAOY50x3H3cq60uYS6-94fppPw%40mail.gmail.com.
--
You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email to python_inside_maya+unsub...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/CAFRtmOAfynu1PYkpkoecBGcOSJSNkWGFH9tdeNjqkcakHGj_mQ%40mail.gmail.com.
--
You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email to python_inside_maya+unsub...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/CAPGFgA1JhAE6Kxt6LG-SvqpMCXr9ETtz%2BetaF2N2NsJ_iHzAsg%40mail.gmail.com.
--
You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email to python_inside_maya+unsub...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/CAFRtmOCgttU3zAzcRYio4kUz3EDcvNJvmL23hgqVDAheuy0VsQ%40mail.gmail.com.
--
You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email to python_inside_maya+unsub...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/CAPGFgA3LHL4Ak3GVmAa3aSYcsVUi57mbTRRpXp9wGiZzBAWR_g%40mail.gmail.com.
--
You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email to python_inside_maya+unsub...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/CAFRtmOA8fvgotx3L-_btMQXThpdznVNQQWuBO785-1vu3MmH7g%40mail.gmail.com.
--
You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email to python_inside_maya+unsub...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/CAPGFgA2yP8QvDphkp7oXzx2VVSWgEDuLJ-9ze%3D4MRsDrYxWA%2BQ%40mail.gmail.com.
--
You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email to python_inside_maya+unsub...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/CAFRtmOAsgJ-S1Znq0SiHCBS34M_JaRYa93vapBhR931pYeEMWg%40mail.gmail.com.
--
You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email to python_inside_maya+unsub...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/CAPGFgA1a1iJxjxZtD%3DYr%3DHZbXr2TzbOU3W4ZYWMeDzfCH6wn6Q%40mail.gmail.com.
--
You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email to python_inside_maya+unsub...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/CAFRtmOBQwe845iZDmsA2D9UK9UzN-xubC%3DTiayKXowfRVjnT6w%40mail.gmail.com.
--
You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email to python_inside_maya+unsub...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/CAPGFgA1RBv-i_Otx-81UF0Q%3DE_2ozWpMkVqjt_AVtPbasiqbVw%40mail.gmail.com.
--
You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email to python_inside_maya+unsub...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/CAFRtmODq%2BA8SnCzXL9CLt9u%3D%2BF1deonUzDLuQQR4kn0JiPT24g%40mail.gmail.com.
--
You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email to python_inside_maya+unsub...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/CAPGFgA1P9kOwExEfTDRF_%2Bk%2Bgn1S-0qDavWEJy0w62-SrDp3hA%40mail.gmail.com.
--
You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email to python_inside_maya+unsub...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/CAFRtmOAWUVD7Vgx2uMr1bbUFLGy%2BhdJkDcXnyATC1N4mY%2B%3Dr-Q%40mail.gmail.com.
--
You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email to python_inside_maya+unsub...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/CAPGFgA0z-%3DHm0mk%2Bv6setPdp_Akuwoh93eBNjrK9z434-3Kwfg%40mail.gmail.com.
...
Hey Asi, what problems were you running into?
Here's what I did to get it up and running:
http://abstractfactory.io/blog/building-pyzmq-for-python-2-7-msc-v-1600/
--
You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email to python_inside_m...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/815da1d6-9ef8-47df-81b4-8f9386bfa60f%40googlegroups.com.