ASGI server for amqp rpc protocol
Project description
Vilha
Rpc server inspired by nameko and aims to extend
asgi protocol to allow use of asgi middlewares and Starlette
Example
import asyncio
from vilha.server import Vilha
from vilha.starlette.applications import RpcRoute, Starlette
async def test_method():
print("test_method")
return 10
st = Starlette(routes=[RpcRoute("test_method", test_method)])
async def main():
await Vilha("test_service").run(st)
loop = asyncio.get_event_loop()
loop.create_task(main())
loop.run_forever()
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
vilha-0.0.1.tar.gz
(7.1 kB
view hashes)
Built Distribution
vilha-0.0.1-py3-none-any.whl
(11.7 kB
view hashes)