volue-insight-timeseries 1.2.3__py3-none-any.whl → 1.4.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of volue-insight-timeseries might be problematic. Click here for more details.
- volue_insight_timeseries/VERSION +1 -1
- volue_insight_timeseries/auth.py +9 -2
- volue_insight_timeseries/session.py +2 -0
- {volue_insight_timeseries-1.2.3.dist-info → volue_insight_timeseries-1.4.0.dist-info}/METADATA +1 -1
- volue_insight_timeseries-1.4.0.dist-info/RECORD +12 -0
- volue_insight_timeseries-1.2.3.dist-info/RECORD +0 -12
- {volue_insight_timeseries-1.2.3.dist-info → volue_insight_timeseries-1.4.0.dist-info}/LICENSE +0 -0
- {volue_insight_timeseries-1.2.3.dist-info → volue_insight_timeseries-1.4.0.dist-info}/WHEEL +0 -0
- {volue_insight_timeseries-1.2.3.dist-info → volue_insight_timeseries-1.4.0.dist-info}/top_level.txt +0 -0
volue_insight_timeseries/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
1.
|
|
1
|
+
1.4.0
|
volue_insight_timeseries/auth.py
CHANGED
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
import json
|
|
6
6
|
import time
|
|
7
7
|
import threading
|
|
8
|
+
import os
|
|
8
9
|
|
|
9
10
|
try:
|
|
10
11
|
from urllib.parse import urljoin
|
|
@@ -59,6 +60,12 @@ class OAuth:
|
|
|
59
60
|
|
|
60
61
|
def get_headers(self, data):
|
|
61
62
|
"""The web-token auth header is simple"""
|
|
63
|
+
headers = {}
|
|
62
64
|
if self.token is not None and self.token_type is not None:
|
|
63
|
-
|
|
64
|
-
|
|
65
|
+
headers['Authorization'] = '{} {}'.format(self.token_type, self.token)
|
|
66
|
+
|
|
67
|
+
wapi_request_source = os.getenv('WAPI_REQUEST_SOURCE')
|
|
68
|
+
if wapi_request_source:
|
|
69
|
+
headers['X-Request-Source'] = wapi_request_source
|
|
70
|
+
|
|
71
|
+
return headers
|
|
@@ -426,6 +426,8 @@ class Session(object):
|
|
|
426
426
|
if key not in metadata:
|
|
427
427
|
raise MetadataException('Mandatory key {} not found in metadata'.format(key))
|
|
428
428
|
curve_id = int(metadata['id'])
|
|
429
|
+
if('curve_state' in metadata and metadata['curve_state'] == 'DEPRECATED'):
|
|
430
|
+
warnings.warn("Deprecation warning for curve: {}".format(metadata['name']), DeprecationWarning, stacklevel=4)
|
|
429
431
|
if metadata['curve_type'] in self._curve_types:
|
|
430
432
|
c = self._curve_types[metadata['curve_type']](curve_id, metadata, self)
|
|
431
433
|
return c
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
volue_insight_timeseries/VERSION,sha256=eLWRQAxWt7Z7jLOyuKjmXpCTiX8Czgh45rVAXGhiD6c,6
|
|
2
|
+
volue_insight_timeseries/__init__.py,sha256=DXR1tB3huHaG9wKRbpSEYhAat97msXrFgdp9eyYR5Wc,274
|
|
3
|
+
volue_insight_timeseries/auth.py,sha256=wetOsgVpAU3ApnDqjcjGsCbyWO1sewmByLPzvGSFiKg,2322
|
|
4
|
+
volue_insight_timeseries/curves.py,sha256=DaHtO5gmcx_f-OZY9kJPoQWc40WEAxhWR_TG3Fwv00A,65949
|
|
5
|
+
volue_insight_timeseries/events.py,sha256=95Ha6JJ6Gwk0OqK9KPkkNoLqECjnXQJJ6rrjdOK3gik,4217
|
|
6
|
+
volue_insight_timeseries/session.py,sha256=mLzq0IOQ5FaoyKOWAVGHS_pu4Ri-7Uah6uHLovmnDJo,20329
|
|
7
|
+
volue_insight_timeseries/util.py,sha256=ep7eyx_0nXXxGI84ZdYrZybOGmkgLf2iU9Z1QK-4FTM,10492
|
|
8
|
+
volue_insight_timeseries-1.4.0.dist-info/LICENSE,sha256=QW5nSxE0LozNpYWdyJm_0hco_PidycTnelwYzKdW7ZM,1069
|
|
9
|
+
volue_insight_timeseries-1.4.0.dist-info/METADATA,sha256=0HdaLUHDsS4Tsw2RE9zmrPwJtg7SlwhxcwraFIXcbRo,657
|
|
10
|
+
volue_insight_timeseries-1.4.0.dist-info/WHEEL,sha256=tZoeGjtWxWRfdplE7E3d45VPlLNQnvbKiYnx7gwAy8A,92
|
|
11
|
+
volue_insight_timeseries-1.4.0.dist-info/top_level.txt,sha256=IxOCIoqzMAV5gS4n6CIoRW9kBZnKQHyUPlDuJpEXmNY,25
|
|
12
|
+
volue_insight_timeseries-1.4.0.dist-info/RECORD,,
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
volue_insight_timeseries/VERSION,sha256=2C80rpqkG8Sgy1KaGsCJj-0J1rR5-xzETLZsNPFe6E0,6
|
|
2
|
-
volue_insight_timeseries/__init__.py,sha256=DXR1tB3huHaG9wKRbpSEYhAat97msXrFgdp9eyYR5Wc,274
|
|
3
|
-
volue_insight_timeseries/auth.py,sha256=z8pm3dMm9ZhRjqt4hlTDr34raGEmCr6BIVhuI14q8QA,2106
|
|
4
|
-
volue_insight_timeseries/curves.py,sha256=DaHtO5gmcx_f-OZY9kJPoQWc40WEAxhWR_TG3Fwv00A,65949
|
|
5
|
-
volue_insight_timeseries/events.py,sha256=95Ha6JJ6Gwk0OqK9KPkkNoLqECjnXQJJ6rrjdOK3gik,4217
|
|
6
|
-
volue_insight_timeseries/session.py,sha256=u271_x8rSeuCi8IvaUTcweBHahY1pVEVkhTGZYmJcNY,20124
|
|
7
|
-
volue_insight_timeseries/util.py,sha256=ep7eyx_0nXXxGI84ZdYrZybOGmkgLf2iU9Z1QK-4FTM,10492
|
|
8
|
-
volue_insight_timeseries-1.2.3.dist-info/LICENSE,sha256=QW5nSxE0LozNpYWdyJm_0hco_PidycTnelwYzKdW7ZM,1069
|
|
9
|
-
volue_insight_timeseries-1.2.3.dist-info/METADATA,sha256=KCUY8AlnrJgs7lj8RUnJfboX93EJKLbQzJrlldeB3LU,657
|
|
10
|
-
volue_insight_timeseries-1.2.3.dist-info/WHEEL,sha256=tZoeGjtWxWRfdplE7E3d45VPlLNQnvbKiYnx7gwAy8A,92
|
|
11
|
-
volue_insight_timeseries-1.2.3.dist-info/top_level.txt,sha256=IxOCIoqzMAV5gS4n6CIoRW9kBZnKQHyUPlDuJpEXmNY,25
|
|
12
|
-
volue_insight_timeseries-1.2.3.dist-info/RECORD,,
|
{volue_insight_timeseries-1.2.3.dist-info → volue_insight_timeseries-1.4.0.dist-info}/LICENSE
RENAMED
|
File without changes
|
|
File without changes
|
{volue_insight_timeseries-1.2.3.dist-info → volue_insight_timeseries-1.4.0.dist-info}/top_level.txt
RENAMED
|
File without changes
|