Skip to content

Latest commit

 

History

History
39 lines (28 loc) · 732 Bytes

README.rst

File metadata and controls

39 lines (28 loc) · 732 Bytes

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