Skip to content
Open
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
3 changes: 3 additions & 0 deletions kbcstorage/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@
.. _Storage API documentation:
http://docs.keboola.apiary.io/
"""
import os

from kbcstorage.retry_requests import MAX_RETRIES_DEFAULT, RetryRequests
import requests

Expand Down Expand Up @@ -43,6 +45,7 @@ def __init__(self, root_url, path_component, token, max_requests_retries=MAX_RET
path_component.strip('/'))
self.token = token
self._auth_header = {'X-StorageApi-Token': self.token,
'X-KBC-RunId': os.environ.get('KBC_RUNID'),
'Accept-Encoding': 'gzip',
'User-Agent': 'Keboola Storage API Python Client'}
self.requests = RetryRequests(max_requests_retries)
Expand Down