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 details)
Built Distribution
ribes-0.1.2-py3-none-any.whl
(13.0 kB
view details)
File details
Details for the file ribes-0.1.2.tar.gz
.
File metadata
- Download URL: ribes-0.1.2.tar.gz
- Upload date:
- Size: 10.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.27.1 setuptools/59.6.0 requests-toolbelt/0.9.1 tqdm/4.55.2 CPython/3.9.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 117aa8b37de5d0461af18589c48c02d2107babf9fa5a2eab7f57d792a518d03b |
|
MD5 | 728433713c28e229cb5b4c6b47cbc2cf |
|
BLAKE2b-256 | 66aac583b4a15a58e02201674fed7fd12a8bf48f715ee34d345984560c9dff59 |
File details
Details for the file ribes-0.1.2-py3-none-any.whl
.
File metadata
- Download URL: ribes-0.1.2-py3-none-any.whl
- Upload date:
- Size: 13.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.27.1 setuptools/59.6.0 requests-toolbelt/0.9.1 tqdm/4.55.2 CPython/3.9.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4d12df21ea5e0565215a6a464666d1e0f75cf51f54c36e11930d53e74c9218fe |
|
MD5 | 1eb546645f1e8bb3dbbb3f6633288b6f |
|
BLAKE2b-256 | 4b8e087b77879c711320907fe227a318b1142e0d13e004bf3fd812ce0d4ef2e6 |