volue-insight-timeseries 1.3.0__tar.gz → 1.4.1__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.3.0 → volue_insight_timeseries-1.4.1}/PKG-INFO +1 -1
  2. volue_insight_timeseries-1.4.1/volue_insight_timeseries/VERSION +1 -0
  3. {volue_insight_timeseries-1.3.0 → volue_insight_timeseries-1.4.1}/volue_insight_timeseries/curves.py +2 -3
  4. {volue_insight_timeseries-1.3.0 → volue_insight_timeseries-1.4.1}/volue_insight_timeseries/events.py +0 -1
  5. {volue_insight_timeseries-1.3.0 → volue_insight_timeseries-1.4.1}/volue_insight_timeseries/session.py +4 -3
  6. {volue_insight_timeseries-1.3.0 → volue_insight_timeseries-1.4.1}/volue_insight_timeseries/util.py +1 -2
  7. {volue_insight_timeseries-1.3.0 → volue_insight_timeseries-1.4.1}/volue_insight_timeseries.egg-info/PKG-INFO +1 -1
  8. {volue_insight_timeseries-1.3.0 → volue_insight_timeseries-1.4.1}/volue_insight_timeseries.egg-info/requires.txt +0 -1
  9. volue_insight_timeseries-1.3.0/volue_insight_timeseries/VERSION +0 -1
  10. {volue_insight_timeseries-1.3.0 → volue_insight_timeseries-1.4.1}/LICENSE +0 -0
  11. {volue_insight_timeseries-1.3.0 → volue_insight_timeseries-1.4.1}/MANIFEST.in +0 -0
  12. {volue_insight_timeseries-1.3.0 → volue_insight_timeseries-1.4.1}/README.md +0 -0
  13. {volue_insight_timeseries-1.3.0 → volue_insight_timeseries-1.4.1}/setup.cfg +0 -0
  14. {volue_insight_timeseries-1.3.0 → volue_insight_timeseries-1.4.1}/setup.py +0 -0
  15. {volue_insight_timeseries-1.3.0 → volue_insight_timeseries-1.4.1}/volue_insight_timeseries/__init__.py +0 -0
  16. {volue_insight_timeseries-1.3.0 → volue_insight_timeseries-1.4.1}/volue_insight_timeseries/auth.py +0 -0
  17. {volue_insight_timeseries-1.3.0 → volue_insight_timeseries-1.4.1}/volue_insight_timeseries.egg-info/SOURCES.txt +0 -0
  18. {volue_insight_timeseries-1.3.0 → volue_insight_timeseries-1.4.1}/volue_insight_timeseries.egg-info/dependency_links.txt +0 -0
  19. {volue_insight_timeseries-1.3.0 → volue_insight_timeseries-1.4.1}/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.3.0
3
+ Version: 1.4.1
4
4
  Summary: Volue Insight API python library
5
5
  Home-page: https://www.volueinsight.com
6
6
  Author: Volue Insight
@@ -1,4 +1,3 @@
1
- from past.types import basestring
2
1
  import warnings
3
2
 
4
3
  from . import util
@@ -247,7 +246,7 @@ class TaggedCurve(BaseCurve):
247
246
  args = []
248
247
  unwrap = True
249
248
  else:
250
- if isinstance(tag, basestring):
249
+ if isinstance(tag, str):
251
250
  unwrap = True
252
251
  args=[util.make_arg('tag', tag)]
253
252
  self._add_from_to(args, data_from, data_to)
@@ -1070,7 +1069,7 @@ class TaggedInstanceCurve(BaseCurve):
1070
1069
  if tag is None:
1071
1070
  unwrap = True
1072
1071
  else:
1073
- if isinstance(tag, basestring):
1072
+ if isinstance(tag, str):
1074
1073
  unwrap = True
1075
1074
  args.append(util.make_arg('tag', tag))
1076
1075
  if with_data:
@@ -7,7 +7,6 @@ import threading
7
7
  import queue
8
8
 
9
9
  from . import curves, util
10
- from builtins import str
11
10
 
12
11
 
13
12
  class EventListener:
@@ -7,7 +7,6 @@ import requests
7
7
  import json
8
8
  import time
9
9
  import warnings
10
- from past.types import basestring
11
10
  import configparser
12
11
 
13
12
  from . import auth, curves, events, util
@@ -426,6 +425,8 @@ class Session(object):
426
425
  if key not in metadata:
427
426
  raise MetadataException('Mandatory key {} not found in metadata'.format(key))
428
427
  curve_id = int(metadata['id'])
428
+ if('curve_state' in metadata and metadata['curve_state'] == 'DEPRECATED'):
429
+ warnings.warn("Deprecation warning for curve: {}".format(metadata['name']), DeprecationWarning, stacklevel=4)
429
430
  if metadata['curve_type'] in self._curve_types:
430
431
  c = self._curve_types[metadata['curve_type']](curve_id, metadata, self)
431
432
  return c
@@ -448,7 +449,7 @@ class Session(object):
448
449
  databytes = None
449
450
  if data is not None:
450
451
  headers['content-type'] = 'application/json'
451
- if isinstance(data, basestring):
452
+ if isinstance(data, str):
452
453
  databytes = data.encode()
453
454
  else:
454
455
  databytes = json.dumps(data).encode()
@@ -473,7 +474,7 @@ class Session(object):
473
474
 
474
475
  databytes = None
475
476
  if data is not None:
476
- if isinstance(data, basestring):
477
+ if isinstance(data, str):
477
478
  databytes = data.encode()
478
479
  else:
479
480
  databytes = json.dumps(data).encode()
@@ -9,7 +9,6 @@ import dateutil.parser
9
9
  import pandas as pd
10
10
  import numpy as np
11
11
  import warnings
12
- from past.types import basestring
13
12
 
14
13
  try:
15
14
  from urllib.parse import quote_plus
@@ -366,7 +365,7 @@ def is_integer(s):
366
365
 
367
366
 
368
367
  def make_arg(key, value):
369
- if hasattr(value, "__iter__") and not isinstance(value, basestring):
368
+ if hasattr(value, "__iter__") and not isinstance(value, str):
370
369
  return "&".join([make_arg(key, v) for v in value])
371
370
 
372
371
  if isinstance(value, datetime.date):
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: volue-insight-timeseries
3
- Version: 1.3.0
3
+ Version: 1.4.1
4
4
  Summary: Volue Insight API python library
5
5
  Home-page: https://www.volueinsight.com
6
6
  Author: Volue Insight
@@ -1,4 +1,3 @@
1
1
  requests>=2.18
2
2
  sseclient-py>=1.7
3
3
  pandas>=1.5.0
4
- future>=0.16