This library is unmaintained - a better alternative may be https://github.com/jakm/txmsgpackrpc
For the latest source code, see http://github.com/donalm/txMsgpack
txMsgpack
is a Twisted Protocol to support msgpack-rpc with a more tx
idiom than the Tornado implementation that's already available.
It uses Twisted for asynchronous network
communication.
- Msgpack
- MsgpackServerFactory
- MsgpackClientFactory
- You'll need msgpack https://pypi.python.org/pypi/msgpack-python/
- And Twisted http://twistedmatrix.com/trac/
- And one file from Zope https://pypi.python.org/pypi/zope.interface#download
Everything is in lib/python/txmsgpack/ so just make sure lib/python is in PYTHONPATH.
import txmsgpack
txmsgpack.Msgpack
txmsgpack.MsgpackError
txmsgpack.MsgpackServerFactory
txmsgpack.MsgpackClientFactory
txmsgpack.MSGTYPE\_REQUEST
txmsgpack.MSGTYPE\_RESPONSE
txmsgpack.MSGTYPE\_NOTIFICATION
See the example directory for:
- tx_client.py
- tx_server.py
- client.py