Skip to content

Latest commit

 

History

History

flask_dapr

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

Dapr flask extension

pypi

This flask extension is used to: - run the actor service - subscribe to PubSub events

Installation

pip install flask-dapr

PubSub Events

```python from flask import Flask, request from flask_dapr import DaprApp

app = Flask('myapp') dapr_app = DaprApp(app) @dapr_app.subscribe(pubsub='pubsub', topic='some_topic', route='/some_endpoint') def my_event_handler():

# request.data contains pubsub event pass

```

References