Dapr flask extension
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
Metadata
Release files for flask-dapr 1.18.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| flask_dapr-1.18.3-py3-none-any.whl | Python 3 | none | any | Details for flask_dapr-1.18.3-py3-none-any.whl |
Release files / flask_dapr-1.18.3-py3-none-any.whl
| Download URL | flask_dapr-1.18.3-py3-none-any.whl |
|---|---|
| Size | 9.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2a0525cfa08fb2efc506801e290fe83751320803b90ad766d015e45abd2a5127
|
|
BLAKE2b-256 checksum How to use checksums |
df7aed0136b3bc3a758ec4466bdc8fd767ef004caf5513b5c1bc67898af6121a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.10.20
|
Security for flask-dapr 1.18.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.