Skip to main content
Join the official 2019 Python Developers SurveyStart the survey!

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.

Files for Flask-Venom, version 1.0.2
Filename, size File type Python version Upload date Hashes
Filename, size Flask-Venom-1.0.2.tar.gz (3.3 kB) File type Source Python version None Upload date Hashes View hashes

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