NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
PyPI · #423 most downloaded on PyPI
AutoRest swagger generator Python client runtime.
Last release 4 years ago
no release in 18 months
Ships unpredictably
gaps range from 2 weeks to 1.4 years
Most releases are documented
notes for 52 of the last 60 stable releases
1 version withdrawn
withdrawn after publishing
11 years old
70 releases · first in 2016
Nothing published for this version
Nothing published for this version
Fixes failsafe_deserialize introduced in 0.6.20 #232
One column per quarter.
Add failsafe_deserialize method to the Deserializer object. #232
Fix serialization of random Model object #220
Add support for attributes/text in the same XML node #218
2020-06-25 Version 0.6.17 Bugfixes Fix XML and discriminator #214
Fix XML parsing with namespaces and attributes #209
Fix RFC regression introduced in 0.6.14 (RFC parse date are no longer pickable) #208
Fix "from_dict" in some complex flattening scenario #204
Fix deserializer and flattening if intermediate node is None #198
Add "time" serializer/deserializer #196
XML mode can now be enabled even if the given Model has no XML metadata #184
Thanks to catatonicprime for the contribution
XML mode now supports OpenAPI additional properties # 174
Accept extensions of JSON mimetype as valid JSON #167
Impossible to serialize XML if model contains UTF8 characters on Python 2.7 #165
Thanks to cclauss for the contribution
Add DomainCredentials credentials for EventGrid
Thanks to kalyanaj for the contribution
Make 0.6.x series compatible with pyinstaller again
Thanks to dotlambda for the contribution
Fix regression on credentials configuration if used outside of Autorest scope #135
Updated experimental async support. Requires Autorest.Python 4.0.64.
Fix circular dependency in TYPE_CHECKING mode #128
Remove unecessary verbose "warnings" log #126
The environment variable AZURE_HTTP_USER_AGENT, if present, is now injected part of the UserAgent
Thanks to robgolding for his contribution
Nothing published for this version
Fix a serialization issue if additional_properties is declared, and "automatic model" syntax is used ("automatic model" being the ability to pass a di
Support additionalProperties and XML
Fix some XML serialization subtle scenarios
deserialize/from_dict now accepts a content-type parameter to parse XML strings
This release likely breaks already generated XML SDKs, that needs to be regenerated with autorest.python 3.0.58
Lower Accept header overwrite logging message #110
Thanks to dharmab for his contribution
That will trigger a DeprecationWarning if an old Autorest generated code is used.
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
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.That will trigger a DeprecationWarning if an old Autorest generated code is used.
Improve SDKClient.__exit__ to take exc_details as optional parameters and not required #93
SDKClient.__exit__ to take exc_details as optional parameters and not required #93msrest is now able to keep the "requests.Session" alive for performance. To activate this behavior:
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.
Disable HTTP log by default (security), add enable_http_log to restore it #86
enable_http_log to restore it #86Add TopicCredentials for EventGrid client
Add LROPoller class. This is a customizable LRO engine. This is the poller engine of Autorest.Python 3.0, and is not used by code generated by previou
Date parsing is not compliant with Autorest / Swagger 2.0 specification (less lenient)
Accept to deserialize enum of different type if content string match #75
Do not validate additional_properties #73
Fix additional_properties if Swagger was flatten #72
Add support for additional_properties
Add support for additional_properties
The interpretation of Swagger 2.0 "discriminator" is now lenient. This means for these two scenarios:
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.
Add ApiKeyCredentials class. This can be used to support OpenAPI ApiKey feature.
This make Authentication classes more consistent:
This make Authentication classes more consistent:
This allows test like "isintance(o, BasicTokenAuthentication)" to be guaranted that the following attributes exists:
This means for users of "msrestazure", that they are guaranted that all AD classes somehow inherits from "BasicTokenAuthentication"
Fix regression: accept "set " as a valid "[str]"
Improved exception message if error JSON is Odata v4
Thank you to jayden-at-arista for his contribution
Fix regression introduced in msrest 0.4.12 - dict syntax with enum modeled as string and enum used
Fix regression introduced in msrest 0.4.12 - dict syntax using isodate.Duration
Model have a "validate" method to check content constraints
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
Fix dependency to "requests" to 2.x (was 2.14.x by mistake since 0.4.8)
2017-06-15 Version 0.4.10 +++++++++++++++++++++++++
2017-06-15 Version 0.4.10 +++++++++++++++++++++++++
Features
Accept "null" value for paging array as an empty list and do not raise
Bugfixes
Fix random "pool is closed" error
Bugfixes
"next" is renamed "advance_page" and "next" returns only 1 element (Python 2 expected behavior)
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
Allow Model sub-classes to be serialized if type is "object"
2017-03-06 Version 0.4.6
Bugfixes
Fix polymorphic deserialization #11
Bugfixes
Improvements
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Your coding agent can read these notes before it upgrades. Set up the MCP server →