volue-insight-timeseries 1.3.0__tar.gz → 1.4.1rc0__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.
- {volue_insight_timeseries-1.3.0 → volue_insight_timeseries-1.4.1rc0}/PKG-INFO +1 -1
- volue_insight_timeseries-1.4.1rc0/volue_insight_timeseries/VERSION +1 -0
- {volue_insight_timeseries-1.3.0 → volue_insight_timeseries-1.4.1rc0}/volue_insight_timeseries/curves.py +2 -3
- {volue_insight_timeseries-1.3.0 → volue_insight_timeseries-1.4.1rc0}/volue_insight_timeseries/events.py +0 -1
- {volue_insight_timeseries-1.3.0 → volue_insight_timeseries-1.4.1rc0}/volue_insight_timeseries/session.py +4 -3
- {volue_insight_timeseries-1.3.0 → volue_insight_timeseries-1.4.1rc0}/volue_insight_timeseries/util.py +1 -2
- {volue_insight_timeseries-1.3.0 → volue_insight_timeseries-1.4.1rc0}/volue_insight_timeseries.egg-info/PKG-INFO +1 -1
- {volue_insight_timeseries-1.3.0 → volue_insight_timeseries-1.4.1rc0}/volue_insight_timeseries.egg-info/requires.txt +0 -1
- volue_insight_timeseries-1.3.0/volue_insight_timeseries/VERSION +0 -1
- {volue_insight_timeseries-1.3.0 → volue_insight_timeseries-1.4.1rc0}/LICENSE +0 -0
- {volue_insight_timeseries-1.3.0 → volue_insight_timeseries-1.4.1rc0}/MANIFEST.in +0 -0
- {volue_insight_timeseries-1.3.0 → volue_insight_timeseries-1.4.1rc0}/README.md +0 -0
- {volue_insight_timeseries-1.3.0 → volue_insight_timeseries-1.4.1rc0}/setup.cfg +0 -0
- {volue_insight_timeseries-1.3.0 → volue_insight_timeseries-1.4.1rc0}/setup.py +0 -0
- {volue_insight_timeseries-1.3.0 → volue_insight_timeseries-1.4.1rc0}/volue_insight_timeseries/__init__.py +0 -0
- {volue_insight_timeseries-1.3.0 → volue_insight_timeseries-1.4.1rc0}/volue_insight_timeseries/auth.py +0 -0
- {volue_insight_timeseries-1.3.0 → volue_insight_timeseries-1.4.1rc0}/volue_insight_timeseries.egg-info/SOURCES.txt +0 -0
- {volue_insight_timeseries-1.3.0 → volue_insight_timeseries-1.4.1rc0}/volue_insight_timeseries.egg-info/dependency_links.txt +0 -0
- {volue_insight_timeseries-1.3.0 → volue_insight_timeseries-1.4.1rc0}/volue_insight_timeseries.egg-info/top_level.txt +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
1.4.1-rc
|
|
@@ -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,
|
|
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,
|
|
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 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,
|
|
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,
|
|
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,
|
|
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 +0,0 @@
|
|
|
1
|
-
1.3.0
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|