Skip to main content

Office365 REST package with timeout added.

Project description

This is the same project as Office365-REST (https://github.com/vgrem/Office365-REST-Python-Client), but with the addition of a timeout_ variable in execute_query(), which gets passed down to requests.get. This prevents the execution from hanging indefinitely.

To execute a query with a timeout, simply add the following argument at the end:

>>> TIMEOUT=10
>>> my_query.execute_query(timeout_=TIMEOUT)

It also works with execute_query_retry(timeout_=TIMEOUT).

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

office365_REST_with_timeout-0.0.5.tar.gz (200.9 kB view hashes)

Uploaded Source

Built Distribution

office365_REST_with_timeout-0.0.5-py3-none-any.whl (424.6 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page