volue-insight-timeseries 1.2.3__tar.gz → 1.3.0__tar.gz

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.

Files changed (19) hide show
  1. {volue_insight_timeseries-1.2.3 → volue_insight_timeseries-1.3.0}/PKG-INFO +1 -1
  2. volue_insight_timeseries-1.3.0/volue_insight_timeseries/VERSION +1 -0
  3. {volue_insight_timeseries-1.2.3 → volue_insight_timeseries-1.3.0}/volue_insight_timeseries/auth.py +9 -2
  4. {volue_insight_timeseries-1.2.3 → volue_insight_timeseries-1.3.0}/volue_insight_timeseries.egg-info/PKG-INFO +1 -1
  5. volue_insight_timeseries-1.2.3/volue_insight_timeseries/VERSION +0 -1
  6. {volue_insight_timeseries-1.2.3 → volue_insight_timeseries-1.3.0}/LICENSE +0 -0
  7. {volue_insight_timeseries-1.2.3 → volue_insight_timeseries-1.3.0}/MANIFEST.in +0 -0
  8. {volue_insight_timeseries-1.2.3 → volue_insight_timeseries-1.3.0}/README.md +0 -0
  9. {volue_insight_timeseries-1.2.3 → volue_insight_timeseries-1.3.0}/setup.cfg +0 -0
  10. {volue_insight_timeseries-1.2.3 → volue_insight_timeseries-1.3.0}/setup.py +0 -0
  11. {volue_insight_timeseries-1.2.3 → volue_insight_timeseries-1.3.0}/volue_insight_timeseries/__init__.py +0 -0
  12. {volue_insight_timeseries-1.2.3 → volue_insight_timeseries-1.3.0}/volue_insight_timeseries/curves.py +0 -0
  13. {volue_insight_timeseries-1.2.3 → volue_insight_timeseries-1.3.0}/volue_insight_timeseries/events.py +0 -0
  14. {volue_insight_timeseries-1.2.3 → volue_insight_timeseries-1.3.0}/volue_insight_timeseries/session.py +0 -0
  15. {volue_insight_timeseries-1.2.3 → volue_insight_timeseries-1.3.0}/volue_insight_timeseries/util.py +0 -0
  16. {volue_insight_timeseries-1.2.3 → volue_insight_timeseries-1.3.0}/volue_insight_timeseries.egg-info/SOURCES.txt +0 -0
  17. {volue_insight_timeseries-1.2.3 → volue_insight_timeseries-1.3.0}/volue_insight_timeseries.egg-info/dependency_links.txt +0 -0
  18. {volue_insight_timeseries-1.2.3 → volue_insight_timeseries-1.3.0}/volue_insight_timeseries.egg-info/requires.txt +0 -0
  19. {volue_insight_timeseries-1.2.3 → volue_insight_timeseries-1.3.0}/volue_insight_timeseries.egg-info/top_level.txt +0 -0
@@ -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
@@ -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