Async framework for JSON-RPC via RabbitMQ
Project description
Ribes RPC
Async framework for JSON-RPC via RabbitMQ
Key feature
- Implements JSON-RPC via RabbitMQ RPC
- Full support to asyncio
- Simple configuration
- Integrates to existing framework like FastAPI or Sanic
- Full support to Pydantic objects as parameters
Installation
pip install ribes
Getting started
Create server handler:
app = Ribes("application")
@app.register(name="namespace.method")
async def method(a, b):
...
Call method from client
app = Ribes("application")
method = app.caller("namespace.method")
result = await method(1, 2)
To Do
- Documentation and examples
Requirements
- Python >= 3.8
- RabbitMQ
License
ribes
is offered under the Apache 2 license.
Source code
The latest developer version is available in a GitHub repository: https://github.com/aiselis/ribes
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
ribes-0.1.2.tar.gz
(10.2 kB
view hashes)
Built Distribution
ribes-0.1.2-py3-none-any.whl
(13.0 kB
view hashes)