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.0rc1-py3-none-any.whl (9.7 kB view details)

Uploaded Python 3

File details

Details for the file flask_dapr-1.18.0rc1-py3-none-any.whl.

File metadata

  • Download URL: flask_dapr-1.18.0rc1-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.0rc1-py3-none-any.whl
Algorithm Hash digest
SHA256 4aac20f976c03be09b6b0e139fb2968327e8bbb668a80c28da6b4221398781bf
MD5 0206463356b53110b878104b1a238a06
BLAKE2b-256 2fdffd33b86c38ff3b19e16c4f4d1caff594ada4cebce315856c45c0f8453b8c

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