Skip to content

Releases: Azure/msrest-for-python

v0.6.0

08 Oct 20:55
262bc4e
Compare
Choose a tag to compare
v0.6.0 Pre-release
Pre-release

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:
  • 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

04 Sep 19:11
271c36c
Compare
Choose a tag to compare
v0.5.5 Pre-release
Pre-release

2018-09-04 Version 0.5.5

Bugfixes

  • Fix a serialization issue if additional_properties is declared, and "automatic model" syntax is used ("automatic model" being the ability to pass a dict to command and have the model auto-created) #120

v0.5.4

12 Jul 22:16
4eb70d0
Compare
Choose a tag to compare
v0.5.4 Pre-release
Pre-release

2018-07-12 Version 0.5.4

Features

  • Support additionalProperties and XML

BugFixes

  • Better parse empty node and not string types
  • Improve "object" XML parsing

v0.5.3

10 Jul 18:47
3214aaa
Compare
Choose a tag to compare
v0.5.3 Pre-release
Pre-release

2018-07-10 Version 0.5.3

BugFixes

  • Fix some XML serialization subtle scenarios

v0.5.2

09 Jul 23:45
028741f
Compare
Choose a tag to compare
v0.5.2 Pre-release
Pre-release

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

21 Jun 21:48
3be6556
Compare
Choose a tag to compare
v0.5.1 Pre-release
Pre-release

2018-06-21 Version 0.5.1

Bugfixes

  • Lower Accept header overwrite logging message #110
  • Fix 'object' type and XML format

Thanks to dharmab for his contribution

v0.5.0

12 Jun 19:17
aeabcfb
Compare
Choose a tag to compare
v0.5.0 Pre-release
Pre-release

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

30 Apr 19:15
175b1aa
Compare
Choose a tag to compare
v0.4.29 Pre-release
Pre-release

2018-04-30 Version 0.4.29

Bugfixes

  • Improve SDKClient.__exit__ to take exc_details as optional parameters and not required #93
  • refresh_session should also use the permanent HTTP session if available #91

v0.4.28

18 Apr 21:06
9d81113
Compare
Choose a tag to compare
v0.4.28 Pre-release
Pre-release

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 and client.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 and refresh_session with an optional session parameter.
    To take benefits of the session improvement, a subclass of Authentication MUST add this optional parameter
    and use it if it's not None:

       def signed_session(self, session=None):
           session = session or requests.Session()
    
           # As usual from here.

v0.4.27

07 Mar 17:47
772ec4a
Compare
Choose a tag to compare
v0.4.27 Pre-release
Pre-release

2018-03-07 Version 0.4.27

Features

  • Disable HTTP log by default (security), add enable_http_log to restore it #86

BugFixes

  • Fix incorrect date parsing if ms precision is over 6 digits #82