{"id":17449556,"url":"https://github.com/jplane/azure-functions-python-kafka","last_synced_at":"2026-06-15T21:32:09.985Z","repository":{"id":95098216,"uuid":"592379285","full_name":"jplane/azure-functions-python-kafka","owner":"jplane","description":null,"archived":false,"fork":false,"pushed_at":"2023-01-28T13:56:18.000Z","size":369,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-28T04:28:28.813Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jplane.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-01-23T15:56:00.000Z","updated_at":"2023-01-23T15:59:45.000Z","dependencies_parsed_at":"2023-05-26T16:00:41.632Z","dependency_job_id":null,"html_url":"https://github.com/jplane/azure-functions-python-kafka","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/jplane/azure-functions-python-kafka","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jplane%2Fazure-functions-python-kafka","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jplane%2Fazure-functions-python-kafka/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jplane%2Fazure-functions-python-kafka/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jplane%2Fazure-functions-python-kafka/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jplane","download_url":"https://codeload.github.com/jplane/azure-functions-python-kafka/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jplane%2Fazure-functions-python-kafka/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34381759,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-15T02:00:07.085Z","response_time":63,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-17T21:42:06.015Z","updated_at":"2026-06-15T21:32:09.968Z","avatar_url":"https://github.com/jplane.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Azure Function (Python) with Apache Kafka trigger and output binding\n\nThis repo creates a Visual Studio Code devcontainer setup for [Python-based Azure Functions](https://learn.microsoft.com/en-us/azure/azure-functions/functions-reference-python?tabs=asgi%2Capplication-level\u0026pivots=python-mode-decorators) and [Apache Kafka](https://kafka.apache.org/), all hosted locally in Docker containers. The functions demonstrate use of Kafka [triggers](https://learn.microsoft.com/en-us/azure/azure-functions/functions-bindings-kafka-trigger?tabs=in-process%2Cconfluent\u0026pivots=programming-language-python) and [output bindings](https://learn.microsoft.com/en-us/azure/azure-functions/functions-bindings-kafka-output?tabs=in-process%2Cconfluent\u0026pivots=programming-language-python).\n\n## Requirements\n\n- [Docker Desktop](https://www.docker.com/products/docker-desktop/)\n- [Visual Studio Code](https://code.visualstudio.com/download) for [devcontainer](https://code.visualstudio.com/docs/devcontainers/containers) support\n- [Postman](https://www.postman.com/downloads/) or similar REST API client\n\n## Instructions\n\n- clone this repo\n- open the repo in VSCode, when prompted re-open in a devcontainer (this will take a few minutes)\n  - as the devcontainer initializes you may receive an error for the Python VSCode extension... if so, manually switch to the pre-release extension version to resolve the issue (will require restarting VSCode)\n- after the devcontainer is initialized, browse to http://localhost:9021 and select the 'controlcenter.cluster'\n  ![home](./media/home.png)\n- click 'topics'\n  ![topics](./media/topics.png)\n- click the 'Add topic' button\n  ![add topic](./media/add_topic.png)\n- enter 'custom-events' as the topic name and then click 'Create with defaults'\n  ![create topic](./media/create_topic.png)\n- in VSCode, hit F5 to start the function host and debug your app\n- to (re)initialize the storage emulator with batch documents, issue the following REST API request (empty payload):\n  ```bash\n  [PUT] http://localhost:7071/api/storage_init\n  ```\n- to initiate batch processing, issue the following REST API request (empty payload):\n  ```bash\n  [PUT] http://localhost:7071/api/batch_init\n  ```\n  this request will create a Kafka message for each document in the target storage container; the [batch processing endpoint](./batch/__init__.py) will trigger once for each Kafka message","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjplane%2Fazure-functions-python-kafka","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjplane%2Fazure-functions-python-kafka","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjplane%2Fazure-functions-python-kafka/lists"}