Package: azure-core
Azure Core shared client library for PythonAzure core provides shared exceptions and modules for Python SDK client libraries.
These libraries follow theAzure SDK Design Guidelines for Python.If you are a client library developer, please referenceclient library developer referencefor more information.Source code|Package (Pypi)|Package (Conda)|API reference documentationDisclaimerAzure SDK Python packages support for Python 2.7 has ended 01 January 2022. For more information and questions, please refer tohttps://github.com/Azure/azure-sdk-for-python/issues/20691Getting startedTypically, you will not need to install azure core;
it will be installed when you install one of the client libraries using it.
In case you want to install it explicitly (to implement your own client library, for example),
you can find ithere.Key conceptsAzure Core Library ExceptionsAzureErrorAzureError is the base exception for all errors.classAzureError(Exception):def__init__(self,message,*args,**kwargs):self.inner_exception=kwargs.get("error")self.exc_type,self.exc_value,self.exc_traceback=sys.exc_info()self.exc_type=self.exc_type.__name__ifself.exc_typeelsetype(self.inner_exception)self.exc_msg="{},{}:{}".format(message,self.exc_type,self.exc_value)# type: ignoreself.message=str(message)self.continuation_token=kwargs.get("continuation_token")super(AzureError,self).__init__(self.message,*args)messageis any message (str) to be associated with the exception.argsare any additional args to be included with exception.kwargsare keyword arguments to include with the exception. Use the keyworderrorto pass in an internal exception andcontinuation_tokenfor a token reference to continue an incomplete operation.The following exceptions inherit from AzureError:ServiceRequestErrorAn error occurred while attempt to make a request to the service. No request was sent.ServiceResponseErrorThe request was sent, but the client failed to understand the response.
The connection may have timed out. These errors can be retried for idempotent or safe operations.HttpResponseErrorA request was made, and a non-success status code was received from the service.classHttpResponseError(AzureError):def__init__(self,message=None,response=None,**kwargs):self.reason=Noneself.response=responseifresponse:self.reason=response.reasonself.status_code=response.status_codeself.error=self._parse_odata_body(ODataV4Format,response)# type: Optional[ODataV4Format]ifself.error:message=str(self.error)else:message=messageor"Operation returned an invalid status '{}'".format(self.reason)super(HttpResponseError,self).__init__(message=message,**kwargs)messageis the HTTP response error message (optional)responseis the HTTP response (optional).kwargsare keyword arguments to include with the exception.The following exceptions inherit from HttpResponseError:DecodeErrorAn error raised during response de-serialization.IncompleteReadErrorAn error raised if peer closes the connection before we have received the complete message body.ResourceExistsErrorAn error response with status code 4xx. This will not be raised directly by the Azure core pipeline.ResourceNotFoundErrorAn error response, typically triggered by a 412 response (for update) or 404 (for get/post).ResourceModifiedErrorAn error response with status code 4xx, typically 412 Conflict. This will not be raised directly by the Azure core pipeline.ResourceNotModifiedErrorAn error response with status code 304. This will not be raised directly by the Azure core pipeline.ClientAuthenticationErrorAn error response with status code 4xx. This will not be raised directly by the Azure core pipeline.TooManyRedirectsErrorAn error raised when the maximum number of redirect attempts is reached. The maximum amount of redirects can be configured in the RedirectPolicy.classTooManyRedirectsError(HttpResponseError):def__init__(self,history,*args,**kwargs):self.history=historymessage="Reached maximum redirect attempts."super(TooManyRedirectsError,self).__init__(message,*args,**kwargs)historyis used to document the requests/responses that resulted in redirected requests.argsare any additional args to be included with exception.kwargsare keyword arguments to include with the exception.StreamConsumedErrorAn error thrown if you try to access the stream ofazure.core.rest.HttpResponseorazure.core.rest.AsyncHttpResponseonce
the response stream has been consumed.StreamClosedErrorAn error thrown if you try to access the stream of theazure.core.rest.HttpResponseorazure.core.rest.AsyncHttpResponseonce
the response stream has been closed.ResponseNotReadErrorAn error thrown if you try to access thecontentofazure.core.rest.HttpResponseorazure.core.rest.AsyncHttpResponsebefore
reading in the response's bytes first.ConfigurationsWhen calling the methods, some properties can be configured by passing in as kwargs arguments.ParametersDescriptionheadersThe HTTP Request headers.request_idThe request id to be added into header.user_agentIf specified, this will be added in front of the user agent string.logging_enableUse to enable per operation. Defaults toFalse.loggerIf specified, it will be used to log information.response_encodingThe encoding to use if known for this service (will disable auto-detection).raw_request_hookCallback function. Will be invoked on request.raw_response_hookCallback function. Will be invoked on response.network_span_namerA callable to customize the span name.tracing_attributesAttributes to set on all created spans.permit_redirectsWhether the client allows redirects. Defaults toTrue.redirect_maxThe maximum allowed redirects. Defaults to30.retry_totalTotal number of retries to allow. Takes precedence over other counts. Default value is10.retry_connectHow many connection-related errors to retry on. These are errors raised before the request is sent to the remote server, which we assume has not triggered the server to process the request. Default value is3.retry_readHow many times to retry on read errors. These errors are raised after the request was sent to the server, so the request may have side-effects. Default value is3.retry_statusHow many times to retry on bad status codes. Default value is3.retry_backoff_factorA backoff factor to apply between attempts after the second try (most errors are resolved immediately by a second try without a delay). Retry policy will sleep for:{backoff factor} * (2 ** ({number of total retries} - 1))seconds. If the backoff_factor is 0.1, then the retry will sleep for [0.0s, 0.2s, 0.4s, ...] between retries. The default value is0.8.retry_backoff_maxThe maximum back off time. Default value is120seconds (2 minutes).retry_modeFixed or exponential delay between attempts, default isExponential.timeoutTimeout setting for the operation in seconds, default is604800s (7 days).connection_timeoutA single float in seconds for the connection timeout. Defaults to300seconds.read_timeoutA single float in seconds for the read timeout. Defaults to300seconds.connection_verifySSL certificate verification. Enabled by default. Set to False to disable, alternatively can be set to the path to a CA_BUNDLE file or directory with certificates of trusted CAs.connection_certClient-side certificates. You can specify a local cert to use as client side certificate, as a single file (containing the private key and the certificate) or as a tuple of both files' paths.proxiesDictionary mapping protocol or protocol and hostname to the URL of the proxy.cookiesDict or CookieJar object to send with theRequest.connection_data_block_sizeThe block size of data sent over the connection. Defaults to4096bytes.Async transportThe async transport is designed to be opt-in.AioHttpis one of the supported implementations of async transport. It is not installed by default. You need to install it separately.Shared modulesMatchConditionsMatchConditions is an enum to describe match conditions.classMatchConditions(Enum):Unconditionally=1# Matches any conditionIfNotModified=2# If the target object is not modified. Usually it maps to etag=<specific etag>IfModified=3# Only if the target object is modified. Usually it maps to etag!=<specific etag>IfPresent=4# If the target object exists. Usually it maps to etag='*'IfMissing=5# If the target object does not exist. Usually it maps to etag!='*'CaseInsensitiveEnumMetaA metaclass to support case-insensitive enums.fromenumimportEnumfromazure.coreimportCaseInsensitiveEnumMetaclassMyCustomEnum(str,Enum,metaclass=CaseInsensitiveEnumMeta):FOO='foo'BAR='bar'Null Sentinel ValueA falsy sentinel object which is supposed to be used to specify attributes
with no data. This gets serialized tonullon the wire.fromazure.core.serializationimportNULLassertbool(NULL)isFalsefoo=Foo(attr=NULL)ContributingThis project welcomes contributions and suggestions. Most contributions require
you to agree to a Contributor License Agreement (CLA) declaring that you have
the right to, and actually do, grant us the rights to use your contribution.
For details, visithttps://cla.microsoft.com.When you submit a pull request, a CLA-bot will automatically determine whether
you need to provide a CLA and decorate the PR appropriately (e.g., label,
comment). Simply follow the instructions provided by the bot. You will only
need to do this once across all repos using our CLA.This project has adopted theMicrosoft Open Source Code of Conduct.
For more information, see theCode of Conduct FAQor contactopencode@microsoft.comwith any
additional questions or comments.Release History1.30.0 (2024-02-01)Features AddedSupport tuple input for file values  toazure.core.rest.HttpRequest#33948Support tuple input tofileswith duplicate field namesazure.core.rest.HttpRequest#340211.29.7 (2024-01-18)Other ChangesRemoved dependency onanyio.  #332821.29.6 (2023-12-14)Bugs FixedAdjustedAsyncBearerTokenCredentialPolicyto work properly withtrioconcurrency mechanisms.   (#33307)Other ChangesAdded dependency onanyio>=3.0,<5.0Bumped minimum dependency onrequeststo 2.21.0.1.29.5 (2023-10-19)Bugs FixedFixed an issue withmultipart/form-datain the async transport wheredatawas not getting encoded into the request body. #32473Other ChangesUse ssl context from aiohttp by default.1.29.4 (2023-09-07)Bugs FixedFixed the issue that some urls trigger an infinite loop. #31346Fixed issue where IndexError was raised if multipart responses did not match the number of requests. #31471Fixed issue unbound variable exception if dict is invalid in CloudEvent.from_dict. #31835Fixed issue asyncBearerTokenCredentialPolicy is not backward compatible with SansIOHTTPPolicy. #31836Fixed issue mypy complains with new version of azure-core. #315641.29.3 (2023-08-22)Bugs FixedTyping fix:messagecannot beNoneinAzureError. #315641.29.2 (2023-08-14)Bugs FixedAdded a default implementation forAsyncTokenCredential.__aexit__()#31573Other ChangesBumpedtyping-extensionsversion to 4.6.0.1.29.1 (2023-08-09)Bugs FixedNot passenabled_caeunless it is explicitly enabled.1.29.0 (2023-08-03)Features AddedA keyword argumentenable_caewas added to theget_tokenmethod of theTokenCredentialprotocol.  #31012BearerTokenCredentialPolicyandAsyncBearerTokenCredentialPolicynow acceptenable_caekeyword arguments in their constructors. This is used in determining ifContinuous Access Evaluation (CAE)should be enabled for eachget_tokenrequest.  #310121.28.0 (2023-07-06)Features AddedAdded header name parameter toRequestIdPolicy. #30772AddedSensitiveHeaderCleanupPolicythat cleans up sensitive headers if a redirect happens and the new destination is in another domain. #28349Other ChangesCatch aiohttp errors and translate them into azure-core errors.1.27.1 (2023-06-13)Bugs FixedFix url building for some complex query parameters scenarios  #307071.27.0 (2023-06-01)Features AddedAdded support to use sync credentials inAsyncBearerTokenCredentialPolicy. #30381Added "prefix" parameter to AzureKeyCredentialPolicy #29901Bugs FixedImprove error message when providing the wrong credential type for AzureKeyCredential  #303801.26.4 (2023-04-06)Features AddedUpdated settings to include OpenTelemetry as a tracer provider.  #29095Other ChangesImproved typing1.26.3 (2023-02-02)Bugs FixedFixed deflate decompression for aiohttp   #284831.26.2 (2023-01-05)Bugs FixedFix 'ClientSession' object has no attribute 'auto_decompress'  (thanks to @mghextreme for the contribution)Other ChangesAdd "x-ms-error-code" as secure header to logRename "DEFAULT_HEADERS_WHITELIST" to "DEFAULT_HEADERS_ALLOWLIST". Added a backward compatible alias.1.26.1 (2022-11-03)Other ChangesAdded example of RequestsTransport with custom session.  (thanks to @inirudebwoy for the contribution)   #26768Added Python 3.11 support.1.26.0 (2022-10-06)Other ChangesLRO polling will not wait anymore before doing the first status check  #26376Added extra dependency for [aio]. pip install azure-core[aio] installs aiohttp too.1.25.1 (2022-09-01)Bugs FixedAdded @runtime_checkable toTokenCredentialprotocol definitions  #251871.25.0 (2022-08-04)Azure-core is supported on Python 3.7 or later. For more details, please read our page onAzure SDK for Python version support policy.Features AddedAddedCaseInsensitiveDictimplementation inazure.core.utilsremoving dependency onrequestsandaiohttp1.24.2 (2022-06-30)Bugs FixedFixed the bug that azure-core could not be imported under Python 3.11.0b3  #24928ContentDecodePolicycan now correctly deserialize more JSON bodies with different mime types #224101.24.1 (2022-06-01)Bugs FixedDeclare method level span as INTERNAL by default  #24492Fixed type hints forazure.core.paging.ItemPaged#245481.24.0 (2022-05-06)Features AddedAddSerializationErrorandDeserializationErrorinazure.core.exceptionsfor errors raised during serialization / deserialization  #243121.23.1 (2022-03-31)Bugs FixedAllow stream inputs to thecontentkwarg ofazure.core.rest.HttpRequestfrom objects with areadmethod  #235781.23.0 (2022-03-03)Features AddedImprove intellisense type hinting for service client methods. #22891Add a case insensitive dictcase_insensitive_dictinazure.core.utils.  #23206Bugs FixedUse "\n" rather than "/n" for new line in log.     #23261Other ChangesLog "WWW-Authenticate" header inHttpLoggingPolicy#22990Added dependency ontyping-extensions>= 4.0.11.22.1 (2022-02-09)Bugs FixedLimitingfinal-state-viascope to POST until consuming SDKs has been fixed to use this option properly on PUT.  #229891.22.0 (2022-02-03)[This version is deprecated.]Features AddedAdd support forfinal-state-viaLRO option in core.  #22713Bugs FixedAdd response body to string representation ofHttpResponseErrorif we're not able to parse out information #22302RaiseAttributeErrorwhen calling azure.core.pipeline.transport.__bases__    #22469Other ChangesPython 2.7 is no longer supported. Please use Python version 3.6 or later.1.21.1 (2021-12-06)Other ChangesRevert change in str method  #220231.21.0 (2021-12-02)Breaking ChangesSync stream downloading now raisesazure.core.exceptions.DecodeErrorrather thanrequests.exceptions.ContentDecodingErrorBugs FixedAdd response body to string representation ofHttpResponseErrorif we're not able to parse out information #218001.20.1 (2021-11-08)Bugs FixedCorrectly set response's content to decompressed body when users are using aiohttp transport with decompression headers #216201.20.0 (2021-11-04)Features AddedGAsend_requestonto theazure.core.PipelineClientandazure.core.AsyncPipelineClient. This method takes in
requests and sends them through our pipelines.GAazure.core.rest.azure.core.restis our new public simple HTTP library inazure.corethat users will use to create requests, and consume responses.GA errorsStreamConsumedError,StreamClosedError, andResponseNotReadErrortoazure.core.exceptions. These errors
are thrown if you mishandle streamed responses from theazure.core.restmoduleadd kwargs to the methods foriter_rawanditer_bytes#21529no longer raise JSON errors if users pass in file descriptors of JSON to thejsonkwarg inHttpRequest#21504Added new error typeIncompleteReadErrorwhich is raised if peer closes the connection before we have received the complete message body.Breaking ChangesSansIOHTTPPolicy.on_exception returns None instead of bool.Bugs FixedTheContent-Lengthheader in a http response is strictly checked against the actual number of bytes in the body,
rather than silently truncating data in case the underlying tcp connection is closed prematurely.
(thanks to @jochen-ott-by for the contribution)   #20412UnboundLocalError when SansIOHTTPPolicy handles an exception    #15222Add default content type header oftext/plainand content length header for users who pass unicode strings to thecontentkwarg ofHttpRequestin 2.7  #215501.19.1 (2021-11-01)Bugs Fixedrespect text encoding specified in argument (thanks to @ryohji for the contribution)  #20796Fix "coroutine x.read() was never awaited" warning fromContentDecodePolicy#21318fix type check fordatainput toazure.core.restfor python 2.7 users  #21341usecharset_normalizerifchardetis not installed to migrate aiohttp 3.8.0 changes.Other ChangesRefactor AzureJSONEncoder (thanks to @Codejune for the contribution)  #210281.19.0 (2021-09-30)Breaking Changes in the Provisionalazure.core.restpackageazure.core.rest.HttpResponseandazure.core.rest.AsyncHttpResponseare now abstract base classes. They should not be initialized directly, instead
your transport responses should inherit from them and implement them.The properties of theazure.core.restresponses are now all read-onlyHttpLoggingPolicy integrates logs into one record #199251.18.0 (2021-09-02)Features Addedazure.core.serialization.AzureJSONEncoder(introduced in 1.17.0) serializesdatetime.datetimeobjects in ISO 8601 format, conforming to RFC 3339's specification.    #20190We now useazure.core.serialization.AzureJSONEncoderto serializejsoninput toazure.core.rest.HttpRequest.Breaking Changes in the Provisionalazure.core.restpackageThetextproperty onazure.core.rest.HttpResponseandazure.core.rest.AsyncHttpResponsehas changed to a method, which also takes
anencodingparameter.Removediter_textanditer_linesfromazure.core.rest.HttpResponseandazure.core.rest.AsyncHttpResponseBugs FixedThe behaviour of the headers returned inazure.core.restresponses now aligns across sync and async. Items can now be checked case-insensitively and without raising an error for format.1.17.0 (2021-08-05)Features AddedCut hard dependency on requests libraryAdded afrom_jsonmethod which now accepts storage QueueMessage, eventhub's EventData or ServiceBusMessage or simply json bytes to return aCloudEventFixedNot override "x-ms-client-request-id" if it already exists in the header.    #17757Breaking Changes in the Provisionalazure.core.restpackageazure.core.restwill not try to guess thecharsetanymore if it was impossible to extract it fromHttpResponseanalysis. This removes our dependency oncharset.1.16.0 (2021-07-01)Features AddedAdd newprovisionalmethodssend_requestonto theazure.core.PipelineClientandazure.core.AsyncPipelineClient. This method takes in
requests and sends them through our pipelines.Add newprovisionalmoduleazure.core.rest.azure.core.restis our new public simple HTTP library inazure.corethat users will use to create requests, and consume responses.Add newprovisionalerrorsStreamConsumedError,StreamClosedError, andResponseNotReadErrortoazure.core.exceptions. These errors
are thrown if you mishandle streamed responses from the provisionalazure.core.restmoduleFixedImproved error message in thefrom_dictmethod ofCloudEventwhen a wrong schema is sent.1.15.0 (2021-06-04)New FeaturesAddedBearerTokenCredentialPolicy.on_challengeand.authorize_requestto allow subclasses to optionally handle authentication challengesBug FixesRetry policies don't sleep after operations time outThefrom_dictmethhod in theCloudEventcan now convert a datetime string to datetime object when microsecond exceeds the python limitation1.14.0 (2021-05-13)New FeaturesAddedazure.core.credentials.AzureNamedKeyCredentialcredential #17548.Addeddecompressparameter forstream_downloadmethod. If it is set toFalse, will not do decompression upon the stream.    #179201.13.0 (2021-04-02)Azure core requires Python 2.7 or Python 3.6+ since this release.New FeaturesAddedazure.core.utils.parse_connection_stringfunction to parse connection strings across SDKs, with common validation and support for case insensitive keys.Supported adding custom policies  #16519Added~azure.core.tracing.Linkthat should be used while passingLinkstoAbstractSpan.AbstractSpanconstructor can now take in additional keyword only args.Bug fixesMake NetworkTraceLoggingPolicy show the auth token in plain text. #14191Fixed RetryPolicy overriding default connection timeout with an extreme value #174811.12.0 (2021-03-08)This version will be the last version to officially support Python 3.5, future versions will require Python 2.7 or Python 3.6+.FeaturesAddedazure.core.messaging.CloudEventmodel that follows the cloud event spec.Addedazure.core.serialization.NULLsentinel valueImprovereprs forHttpRequestandHttpResponses  #16972Bug FixesDisable retry in stream downloading. (thanks to @jochen-ott-by @hoffmann for the contribution)  #167231.11.0 (2021-02-08)FeaturesAddedCaseInsensitiveEnumMetaclass for case-insensitive enums.  #16316Addraise_for_statusmethod ontoHttpResponse. Callingresponse.raise_for_status()on a response with an error code
will raise anHttpResponseError. Calling it on a good response will do nothing  #16399Bug FixesUpdate conn.conn_kw rather than overriding it when setting block size. (thanks for @jiasli for the contribution)  #165871.10.0 (2021-01-11)FeaturesAddedAzureSasCredentialand its respective policy. #159461.9.0 (2020-11-09)FeaturesAdd acontinuation_tokenattribute to the baseAzureErrorexception, and set this value for errors raised
during paged or long-running operations.Bug FixesSet retry_interval to 1 second instead of 1000 seconds (thanksvbarbaresifor contributing)  #143571.8.2 (2020-10-05)Bug FixesFixed bug to allow polling in the case of parameterized endpoints with relative polling urls  #140971.8.1 (2020-09-08)Bug fixesSAS credential replicated "/" fix #131591.8.0 (2020-08-10)FeaturesSupport params as list for exploding parameters  #124101.7.0 (2020-07-06)Bug fixesAzureKeyCredentialPolicywill now accept (and ignore) passed in kwargs  #11963Better error messages if passed endpoint is incorrect  #12106Do not JSON encore a string if content type is "text"  #12137FeaturesAddedhttp_logging_policyproperty on theConfigurationobject, allowing users to individually
set the http logging policy of the config  #122181.6.0 (2020-06-03)Bug fixesFixed deadlocks in AsyncBearerTokenCredentialPolicy #11543Fix AttributeException in StreamDownloadGenerator #11462FeaturesAdded support for changesets as part of multipart message support #10485Add AsyncLROPoller in azure.core.polling #10801Add get_continuation_token/from_continuation_token/polling_method methods in pollers (sync and async) #10801HttpResponse and PipelineContext objects are now pickable #108011.5.0 (2020-05-04)FeaturesSupport "x-ms-retry-after-ms" in response header   #10743linkandlink_from_headersnow accepts attributes   #10765Bug fixesNot retry if the status code is less than 400 #10778"x-ms-request-id" is not considered safe header for logging #109671.4.0 (2020-04-06)FeaturesSupport a default error type in map_error #9773AddedAzureKeyCredentialand its respective policy. #10509Addedazure.core.polling.base_pollingmodule with a "Microsoft One API" polling implementation #10090
Also contains the async version inazure.core.polling.async_base_pollingSupport kwargenforce_httpsto disable HTTPS check on authentication #9821Support additional kwargs inHttpRequest.set_multipart_mixedthat will be passed into pipeline context.1.3.0 (2020-03-09)Bug fixesAppended RequestIdPolicy to the default pipeline  #9841Rewind the body position in async_retry   #10117FeaturesAdd raw_request_hook support in custom_hook_policy   #9958Add timeout support in retry_policy   #10011Add OdataV4 error format auto-parsing in all exceptions ('error' attribute)  #97381.2.2 (2020-02-10)Bug fixesFixed a bug that sends None as request_id #9545Enable mypy for customers #9572Handle TypeError in deep copy #9620Fix text/plain content-type in decoder #95891.2.1 (2020-01-14)Bug fixesFixed a regression in 1.2.0 that was incompatible with azure-keyvault-* 4.0.0#94621.2.0 (2020-01-14)FeaturesAdd user_agent & sdk_moniker kwargs in UserAgentPolicy init   #9355Support OPTIONS HTTP verb     #9322Add tracing_attributes to tracing decorator   #9297Support auto_request_id in RequestIdPolicy   #9163Support fixed retry   #6419Support "retry-after-ms" in response header   #9240Bug fixesRemoved__enter__and__exit__from async context managers    #93131.1.1 (2019-12-03)Bug fixesBearer token authorization requires HTTPSRewind the body position in retry #83071.1.0 (2019-11-25)FeaturesNew RequestIdPolicy   #8437Enable logging policy in default pipeline #8053Normalize transport timeout.   #8000
Now we have:'connection_timeout' - a single float in seconds for the connection timeout. Default 5min'read_timeout' - a single float in seconds for the read timeout. Default 5minBug fixesRequestHistory: deepcopy fails if request contains a stream  #7732Retry: retry raises error if response does not have http_response #8629Client kwargs are now passed to DistributedTracingPolicy correctly    #8051NetworkLoggingPolicy now logs correctly all requests in case of retry #82621.0.0 (2019-10-29)FeaturesTracing: DistributedTracingPolicy now accepts kwargs network_span_namer to change network span name  #7773Tracing: Implementation of AbstractSpan can now use the mixin HttpSpanMixin to get HTTP span update automatically  #7773Tracing: AbstractSpan contract "change_context" introduced  #7773Introduce new policy HttpLoggingPolicy  #7988Bug fixesFix AsyncioRequestsTransport if input stream is an async generator  #7743Fix form-data with aiohttp transport  #7749Breaking changesTracing: AbstractSpan.set_current_span is longer supported. Use change_context instead.  #7773azure.core.pipeline.policies.ContentDecodePolicy.deserialize_from_text changed1.0.0b4 (2019-10-07)FeaturesTracing: network span context is available with the TRACING_CONTEXT in pipeline response  #7252Tracing: Span contract now haskind,traceparentand is a context manager  #7252SansIOHTTPPolicy methods can now be coroutines #7497Add multipart/mixed support #7083:HttpRequest now has a "set_multipart_mixed" method to set the parts of this requestHttpRequest now has a "prepare_multipart_body" method to build final body.HttpResponse now has a "parts" method to return an iterator of partsAsyncHttpResponse now has a "parts" methods to return an async iterator of partsNote that multipart/mixed is a Python 3.x only featureBug fixesTracing: policy cannot fail the pipeline, even in the worst condition  #7252Tracing: policy pass correctly status message if exception  #7252Tracing: incorrect span if exception raised from decorated function  #7133Fixed urllib3 ConnectTimeoutError being raised by Requests during a socket timeout. Now this exception is caught and wrapped as aServiceRequestError#7542Breaking changesTracing:azure.core.tracing.contextremovedTracing:azure.core.tracing.context.tracing_context.with_current_contextrenamed toazure.core.tracing.common.with_current_context#7252Tracing:linkrenamedlink_from_headersandlinktakes now a stringTracing: opencensus implementation has been moved to the packageazure-core-tracing-opencensusSome modules and classes that were importables from several different places have been removed:azure.core.HttpResponseErroris now onlyazure.core.exceptions.HttpResponseErrorazure.core.Configurationis now onlyazure.core.configuration.Configurationazure.core.HttpRequestis now onlyazure.core.pipeline.transport.HttpRequestazure.core.versionmodule has been removed. Useazure.core.__version__to get version number.azure.core.pipeline_clienthas been removed. Import fromazure.coreinstead.azure.core.pipeline_client_asynchas been removed. Import fromazure.coreinstead.azure.core.pipeline.basehas been removed. Import fromazure.core.pipelineinstead.azure.core.pipeline.base_asynchas been removed. Import fromazure.core.pipelineinstead.azure.core.pipeline.policies.basehas been removed. Import fromazure.core.pipeline.policiesinstead.azure.core.pipeline.policies.base_asynchas been removed. Import fromazure.core.pipeline.policiesinstead.azure.core.pipeline.policies.authenticationhas been removed. Import fromazure.core.pipeline.policiesinstead.azure.core.pipeline.policies.authentication_asynchas been removed. Import fromazure.core.pipeline.policiesinstead.azure.core.pipeline.policies.custom_hookhas been removed. Import fromazure.core.pipeline.policiesinstead.azure.core.pipeline.policies.redirecthas been removed. Import fromazure.core.pipeline.policiesinstead.azure.core.pipeline.policies.redirect_asynchas been removed. Import fromazure.core.pipeline.policiesinstead.azure.core.pipeline.policies.retryhas been removed. Import fromazure.core.pipeline.policiesinstead.azure.core.pipeline.policies.retry_asynchas been removed. Import fromazure.core.pipeline.policiesinstead.azure.core.pipeline.policies.distributed_tracinghas been removed. Import fromazure.core.pipeline.policiesinstead.azure.core.pipeline.policies.universalhas been removed. Import fromazure.core.pipeline.policiesinstead.azure.core.tracing.abstract_spanhas been removed. Import fromazure.core.tracinginstead.azure.core.pipeline.transport.basehas been removed. Import fromazure.core.pipeline.transportinstead.azure.core.pipeline.transport.base_asynchas been removed. Import fromazure.core.pipeline.transportinstead.azure.core.pipeline.transport.requests_basichas been removed. Import fromazure.core.pipeline.transportinstead.azure.core.pipeline.transport.requests_asynciohas been removed. Import fromazure.core.pipeline.transportinstead.azure.core.pipeline.transport.requests_triohas been removed. Import fromazure.core.pipeline.transportinstead.azure.core.pipeline.transport.aiohttphas been removed. Import fromazure.core.pipeline.transportinstead.azure.core.polling.pollerhas been removed. Import fromazure.core.pollinginstead.azure.core.polling.async_pollerhas been removed. Import fromazure.core.pollinginstead.1.0.0b3 (2019-09-09)Bug fixesFix aiohttp auto-headers #6992Add tracing to policies module init  #69511.0.0b2 (2019-08-05)Breaking changesTransport classes don't takeconfigparameter anymore (use kwargs instead)  #6372azure.core.paginghas been completely refactored  #6420HttpResponse.content_type attribute is now a string (was a list)  #6490ForStreamDownloadGeneratorsubclasses,responseis now anHttpResponse, and not a transport response likeaiohttp.ClientResponseorrequests.Response. The transport response is available ininternal_responseattribute  #6490Bug fixesaiohttp is not required to import async pipelines classes #6496AsyncioRequestsTransport.sleepis now a coroutine as expected #6490RequestsTransportis not tight toProxyPolicyimplementation details anymore #6372AiohttpTransportdoes not raise on unexpected kwargs  #6355FeaturesNew paging base classes that supportcontinuation_tokenandby_page()#6420Proxy support forAiohttpTransport#63721.0.0b1 (2019-06-26)Preview 1 release