Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
Flask-Venom-1.0.2.tar.gz (3.3 kB) Copy SHA256 hash SHA256 Source None Apr 20, 2017

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page