AutoRest swagger generator Python client runtime.
.. image:: https://travis-ci.org/Azure/msrest-for-python.svg?branch=master :target: https://travis-ci.org/Azure/msrest-for-python
.. image:: https://codecov.io/gh/azure/msrest-for-python/branch/master/graph/badge.svg :target: https://codecov.io/gh/azure/msrest-for-python
To install:
.. code-block:: bash
$ pip install msrest
2022-06-10 Version 0.7.1 +++++++++++++++++++++++++
Bugfixes
2022-06-07 Version 0.7.0 +++++++++++++++++++++++++
Features
azure-core
as installation requirement #247SerializationError
and DeserializationError
in msrest.exceptions
with those in azure.core
#247Bugfixes
Thanks to kianmeng for typo fixes in the documentation.
2021-01-26 Version 0.6.21 +++++++++++++++++++++++++
Bug Fixes
failsafe_deserialize
introduced in 0.6.20
#2322021-01-25 Version 0.6.20 +++++++++++++++++++++++++
Features
failsafe_deserialize
method to the Deserializer
object. #232datetime
, date
, time
, timedelta
and Decimal
correctly when serializing object
. #2242020-09-08 Version 0.6.19 +++++++++++++++++++++++++
Bugfixes
2020-07-27 Version 0.6.18 +++++++++++++++++++++++++
Features
2020-06-25 Version 0.6.17 +++++++++++++++++++++++++
Bugfixes
2020-06-09 Version 0.6.16 +++++++++++++++++++++++++
Bugfixes
Features
2020-06-04 Version 0.6.15 +++++++++++++++++++++++++
Bugfixes
Thanks to ivanst0 for the contribution
2020-05-18 Version 0.6.14 +++++++++++++++++++++++++
Bugfixes
2020-04-07 Version 0.6.13 +++++++++++++++++++++++++
Bugfixes
2020-04-06 Version 0.6.12 +++++++++++++++++++++++++
Features
2020-01-30 Version 0.6.11 +++++++++++++++++++++++++
Features
Bugfixes
Thanks to catatonicprime for the contribution
2019-09-04 Version 0.6.10 +++++++++++++++++++++++++
Features
Bugfixes
2019-07-24 Version 0.6.9 ++++++++++++++++++++++++
Features
2019-06-24 Version 0.6.8 ++++++++++++++++++++++++
BugFixes
Thanks to cclauss for the contribution
2019-06-12 Version 0.6.7 ++++++++++++++++++++++++
Features
Thanks to kalyanaj for the contribution
2019-03-21 Version 0.6.6 ++++++++++++++++++++++++
Bugfixes
Thanks to dotlambda for the contribution
2019-03-11 Version 0.6.5 ++++++++++++++++++++++++
Bugfixes
Thanks to eduardomourar for the contribution
2019-01-09 Version 0.6.4 ++++++++++++++++++++++++
Bugfixes
2019-01-08 Version 0.6.3 ++++++++++++++++++++++++
Features
2018-11-19 Version 0.6.2 ++++++++++++++++++++++++
Bugfixes
2018-10-15 Version 0.6.1 ++++++++++++++++++++++++
Bugfixes
2018-10-02 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:
Installing "msrest[async]" now installs the experimental async support. Works ONLY for Autorest.Python 4.0.63.
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":
The following classes have been moved from "msrest.pipeline" to "msrest.universal_http.requests":
Bugfixes
Thanks to robgolding for the contribution
2018-09-04 Version 0.5.5 ++++++++++++++++++++++++
Bugfixes
2018-07-12 Version 0.5.4 ++++++++++++++++++++++++
Features
BugFixes
2018-07-10 Version 0.5.3 ++++++++++++++++++++++++
BugFixes
2018-07-09 Version 0.5.2 ++++++++++++++++++++++++
Features
Bugfixes
This release likely breaks already generated XML SDKs, that needs to be regenerated with autorest.python 3.0.58
2018-06-21 Version 0.5.1 ++++++++++++++++++++++++
Bugfixes
Thanks to dharmab for the contribution
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 versioning
Features
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
Deprecation
That will trigger a DeprecationWarning if an old Autorest generated code is used.
2018-04-30 Version 0.4.29 +++++++++++++++++++++++++
Bugfixes
SDKClient.__exit__
to take exc_details as optional parameters and not required #932018-04-18 Version 0.4.28 +++++++++++++++++++++++++
Features
msrest is now able to keep the "requests.Session" alive for performance. To activate this behavior:
client.config.keep_alive = True
and client.close()
(requires generation with Autorest.Python 3.0.50 at least)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.
2018-03-07 Version 0.4.27 +++++++++++++++++++++++++
Features
enable_http_log
to restore it #86BugFixes
2018-01-30 Version 0.4.26 +++++++++++++++++++++++++
Features
Bugfixes
2018-01-08 Version 0.4.25 +++++++++++++++++++++++++
Features
2018-01-03 Version 0.4.24 +++++++++++++++++++++++++
Bugfixes
Internal optimisation
2017-12-21 Version 0.4.23 +++++++++++++++++++++++++
Bugfixes
Features
2017-12-15 Version 0.4.22 +++++++++++++++++++++++++
Bugfixes
2017-12-14 Version 0.4.21 +++++++++++++++++++++++++
Bugfixes
2017-12-13 Version 0.4.20 +++++++++++++++++++++++++
Features
Add support for additional_properties
2017-11-20 Version 0.4.19 +++++++++++++++++++++++++
Features
The interpretation of Swagger 2.0 "discriminator" is now lenient. This means for these two scenarios:
Instead of failing with an exception, this now returns the base type for this "discriminator".
Note that this is not a contradiction of the Swagger 2.0 spec, that specifies "validation SHOULD fail [...] there may exist valid reasons in particular circumstances to ignore a particular item, but the full implications must be understood and carefully weighed before choosing a different course."
This cannot be configured for now and is the new default behvaior, but can be in the future if needed.
Bugfixes
2017-10-26 Version 0.4.18 +++++++++++++++++++++++++
Features
2017-10-12 Version 0.4.17 +++++++++++++++++++++++++
Features
This make Authentication classes more consistent:
This allows test like "isintance(o, BasicTokenAuthentication)" to be guaranteed that the following attributes exists:
This means for users of "msrestazure", that they are guaranteed that all AD classes somehow inherits from "BasicTokenAuthentication"
2017-10-05 Version 0.4.16 +++++++++++++++++++++++++
Bugfixes
2017-09-28 Version 0.4.15 +++++++++++++++++++++++++
Bugfixes
Features
Thank you to jayden-at-arista for the contribution
2017-08-23 Version 0.4.14 +++++++++++++++++++++++++
Bugfixes
2017-08-22 Version 0.4.13 +++++++++++++++++++++++++
Bugfixes
2017-08-21 Version 0.4.12 +++++++++++++++++++++++++
Features
Input is now more lenient
Model have a "validate" method to check content constraints
Model have now 4 new methods:
More details and examples in the Wiki article on Github: https://github.com/Azure/msrest-for-python/wiki/msrest-0.4.12---Serialization-change
Bugfixes
2017-06-21 Version 0.4.11 +++++++++++++++++++++++++
Bugfixes
2017-06-15 Version 0.4.10 +++++++++++++++++++++++++
Features
2017-06-08 Version 0.4.9 ++++++++++++++++++++++++
Bugfixes
2017-05-22 Version 0.4.8 ++++++++++++++++++++++++
Bugfixes
2017-04-04 Version 0.4.7 ++++++++++++++++++++++++
BugFixes
Refactor paging #22:
Raise accurate DeserialisationError on incorrect RestAPI discriminator usage #27
Fix discriminator usage of the base class name #27
Remove default mutable arguments in Clients #20
Fix object comparison in some scenarios #24
2017-03-06 Version 0.4.6 ++++++++++++++++++++++++
Bugfixes
2017-02-13 Version 0.4.5 ++++++++++++++++++++++++
Bugfixes
Improvements
2016-09-14 Version 0.4.4 ++++++++++++++++++++++++
Bugfixes
Disclaimer
In order to get paging fixes for impacted clients, you need this package and Autorest > 0.17.0 Nightly 20160913
2016-09-01 Version 0.4.3 ++++++++++++++++++++++++
Bugfixes
2016-08-15 Version 0.4.2 ++++++++++++++++++++++++
Bugfixes
2016-08-08 Version 0.4.1 ++++++++++++++++++++++++
Bugfixes
2016-05-25 Version 0.4.0 ++++++++++++++++++++++++
This version has no bug fixes, but implements new features of Autorest:
Behaviour changes
2016-04-26 Version 0.3.0 ++++++++++++++++++++++++
Bugfixes
Behaviour changes
2016-03-25 Version 0.2.0 ++++++++++++++++++++++++
Bugfixes
Behaviour changes
2016-03-21 Version 0.1.3 ++++++++++++++++++++++++
Bugfixes
2016-03-14 Version 0.1.2 ++++++++++++++++++++++++
Bugfixes
2016-03-04 Version 0.1.1 ++++++++++++++++++++++++
Bugfixes
2016-03-04 Version 0.1.0 +++++++++++++++++++++++++
Behavioural Changes
Improvement
2016-02-29 Version 0.0.3 ++++++++++++++++++++++++
Bugfixes
2016-02-19 Version 0.0.2 ++++++++++++++++++++++++
Bugfixes
2016-02-19 Version 0.0.1 ++++++++++++++++++++++++