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
# Azure Event Hubs client library for Python - version 5.12.1
9
+
# Azure Event Hubs client library for Python - version 5.12.2
10
10
11
11
12
12
Azure Event Hubs is a highly scalable publish-subscribe service that can ingest millions of events per second and stream
@@ -22,12 +22,12 @@ The Azure Event Hubs client library allows for publishing and consuming of Azure
22
22
- Observe interesting operations and interactions happening within your business or other ecosystem, allowing loosely coupled systems to interact without the need to bind them together.
23
23
- Receive events from one or more publishers, transform them to better meet the needs of your ecosystem, then publish the transformed events to a new stream for consumers to observe.
Interaction with Event Hubs starts with an instance of EventHubConsumerClient or EventHubProducerClient class. You need either the host name, SAS/AAD credential and event hub name or a connection string to instantiate the client object.
56
56
57
-
**[Create client from connection string:](https://github.com/Azure/azure-sdk-for-python/blob/azure-eventhub_5.12.1/sdk/eventhub/azure-eventhub/samples/sync_samples/connection_string_authentication.py)**
57
+
**[Create client from connection string:](https://github.com/Azure/azure-sdk-for-python/blob/azure-eventhub_5.12.2/sdk/eventhub/azure-eventhub/samples/sync_samples/connection_string_authentication.py)**
58
58
59
59
For the Event Hubs client library to interact with an Event Hub, the easiest means is to use a connection string, which is created automatically when creating an Event Hubs namespace.
60
60
If you aren't familiar with shared access policies in Azure, you may wish to follow the step-by-step guide to [get an Event Hubs connection string](/azure/event-hubs/event-hubs-get-connection-string).
@@ -63,12 +63,12 @@ If you aren't familiar with shared access policies in Azure, you may wish to fol
63
63
`Endpoint=sb://<yournamespace>.servicebus.windows.net/;SharedAccessKeyName=<yoursharedaccesskeyname>;SharedAccessKey=<yoursharedaccesskey>` and
64
64
entity name to your Event Hub instance. You can get the connection string from the [Azure portal](/azure/event-hubs/event-hubs-get-connection-string#get-connection-string-from-the-portal).
65
65
66
-
**[Create client using the azure-identity library:](https://github.com/Azure/azure-sdk-for-python/blob/azure-eventhub_5.12.1/sdk/eventhub/azure-eventhub/samples/sync_samples/client_identity_authentication.py)**
66
+
**[Create client using the azure-identity library:](https://github.com/Azure/azure-sdk-for-python/blob/azure-eventhub_5.12.2/sdk/eventhub/azure-eventhub/samples/sync_samples/client_identity_authentication.py)**
67
67
68
68
Alternately, one can use a Credential object to authenticate via AAD with the azure-identity package.
69
69
70
70
- This constructor demonstrated in the sample linked above takes the host name and entity name of your Event Hub instance and credential that implements the
@@ -350,8 +376,8 @@ In the below example, we create an instance of `EventHubConsumerClient` and use
350
376
to [create an Azure Storage account](/azure/storage/common/storage-quickstart-create-account?tabs=azure-portal)
351
377
and a [Blob Container](/azure/storage/blobs/storage-quickstart-blobs-portal#create-a-container) to run the code.
352
378
353
-
[Azure Blob Storage Checkpoint Store Async](https://github.com/Azure/azure-sdk-for-python/blob/azure-eventhub_5.12.1/sdk/eventhub/azure-eventhub-checkpointstoreblob-aio)
354
-
and [Azure Blob Storage Checkpoint Store Sync](https://github.com/Azure/azure-sdk-for-python/blob/azure-eventhub_5.12.1/sdk/eventhub/azure-eventhub-checkpointstoreblob)
379
+
[Azure Blob Storage Checkpoint Store Async](https://github.com/Azure/azure-sdk-for-python/blob/azure-eventhub_5.12.2/sdk/eventhub/azure-eventhub-checkpointstoreblob-aio)
380
+
and [Azure Blob Storage Checkpoint Store Sync](https://github.com/Azure/azure-sdk-for-python/blob/azure-eventhub_5.12.2/sdk/eventhub/azure-eventhub-checkpointstoreblob)
355
381
are one of the `CheckpointStore` implementations we provide that applies Azure Blob Storage as the persistent store.
356
382
357
383
@@ -360,11 +386,12 @@ import asyncio
360
386
361
387
from azure.eventhub.aio import EventHubConsumerClient
362
388
from azure.eventhub.extensions.checkpointstoreblobaio import BlobCheckpointStore
389
+
from azure.identity.aio import DefaultAzureCredential
363
390
364
-
connection_str='<< CONNECTION STRING FOR THE EVENT HUBS NAMESPACE >>'
- Programmatically retrieve the built-in Event Hubs compatible endpoint.
416
-
Refer to [IoT Hub Connection String Sample](https://github.com/Azure/azure-sdk-for-python/blob/azure-eventhub_5.12.1/sdk/eventhub/azure-eventhub/samples/async_samples/iot_hub_connection_string_receive_async.py).
448
+
Refer to [IoT Hub Connection String Sample](https://github.com/Azure/azure-sdk-for-python/blob/azure-eventhub_5.12.2/sdk/eventhub/azure-eventhub/samples/async_samples/iot_hub_connection_string_receive_async.py).
417
449
418
450
## Troubleshooting
419
451
420
-
See the `azure-eventhub`[troubleshooting guide](https://github.com/Azure/azure-sdk-for-python/blob/azure-eventhub_5.12.1/sdk/eventhub/azure-eventhub/TROUBLESHOOTING.md) for details on how to diagnose various failure scenarios.
452
+
See the `azure-eventhub`[troubleshooting guide](https://github.com/Azure/azure-sdk-for-python/blob/azure-eventhub_5.12.2/sdk/eventhub/azure-eventhub/TROUBLESHOOTING.md) for details on how to diagnose various failure scenarios.
Please take a look at the [samples](https://github.com/Azure/azure-sdk-for-python/blob/azure-eventhub_5.12.1/sdk/eventhub/azure-eventhub/samples) directory for detailed examples of how to use this library to send and receive events to/from Event Hubs.
481
+
Please take a look at the [samples](https://github.com/Azure/azure-sdk-for-python/blob/azure-eventhub_5.12.2/sdk/eventhub/azure-eventhub/samples) directory for detailed examples of how to use this library to send and receive events to/from Event Hubs.
450
482
451
483
### Documentation
452
484
@@ -473,16 +505,24 @@ $ pip install uamqp
473
505
474
506
```python
475
507
from azure.eventhub import EventHubProducerClient, EventHubConsumerClient
508
+
from azure.identity import DefaultAzureCredential
476
509
477
-
connection_str='<< CONNECTION STRING FOR THE EVENT HUBS NAMESPACE >>'
0 commit comments