Skip to content

Commit

Permalink
Pass requests session to tabulator
Browse files Browse the repository at this point in the history
  • Loading branch information
mcarans committed Dec 19, 2019
1 parent 3e66dce commit eda71c0
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
4 changes: 2 additions & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ colorlog==4.0.2
email_validator==1.0.5
html5lib==1.0.1
psycopg2-binary==2.8.4
pyaml==19.4.1
pyaml==19.12.0
ratelimit==2.2.1
six==1.13.0
sshtunnel==0.1.5
tabulator==1.29.0
tabulator==1.31.2
typing==3.7.4.1
yamlloader==0.5.5
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
'ratelimit',
'six>=1.13.0',
'sshtunnel',
'tabulator>=1.29.0',
'tabulator>=1.31.2',
'typing',
'yamlloader'
]
Expand Down
2 changes: 2 additions & 0 deletions src/hdx/utilities/downloader.py
Original file line number Diff line number Diff line change
Expand Up @@ -345,6 +345,8 @@ def get_tabular_stream(self, url, **kwargs):
if file_type is not None:
kwargs['format'] = file_type
del kwargs['file_type']
if 'http_session' not in kwargs:
kwargs['http_session'] = self.session
try:
self.response = tabulator.Stream(url, **kwargs)
self.response.open()
Expand Down
2 changes: 1 addition & 1 deletion src/hdx/utilities/version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.8.8
1.8.9

0 comments on commit eda71c0

Please sign in to comment.