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

Uploaded Python 3

File details

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

File metadata

  • Download URL: flask_dapr-1.18.0rc0-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.0rc0-py3-none-any.whl
Algorithm Hash digest
SHA256 c668001ec0771a74049fe67d262ec8489874a4c56c26c4a47df9c0d5b5a5c8ae
MD5 b00dbddc45c6e3fb6cc9ba03bba042fa
BLAKE2b-256 40e2e0bd2de5538ec9cacd4249ec8eb2aa593e7ab26ba2859317d9dc17cf63d4

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