Skip to content
This repository was archived by the owner on Aug 28, 2025. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions upwork/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,13 +89,15 @@ class Client(object):
Whether to attach
:py:mod:`upwork.routers.job` router

:timeout: (optional, default ``3 secs``)
Socket operations timeout.
"""

def __init__(self, public_key, secret_key,
oauth_access_token=None, oauth_access_token_secret=None,
fmt='json', finreport=True, hr=True, mc=True,
offers=True, provider=True, task=True, team=True,
timereport=True, job=True):
timereport=True, job=True, timeout=3):

self.public_key = public_key
self.secret_key = secret_key
Expand All @@ -113,7 +115,9 @@ def __init__(self, public_key, secret_key,
logging.captureWarnings(True)
self.http = urllib3.PoolManager(
cert_reqs='CERT_REQUIRED',
ca_certs=ca_certs_locater.get())
ca_certs=ca_certs_locater.get(),
timeout=int(timeout)
)

self.oauth_access_token = oauth_access_token
self.oauth_access_token_secret = oauth_access_token_secret
Expand Down