volue-insight-timeseries 1.2.3__py3-none-any.whl → 1.3.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.

@@ -1 +1 @@
1
- 1.2.3
1
+ 1.3.0
@@ -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
- return {'Authorization': '{} {}'.format(self.token_type, self.token)}
64
- return {}
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
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: volue-insight-timeseries
3
- Version: 1.2.3
3
+ Version: 1.3.0
4
4
  Summary: Volue Insight API python library
5
5
  Home-page: https://www.volueinsight.com
6
6
  Author: Volue Insight
@@ -1,12 +1,12 @@
1
- volue_insight_timeseries/VERSION,sha256=2C80rpqkG8Sgy1KaGsCJj-0J1rR5-xzETLZsNPFe6E0,6
1
+ volue_insight_timeseries/VERSION,sha256=ZNI_hY71Gw-Zbklm1OJ8A3G0N-LSeHiQsfetItTsVmM,6
2
2
  volue_insight_timeseries/__init__.py,sha256=DXR1tB3huHaG9wKRbpSEYhAat97msXrFgdp9eyYR5Wc,274
3
- volue_insight_timeseries/auth.py,sha256=z8pm3dMm9ZhRjqt4hlTDr34raGEmCr6BIVhuI14q8QA,2106
3
+ volue_insight_timeseries/auth.py,sha256=wetOsgVpAU3ApnDqjcjGsCbyWO1sewmByLPzvGSFiKg,2322
4
4
  volue_insight_timeseries/curves.py,sha256=DaHtO5gmcx_f-OZY9kJPoQWc40WEAxhWR_TG3Fwv00A,65949
5
5
  volue_insight_timeseries/events.py,sha256=95Ha6JJ6Gwk0OqK9KPkkNoLqECjnXQJJ6rrjdOK3gik,4217
6
6
  volue_insight_timeseries/session.py,sha256=u271_x8rSeuCi8IvaUTcweBHahY1pVEVkhTGZYmJcNY,20124
7
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,,
8
+ volue_insight_timeseries-1.3.0.dist-info/LICENSE,sha256=QW5nSxE0LozNpYWdyJm_0hco_PidycTnelwYzKdW7ZM,1069
9
+ volue_insight_timeseries-1.3.0.dist-info/METADATA,sha256=VXZZP3dX2QMSHWGM-9Oe_7j9NYqYkZ_4mdO57sfmcu0,657
10
+ volue_insight_timeseries-1.3.0.dist-info/WHEEL,sha256=tZoeGjtWxWRfdplE7E3d45VPlLNQnvbKiYnx7gwAy8A,92
11
+ volue_insight_timeseries-1.3.0.dist-info/top_level.txt,sha256=IxOCIoqzMAV5gS4n6CIoRW9kBZnKQHyUPlDuJpEXmNY,25
12
+ volue_insight_timeseries-1.3.0.dist-info/RECORD,,