quickstarts/bindings/python/sdk
Elena Kolevska 9aef603c8d
Conversation quickstarts updates - Python and Go (#1169)
* Adds python conversation api sdk quickstart. Updates python sdk version. Updates parameter name in conversation quickstart in Go.

Signed-off-by: Elena Kolevska <elena@kolevska.com>

* Fixes .net http quickstart for Conversation API

Signed-off-by: Elena Kolevska <elena@kolevska.com>

* rename

Signed-off-by: Elena Kolevska <elena@kolevska.com>

* Fixes js conversation quickstart

Signed-off-by: Elena Kolevska <elena@kolevska.com>

* Older dependency

Signed-off-by: Elena Kolevska <elena@kolevska.com>

* Sets up a clean virtual environment for every quickstart

Signed-off-by: Elena Kolevska <elena@kolevska.com>

* Apply suggestions from code review

Co-authored-by: Mark Fussell <markfussell@gmail.com>
Signed-off-by: Elena Kolevska <elena-kolevska@users.noreply.github.com>

* Adds uvicorn in requirements.txt

Signed-off-by: Elena Kolevska <elena@kolevska.com>

* Runs the install step

Signed-off-by: Elena Kolevska <elena@kolevska.com>

---------

Signed-off-by: Elena Kolevska <elena@kolevska.com>
Signed-off-by: Elena Kolevska <elena-kolevska@users.noreply.github.com>
Co-authored-by: Mark Fussell <markfussell@gmail.com>
2025-02-27 08:29:23 -08:00
..
batch Conversation quickstarts updates - Python and Go (#1169) 2025-02-27 08:29:23 -08:00
README.md s/docker-compose/docker compose 2024-08-08 13:20:01 -07:00
makefile Binding quickstart - Cron input PostgreSQL output (#669) 2022-06-22 18:06:18 -07:00

README.md

Dapr Bindings (Dapr SDK)

In this quickstart, you'll create a microservice to demonstrate Dapr's bindings API to work with external systems as inputs and outputs. The service listens to input binding events from a system CRON and then outputs the contents of local data to a PostreSql output binding.

Visit this link for more information about Dapr and Bindings.

Note: This example leverages the Dapr SDK. If you are looking for the example using HTTP REST only click here.

This quickstart includes one service:

  • Python service batch

Run and initialize PostgreSQL container

  1. Open a new terminal, change directories to ../../db, and run the container with Docker Compose:
cd ../../db
docker compose up

Run Python service with Dapr

  1. Open a new terminal window, change directories to ./batch in the quickstart directory and run:
cd ./batch
pip3 install -r requirements.txt
  1. Run the Python service app with Dapr:
dapr run --app-id batch-sdk --app-port 50051 --resources-path ../../../components -- python3 app.py