An extremely lightweight library for Remote Procedure Calls using asyncio and MessagePack.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.
Lennart Grahl 1889bf68c7 Add signature check before and after an RPC (implementation missing) 4 years ago
aiomprpc Add signature check before and after an RPC (implementation missing) 4 years ago
examples All handlers are attribute-based now 4 years ago
tests All handlers are attribute-based now 4 years ago
LICENSE Add boilerplate files for new project 4 years ago
MANIFEST.in Add tests 4 years ago
README.md Add logbook to optional dependencies 4 years ago
setup.py Add more tests 4 years ago

README.md

aio-msgpack-rpc

An extremely lightweight library for Remote Procedure Calls using asyncio and MessagePack.

Features

  • Asynchronous
  • Simultaneous RPCs
  • Exception translation
  • Only one external dependency

Troubleshooting

  1. I’m running into exceptions that mention create_task or ensure_future functions missing:

Make sure you’re using at least Python 3.4. These exceptions are being raised if you have an old asyncio version.

On Ubuntu 14.04 LTS you can install a newer asyncio version with pip. Sadly, this alone doesn’t do the trick. You’ll have to disable the asyncio version that shipped with Python 3. One way of doing this is to revoke read and execute rights from the asyncio folder:

   $ chmod o-rx /usr/lib/python3.4/asyncio