Flask extension for the Venom RPC framework
Project description
A Flask extension for Venom RPC
This extension currently supports synchronous request/reply only.
from flask import Flask from flask_venom import Venom from venom.rpc import Service from venom.rpc import http app = Flask(__name__) class HelloService(Service): @http('GET') def say_hello(self) -> str: return 'Hello!' venom.add(HelloService) venom = Venom(app) if __name__ == "__main__": app.run()
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
Flask-Venom-1.0.2.tar.gz
(3.3 kB
view hashes)