Welcome to asyncio-rpc documentation!

Asyncio-rpc: Remote procedure calling framework

The Python package for the asyncio remote procedure calling

https://api.travis-ci.com/nens/asyncio-rpc.svg?branch=master Documentation Status

Overview

Features

  • Asyncio RPC client/server
  • Msgpack serialization with option to use own dataclasses (Python 3.7)
  • Redis communication layer
  • Other serialization methods and communication layers can be added

Examples

The examples can be run from this directory, for the dataclass example (using localhost as redis host):

>>> python3.7 -m examples.dataclass.server localhost
>>> python3.7 -m examples.dataclass.client localhost

Testing

>>> docker-compose run pytest --cov=asyncio_rpc --cov-report=html

Installation

Stable release

The standard asyncio-rpc distribution is pretty lightweight, installing as little dependencies as possible. Install it like this:

$ pip install asyncio-rpc

If you don’t have pip installed, this Python installation guide can guide you through the process.

From sources

The sources for asyncio-rpc can be downloaded from the Github repo.

You can either clone the public repository:

$ git clone git://github.com/nens/asyncio-rpc

Or download the tarball:

$ curl  -OL https://github.com/nens/asyncio-rpc/tarball/master

Once you have a copy of the source, you can install it with:

$ python setup.py install

Indices and tables