volue-insight-timeseries 1.4.0__py3-none-any.whl → 1.4.1rc0__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/curves.py +2 -3
- volue_insight_timeseries/events.py +0 -1
- volue_insight_timeseries/session.py +2 -3
- volue_insight_timeseries/util.py +1 -2
- {volue_insight_timeseries-1.4.0.dist-info → volue_insight_timeseries-1.4.1rc0.dist-info}/METADATA +1 -2
- volue_insight_timeseries-1.4.1rc0.dist-info/RECORD +12 -0
- volue_insight_timeseries-1.4.0.dist-info/RECORD +0 -12
- {volue_insight_timeseries-1.4.0.dist-info → volue_insight_timeseries-1.4.1rc0.dist-info}/LICENSE +0 -0
- {volue_insight_timeseries-1.4.0.dist-info → volue_insight_timeseries-1.4.1rc0.dist-info}/WHEEL +0 -0
- {volue_insight_timeseries-1.4.0.dist-info → volue_insight_timeseries-1.4.1rc0.dist-info}/top_level.txt +0 -0
volue_insight_timeseries/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
1.4.
|
|
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
|
|
@@ -450,7 +449,7 @@ class Session(object):
|
|
|
450
449
|
databytes = None
|
|
451
450
|
if data is not None:
|
|
452
451
|
headers['content-type'] = 'application/json'
|
|
453
|
-
if isinstance(data,
|
|
452
|
+
if isinstance(data, str):
|
|
454
453
|
databytes = data.encode()
|
|
455
454
|
else:
|
|
456
455
|
databytes = json.dumps(data).encode()
|
|
@@ -475,7 +474,7 @@ class Session(object):
|
|
|
475
474
|
|
|
476
475
|
databytes = None
|
|
477
476
|
if data is not None:
|
|
478
|
-
if isinstance(data,
|
|
477
|
+
if isinstance(data, str):
|
|
479
478
|
databytes = data.encode()
|
|
480
479
|
else:
|
|
481
480
|
databytes = json.dumps(data).encode()
|
volue_insight_timeseries/util.py
CHANGED
|
@@ -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):
|
{volue_insight_timeseries-1.4.0.dist-info → volue_insight_timeseries-1.4.1rc0.dist-info}/METADATA
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: volue-insight-timeseries
|
|
3
|
-
Version: 1.4.
|
|
3
|
+
Version: 1.4.1rc0
|
|
4
4
|
Summary: Volue Insight API python library
|
|
5
5
|
Home-page: https://www.volueinsight.com
|
|
6
6
|
Author: Volue Insight
|
|
@@ -10,6 +10,5 @@ License-File: LICENSE
|
|
|
10
10
|
Requires-Dist: requests>=2.18
|
|
11
11
|
Requires-Dist: sseclient-py>=1.7
|
|
12
12
|
Requires-Dist: pandas>=1.5.0
|
|
13
|
-
Requires-Dist: future>=0.16
|
|
14
13
|
|
|
15
14
|
This library is meant as a simple toolkit for working with data from https://api.volueinsight.com/ (or equivalent services). Note that access is based on some sort of login credentials, this library is not all that useful unless you have a valid Volue Insight account.
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
volue_insight_timeseries/VERSION,sha256=RZ49icJ8iMiDymrI6SPPIM1HFEWvW7XqvApZrfMBwDY,9
|
|
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=VN6EVuaLg-6QqIKLnCbGq0-vbe_rTd5FPu8irZoDxfo,65901
|
|
5
|
+
volue_insight_timeseries/events.py,sha256=E6-rCbrmYR9_-CNZLC94e_6D3jxhryShNcYRB99WBQE,4192
|
|
6
|
+
volue_insight_timeseries/session.py,sha256=Ml-6V_HcPD5v5xkiqWqhwcDlylgRH4GfTee_HS8JDHY,20281
|
|
7
|
+
volue_insight_timeseries/util.py,sha256=oYoD86-mHMAWkkEQlIjaTH73Oecu4HlvllvwjuB2BFA,10451
|
|
8
|
+
volue_insight_timeseries-1.4.1rc0.dist-info/LICENSE,sha256=QW5nSxE0LozNpYWdyJm_0hco_PidycTnelwYzKdW7ZM,1069
|
|
9
|
+
volue_insight_timeseries-1.4.1rc0.dist-info/METADATA,sha256=rvRZf87j-8dDtI09fF3gbwaw3iE5D4-WLbQ302LkGc0,632
|
|
10
|
+
volue_insight_timeseries-1.4.1rc0.dist-info/WHEEL,sha256=tZoeGjtWxWRfdplE7E3d45VPlLNQnvbKiYnx7gwAy8A,92
|
|
11
|
+
volue_insight_timeseries-1.4.1rc0.dist-info/top_level.txt,sha256=IxOCIoqzMAV5gS4n6CIoRW9kBZnKQHyUPlDuJpEXmNY,25
|
|
12
|
+
volue_insight_timeseries-1.4.1rc0.dist-info/RECORD,,
|
|
@@ -1,12 +0,0 @@
|
|
|
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,,
|
{volue_insight_timeseries-1.4.0.dist-info → volue_insight_timeseries-1.4.1rc0.dist-info}/LICENSE
RENAMED
|
File without changes
|
{volue_insight_timeseries-1.4.0.dist-info → volue_insight_timeseries-1.4.1rc0.dist-info}/WHEEL
RENAMED
|
File without changes
|
|
File without changes
|