Python urllib3.util.Timeout() Examples

The following are 1 code examples of urllib3.util.Timeout(). You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may also want to check out all available functions/classes of the module urllib3.util , or try the search function .
Example #1
Source File: neo4j.py    From integrations-extras with BSD 3-Clause "New" or "Revised" License 5 votes vote down vote up
def _get_config(self, instance):
        host = instance.get('neo4j_url', '')
        port = int(instance.get('port', 7474))
        user = instance.get('user', '')
        password = str(instance.get('password', ''))
        connect_timeout = instance.get('connect_timeout')
        server_name = instance.get('server_name', '')

        timeout = None
        if connect_timeout:
            timeout = Timeout(connect=connect_timeout)

        return host, port, user, password, timeout, server_name