Dapr Flask Extension for the Dapr Python SDK.
Project description
This flask extension is used to: - run the actor service - subscribe to PubSub events
Installation
pip install flask-dapr
PubSub Events
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
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 Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file flask_dapr-1.18.0-py3-none-any.whl.
File metadata
- Download URL: flask_dapr-1.18.0-py3-none-any.whl
- Upload date:
- Size: 9.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.20
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f4d80a96943c879bb83aba1315fe31f445370e3e5fcced7816fac24c8ff3826e
|
|
| MD5 |
72fe69d64e6996e646c081a7cf94cdc0
|
|
| BLAKE2b-256 |
c3440d8837dc4fdd0908f6f8a50323b25f0daa27d1baa2af72ab933ccbea3053
|