Changelog
Finally the initial support for SharePoint API Batch requests has been introduced. All insert/update/delete operations are supported.
The following example how current user and web objects could be retrieved by grouping two operations and submitting it as a single request to the server:
client = ClientContext(site_url).with_credentials(user_credentials)
current_user = client.web.currentUser
client.load(current_user)
current_web = client.web
client.load(current_web)
client.execute_batch()
which offers a new way of improving the performance.
Among another improvements and changes:
-
improved support for Office365 auth with ADFS by @liuliqiu
-
style enforcement (
flake8
), code formatting (isort
) configuration by @domdinicola -
ClientRuntimeContext.execute_query_retry
method which implements Retry pattern