Skip to main content

Dapr Flask Extension for the Dapr Python SDK.

Project description

pypi

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

If you're not sure about the file name format, learn more about wheel file names.

flask_dapr-1.18.0-py3-none-any.whl (9.7 kB view details)

Uploaded Python 3

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

Hashes for flask_dapr-1.18.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f4d80a96943c879bb83aba1315fe31f445370e3e5fcced7816fac24c8ff3826e
MD5 72fe69d64e6996e646c081a7cf94cdc0
BLAKE2b-256 c3440d8837dc4fdd0908f6f8a50323b25f0daa27d1baa2af72ab933ccbea3053

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page