2019-10-23 21:25:19 +03:00
---
title: Azure SDK for Python (November 2019)
layout: post
date: Nov 2019
tags: python
sidebar: python_sidebar
repository: azure/azure-sdk-for-python
permalink: /releases/2019-11/python.html
---
2019-10-31 20:57:04 +03:00
The Azure SDK team is pleased to make available the November 2019 client library preview release. This represents the first release of the ground-up rewrite of the client libraries to ensure consistency, idiomatic design, and excellent developer experience and productivity. This preview release includes new client libraries for Azure Cosmos, Identity, Key Vault (certificates, keys and secrets), Event Hubs, and Storage (blob, file-shares and queues).
2019-10-23 21:25:19 +03:00
## Installation Instructions
To install the latest preview version of the packages, copy and paste the following commands into a terminal:
```bash
pip install --pre azure-cosmos
pip install --pre azure-eventhub
pip install --pre azure-eventhub-checkpointstoreblob-aio
pip install --pre azure-keyvault-certificates
2019-10-31 20:57:04 +03:00
pip install azure-keyvault-keys
pip install azure-keyvault-secrets
pip install azure-storage-blob
pip install --pre azure-storage-file-share
pip install azure-storage-queue
2019-10-23 21:25:19 +03:00
pip install --pre azure-appconfiguration
2019-10-30 02:19:28 +03:00
pip install azure-identity
2019-10-23 21:25:19 +03:00
```
## Feedback
If you have a bug or feature request for one of the libraries, please post an issue to [GitHub ](https://github.com/azure/azure-sdk-for-python/issues ).
## Changelog
Detailed change logs are linked to in the Quick Links below. Here are some critical call outs.
### Cosmos
2019-10-31 20:57:04 +03:00
- azure.cosmos.errors module deprecated and replaced by azure.cosmos.exceptions
- The access condition parameters (`access_condition`, `if_match` , `if_none_match` ) have been deprecated in favor of separate `match_condition` and `etag` parameters.
- Added query Distinct, Offset and Limit support.
2019-10-23 21:25:19 +03:00
### Event Hubs
- Added support for tracing ([issue #7153 ](https://github.com/Azure/azure-sdk-for-python/issues/7153)).
- Added new boolean type parameter `track_last_enqueued_event_properties` in method `EventHubClient.create_consumer()` .
- Added new property `last_enqueued_event_properties` of EventHubConsumer which contains `sequence_number` , `offset` , `enqueued_time` and `retrieval_time information` .
- Removed support for IoT Hub direct connection. EventHubs compatible connection string of an IotHub can be used to create EventHubClient and read properties or events from an IoT Hub.
- Removed support for sending EventData to IoT Hub.
- Removed parameter exception in method `close()` of EventHubConsumer and EventHubProcuer.
### Key Vault
2019-11-06 02:23:13 +03:00
- Restructured the `Certificate` , `Key` , and `Secret` models and renamed them to `KeyVaultCertificate` , `KeyVaultKey` , and `KeyVaultSecret` .
- Renamed methods to more clearly reflect their intended uses.
- Both async and sync versions of deleting and recovering keys and secrets now return pollers that can be awaited if necessary
- For more specific details about these changes, see the respective
2019-10-23 21:25:19 +03:00
[certificate ](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/keyvault/azure-keyvault-certificates/HISTORY.md ),
[key ](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/keyvault/azure-keyvault-keys/HISTORY.md ),
and [secret ](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/keyvault/azure-keyvault-secrets/HISTORY.md ) changelogs.
### Storage
2019-11-02 00:47:52 +03:00
- `azure.storage.file` is now `azure.storage.fileshare` .
- The package is renamed from `azure-storage-file` to `azure-storage-file-share` along with renamed client modules.
- New API for stream download responses for blobs and files. This object is no longer iterable.
- Client and model modules are now internal.
- Changed optional params to keyword only in queues and files.
- `enqueue_message` is now called `send_message` in queues.
- Other breaking changes like renaming `LeaseClient` in blobs to `BlobLeaseClient` .
2019-10-23 21:25:19 +03:00
2019-10-23 21:32:42 +03:00
### App Configuration
-
2019-10-23 21:25:19 +03:00
### Identity
2019-10-30 02:19:28 +03:00
- `DefaultAzureCredential` accepts an `authority` keyword argument, enabling
its use in national clouds
- All credentials with `tenant_id` and `client_id` positional parameters now accept them in that order
- Optional parameters for several credentials are now keyword arguments
- Authenticating with a single sign-on shared with other Microsoft applications
only requires a username when multiple users have signed in
- Async credentials default to [aiohttp ](https://pypi.org/project/aiohttp/ )
for transport
2019-10-30 20:36:38 +03:00
- Known issue ([#8292](https://github.com/Azure/azure-sdk-for-python/issues/8292)):
`DefaultAzureCredential` and `SharedTokenCredential` raise exceptions on Python 3.8
on Windows
2019-10-30 02:19:28 +03:00
2019-10-23 21:25:19 +03:00
## Quick Links
| Library | Install | Quickstart | API Reference | Changelog | Samples |
| -- | -- | -- | -- | -- | -- |
2019-10-31 20:57:04 +03:00
| azure-cosmos | [package ](https://pypi.org/project/azure-cosmos/4.0.0b5/ ) | [Readme.md ](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/cosmos/azure-cosmos ) | [Preview Documentation ](https://azuresdkdocs.blob.core.windows.net/$web/python/azure-cosmos/4.0.0b5/azure.cosmos.html ) | [History.md ](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/cosmos/azure-cosmos/HISTORY.md ) | [Samples ](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/cosmos/azure-cosmos/samples ) |
2019-10-23 21:25:19 +03:00
| azure-eventhub | [package ](https://pypi.org/project/azure-eventhub/5.0.0b4/ ) | [Readme.md ](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/eventhub/azure-eventhubs ) | [Preview Documentation ](https://azure.github.io/azure-sdk-for-python/ref/azure.eventhub.html ) | [History.md ](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/eventhub/azure-eventhubs/HISTORY.md ) | [Samples ](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/eventhub/azure-eventhubs/examples ) |
| azure-eventhub-checkpointstoreblob-aio | [package ](https://pypi.org/project/azure-eventhub-checkpointstoreblob-aio/1.0.0b4/ ) | [Readme.md ](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/eventhub/azure-eventhubs-checkpointstoreblob-aio ) | [Preview Documentation ](https://azure.github.io/azure-sdk-for-python/ref/azure.eventhub.extensions.html ) | [History.md ](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/eventhub/azure-eventhubs-checkpointstoreblob-aio/HISTORY.md ) | [Samples ](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/eventhub/azure-eventhubs-checkpointstoreblob-aio/examples ) |
2019-11-06 02:23:13 +03:00
| azure-keyvault-certificates | [package ](https://pypi.org/project/azure-keyvault-certificates/4.0.0b5 ) | [Readme.md ](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/keyvault/azure-keyvault-certificates ) | [Preview Documentation ](https://azure.github.io/azure-sdk-for-python/ref/azure.keyvault.certificates.html ) | [History.md ](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/keyvault/azure-keyvault-certificates/HISTORY.md ) | [Samples ](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/keyvault/azure-keyvault-certificates/samples ) |
| azure-keyvault-keys | [package ](https://pypi.org/project/azure-keyvault-keys/4.0.0 ) | [Readme.md ](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/keyvault/azure-keyvault-keys ) | [Preview Documentation ](https://azure.github.io/azure-sdk-for-python/ref/azure.keyvault.keys.html ) | [History.md ](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/keyvault/azure-keyvault-keys/HISTORY.md ) | [Samples ](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/keyvault/azure-keyvault-keys/samples ) |
| azure-keyvault-secrets | [package ](https://pypi.org/project/azure-keyvault-secrets/4.0.0 ) | [Readme.md ](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/keyvault/azure-keyvault-secrets ) | [Preview Documentation ](https://azure.github.io/azure-sdk-for-python/ref/azure.keyvault.secrets.html ) | [History.md ](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/keyvault/azure-keyvault-secrets/HISTORY.md ) | [Samples ](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/keyvault/azure-keyvault-secrets/samples ) |
2019-11-02 00:47:52 +03:00
| azure-storage-blob | [package ](https://pypi.org/project/azure-storage-blob/12.0.0 ) | [Readme.md ](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/storage/azure-storage-blob ) | [Preview Documentation ](https://aka.ms/azsdk-python-storage-blob-ref ) | [History.md ](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/storage/azure-storage-blob/HISTORY.md ) | [Samples ](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/storage/azure-storage-blob/samples ) |
| azure-storage-file-share | [package ](https://pypi.org/project/azure-storage-file-share/12.0.0b5 ) | [Readme.md ](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/storage/azure-storage-file-share ) | [Preview Documentation ](https://aka.ms/azsdk-python-storage-fileshare-ref ) | [History.md ](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/storage/azure-storage-file-share/HISTORY.md ) | [Samples ](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/storage/azure-storage-file-share/samples ) |
| azure-storage-queue | [package ](https://pypi.org/project/azure-storage-queue/12.0.0 ) | [Readme.md ](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/storage/azure-storage-queue ) | [Preview Documentation ](https://aka.ms/azsdk-python-storage-queue-ref ) | [History.md ](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/storage/azure-storage-queue/HISTORY.md ) | [Samples ](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/storage/azure-storage-queue/samples ) |
2019-10-23 21:25:19 +03:00
| azure-appconfiguration | [package ](https://pypi.org/project/azure-appconfiguration/1.0.0b4 ) | [Readme.md ](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/appconfiguration/azure-appconfiguration ) | [Preview Documentation ](https://azure.github.io/azure-sdk-for-python/ref/azure.appconfiguration.html ) | [History.md ](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/appconfiguration/azure-appconfiguration/HISTORY.md ) | [Samples ](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/appconfiguration/azure-appconfiguration/examples ) |
2019-10-30 02:19:28 +03:00
| azure-identity | [package ](https://pypi.org/project/azure-identity/1.0.0 ) | [Readme.md ](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/identity/azure-identity ) | [Preview Documentation ](https://azure.github.io/azure-sdk-for-python/ref/azure.identity.html ) | [History.md ](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/identity/azure-identity/HISTORY.md ) | |
2019-10-23 21:25:19 +03:00
| azure-core | [package ](https://pypi.org/project/azure-core/1.0.0b4 ) | [Readme.md ](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/core/azure-core ) | [Preview Documentation ](https://azure.github.io/azure-sdk-for-python/ref/azure.core.html ) | [History.md ](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/core/azure-core/HISTORY.md ) | |
{% include refs.md %}