Releases: Azure/msrest-for-python
Releases · Azure/msrest-for-python
v0.6.0
2018-10-08 Version 0.6.0
Features
- The environment variable AZURE_HTTP_USER_AGENT, if present, is now injected part of the UserAgent
- New preview msrest.universal_http module. Provide tools to generic HTTP management (sync/async, requests/aiohttp, etc.)
- New preview msrest.pipeline implementation:
- A Pipeline is an ordered list of Policies than can process an HTTP request and response in a generic way.
- More details in the wiki page about Pipeline: https://github.com/Azure/msrest-for-python/wiki/msrest-0.6.0---Pipeline
- Adding new attributes to Configuration instance:
- http_logger_policy - Policy to handle HTTP logging
- user_agent_policy - Policy to handle UserAgent
- pipeline - The current pipeline used by the SDK client
- async_pipeline - The current async pipeline used by the async SDK client
- Installing "msrest[async]" now installs the experimental async support
Breaking changes
- The HTTPDriver API introduced in 0.5.0 has been replaced by the Pipeline implementation.
- The following classes have been moved from "msrest.pipeline" to "msrest.universal_http":
- ClientRedirectPolicy
- ClientProxies
- ClientConnection
- The following classes have been moved from "msrest.pipeline" to "msrest.universal_http.requests":
- ClientRetryPolicy
Bugfixes
- Fix "long" on Python 2 if used with the "object" type #121
Thanks to robgolding for his contribution
v0.5.5
v0.5.4
v0.5.3
v0.5.2
2018-07-09 Version 0.5.2
Features
- deserialize/from_dict now accepts a content-type parameter to parse XML strings
Bugfixes
- Fix some complex XML Swagger definitions.
This release likely breaks already generated XML SDKs, that needs to be regenerated with autorest.python 3.0.58
v0.5.1
v0.5.0
2018-06-12 Version 0.5.0
Disclaimer
This released is designed to be backward compatible with 0.4.x, but there is too many internal refactoring
and new features to continue with 0.4.x versionning
Features
- Add XML support
- Add many type hints, and MyPY testing on CI.
- HTTP calls are made through a HTTPDriver API. Only implementation is
requests
for now. This driver API is not considered stable
and you should pin your msrest version if you want to provide a personal implementation.
Bugfixes
- Incorrect milliseconds serialization for some datetime object #94
Deprecation
That will trigger a DeprecationWarning if an old Autorest generated code is used.
- _client.add_header is deprecated, and config.headers should be used instead
- _client.send_formdata is deprecated, and _client.put/get/delete/post + _client.send should be used instead
v0.4.29
v0.4.28
2018-04-18 Version 0.4.28
Features
-
msrest is now able to keep the "requests.Session" alive for performance. To activate this behavior:
- Use the final Client as a context manager (requires generation with Autorest.Python 3.0.50 at least)
- Use
client.config.keep_alive = True
andclient.close()
(requires generation with Autorest.Python 3.0.50 at least) - Use
client.config.keep_alive = True
and client._client.close() (not recommended, but available in old releases of SDK)
-
All Authentication classes now define
signed_session
andrefresh_session
with an optionalsession
parameter.
To take benefits of the session improvement, a subclass of Authentication MUST add this optional parameter
and use it if it's notNone
:def signed_session(self, session=None): session = session or requests.Session() # As usual from here.