Msrest

Latest version: v0.7.1

Safety actively analyzes 630094 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 5 of 5

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

0.5.1

Bugfixes

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

Thanks to dharmab for his contribution

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

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

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

python
def signed_session(self, session=None):
session = session or requests.Session()

As usual from here.

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

Page 5 of 5

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.