Skip to content
This repository has been archived by the owner on May 6, 2024. It is now read-only.

Latest commit

 

History

History
45 lines (26 loc) · 850 Bytes

intro.rst

File metadata and controls

45 lines (26 loc) · 850 Bytes

Introduction

This is the documentation for jarpc, a library for asynchronous RPC via Redis pubsub channels.

It supports 3 runmodes: Client, Server and Slient.

Prerequisites

jarpc requires a Python version of 3.6 or higher.

Installing

Installation from PyPi:

pip install jarpc

You'll also need a working local installation of Redis.

Quick example

Setup a quick Redis instance via Docker:

docker run --rm --name redis -d -p 6379:6379 redis:5.0.6-alpine

Client example

.. literalinclude:: ../examples/basic/client.py
   :language: python

Server example

.. literalinclude:: ../examples/basic/server.py
    :language: python

Slient example

.. literalinclude:: ../examples/basic/slient.py
    :language: python