You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/event-hubs/event-hubs-capture-python.md
+9-14Lines changed: 9 additions & 14 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@
2
2
title: 'Quickstart: Read Azure Event Hubs captured data (Python)'
3
3
description: This quickstart shows you how to write Python code to capture data that's sent to an event hub and read the captured event data from an Azure storage account.
4
4
ms.topic: quickstart
5
-
ms.date: 03/14/2023
5
+
ms.date: 02/07/2024
6
6
ms.devlang: python
7
7
ms.custom: mode-api, devx-track-python
8
8
---
@@ -24,11 +24,7 @@ In this quickstart, you:
24
24
25
25
## Prerequisites
26
26
27
-
- Python with PIP and the following packages installed. The code in this article has been tested against these versions.
28
-
- Python 3.7
29
-
- azure-eventhub 5.2.0
30
-
- azure-storage-blob 12.6.0
31
-
- avro-python3 1.10.1
27
+
- Python 3.8 or later, with pip installed and updated.
32
28
- An Azure subscription. If you don't have one, [create a free account](https://azure.microsoft.com/free/) before you begin.
33
29
- An active Event Hubs namespace and event hub.
34
30
[Create an Event Hubs namespace and an event hub in the namespace](event-hubs-create.md). Record the name of the Event Hubs namespace, the name of the event hub, and the primary access key for the namespace. To get the access key, see [Get an Event Hubs connection string](event-hubs-get-connection-string.md#azure-portal). The default key name is *RootManageSharedAccessKey*. For this quickstart, you need only the primary key. You don't need the connection string.
@@ -72,7 +68,13 @@ In this section, you create a Python script that sends 200 events (10 devices *
72
68
event_data_batch = producer.create_batch() # Create a batch. You will add events to the batch later.
@@ -16,7 +16,7 @@ If you're new to Azure Event Hubs, see [Event Hubs overview](event-hubs-about.md
16
16
To complete this quickstart, you need the following prerequisites:
17
17
18
18
-**Microsoft Azure subscription**. To use Azure services, including Azure Event Hubs, you need a subscription. If you don't have an existing Azure account, sign up for a [free trial](https://azure.microsoft.com/free/).
19
-
- Python 3.7 or later, with pip installed and updated.
19
+
- Python 3.8 or later, with pip installed and updated.
20
20
- Visual Studio Code (recommended) or any other integrated development environment (IDE).
21
21
-**Create an Event Hubs namespace and an event hub**. The first step is to use the [Azure portal](https://portal.azure.com) to create an Event Hubs namespace, and obtain the management credentials that your application needs to communicate with the event hub. To create a namespace and an event hub, follow the procedure in [this article](event-hubs-create.md).
0 commit comments