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 details)
File details
Details for the file Flask-Venom-1.0.2.tar.gz.
File metadata
- Download URL: Flask-Venom-1.0.2.tar.gz
- Upload date:
- Size: 3.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
515fb1582fbe5597649ef6f08787073fb9bcbcf0ac7c6248f889b7af56948f0d
|
|
| MD5 |
72c2441593ac157831db9fc9ac3f3663
|
|
| BLAKE2b-256 |
ef439dd6d9fc7d4728ee50356ead296e2ea577a7cdb54644f967e404d717e192
|