azure-eventhub-py

Publish and consume Azure Event Hubs events with blob checkpointing in Python.

2.9k|323|Updated Jan 16, 2026
One-click install
npx skills add https://github.com/microsoft/skills --skill azure-eventhub-py-microsoft
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: azure-eventhub-py
Source: https://github.com/microsoft/skills/tree/main/.github/plugins/azure-sdk-python/skills/azure-eventhub-py
Command: npx skills add https://github.com/microsoft/skills --skill azure-eventhub-py-microsoft

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires azure-eventhub, azure-identity, and includes scripts (resource) and references (resource) components.

What problem does it solve?

Publish and consume high-throughput events from Python applications with integrated checkpointing.

Core Features & Use Cases

  • Client types: ProducerClient, EventHubConsumerClient, and BlobCheckpointStore to enable end-to-end streaming with durable checkpoints.
  • Async support and practical workflows for sending, receiving, and partition management across Event Hubs.
  • Use case: Build scalable telemetry pipelines that publish millions of events and reliably checkpoint progress.

Quick Start

Install the Azure Event Hubs Python SDK and run the example to publish and consume events with checkpointing.

Frequently Asked Questions about azure-eventhub-py

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I implement checkpointing for Azure Event Hubs in Python?

Azure Event Hubs checkpointing in Python is implemented using the BlobCheckpointStore to save partition read positions. This durable checkpointing enables reliable event consumption by allowing consumers to resume processing without data loss.

Can I use async support to consume high-throughput events from Azure Event Hubs?

Yes, async support is available for consuming high-throughput events from Azure Event Hubs. The EventHubConsumerClient supports asynchronous workflows, enabling scalable telemetry pipelines that process millions of events concurrently.

How do I publish events to Azure Event Hubs using Python SDK?

To publish events to Azure Event Hubs using Python, utilize the ProducerClient from the Azure SDK. It handles sending high-throughput event data with practical workflows for robust error handling and partition management.

Does Azure Event Hubs Python SDK support DefaultAzureCredential authentication?

Yes, Azure Event Hubs Python SDK supports DefaultAzureCredential for authentication. This integrates seamlessly with Azure Identity, providing a secure, token-based method to access Event Hub resources and blob checkpoint stores.

What is the best way to manage partitions when consuming Azure Event Hub events?

The best way to manage partitions when consuming Azure Event Hub events is using the EventHubConsumerClient. It handles partition management directly and integrates with BlobCheckpointStore to ensure durable progress tracking across partitions.

Why do I need a BlobCheckpointStore for Azure Event Hubs consumer clients?

You need a BlobCheckpointStore for Azure Event Hubs consumer clients to persist partition offsets durably. This ensures that if a consumer restarts, it resumes processing from the last saved checkpoint, preventing event reprocessing.