Skip to main content

A small example package

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)
or
>>> my_query.execute_query_retry(timeout_=TIMEOUT)

Remember to do $ python3 -m pip uninstall office365-rest-python-client first if you have the original module installed, since both modules have the same name.

Under the MIT License, as the original Office365-REST-Python-Client.
And I take no credit for this module, sine 99.99% of the code comes from the original project.

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.1.1.tar.gz (201.9 kB view hashes)

Uploaded Source

Built Distribution

Office365_REST_with_timeout-0.1.1-py3-none-any.whl (427.3 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