wizata-dsapi 1.1.48__tar.gz → 1.2.2__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.
- {wizata_dsapi-1.1.48 → wizata_dsapi-1.2.2}/PKG-INFO +1 -1
- {wizata_dsapi-1.1.48 → wizata_dsapi-1.2.2}/wizata_dsapi/__init__.py +2 -1
- {wizata_dsapi-1.1.48 → wizata_dsapi-1.2.2}/wizata_dsapi/dataframe_toolkit.py +2 -1
- {wizata_dsapi-1.1.48 → wizata_dsapi-1.2.2}/wizata_dsapi/streamlit_utils.py +22 -2
- wizata_dsapi-1.2.2/wizata_dsapi/version.py +1 -0
- {wizata_dsapi-1.1.48 → wizata_dsapi-1.2.2}/wizata_dsapi.egg-info/PKG-INFO +1 -1
- wizata_dsapi-1.1.48/wizata_dsapi/version.py +0 -1
- {wizata_dsapi-1.1.48 → wizata_dsapi-1.2.2}/LICENSE.txt +0 -0
- {wizata_dsapi-1.1.48 → wizata_dsapi-1.2.2}/README.rst +0 -0
- {wizata_dsapi-1.1.48 → wizata_dsapi-1.2.2}/setup.cfg +0 -0
- {wizata_dsapi-1.1.48 → wizata_dsapi-1.2.2}/setup.py +0 -0
- {wizata_dsapi-1.1.48 → wizata_dsapi-1.2.2}/wizata_dsapi/api_config.py +0 -0
- {wizata_dsapi-1.1.48 → wizata_dsapi-1.2.2}/wizata_dsapi/api_dto.py +0 -0
- {wizata_dsapi-1.1.48 → wizata_dsapi-1.2.2}/wizata_dsapi/api_interface.py +0 -0
- {wizata_dsapi-1.1.48 → wizata_dsapi-1.2.2}/wizata_dsapi/bucket.py +0 -0
- {wizata_dsapi-1.1.48 → wizata_dsapi-1.2.2}/wizata_dsapi/business_label.py +0 -0
- {wizata_dsapi-1.1.48 → wizata_dsapi-1.2.2}/wizata_dsapi/context.py +0 -0
- {wizata_dsapi-1.1.48 → wizata_dsapi-1.2.2}/wizata_dsapi/datapoint.py +0 -0
- {wizata_dsapi-1.1.48 → wizata_dsapi-1.2.2}/wizata_dsapi/datastore.py +0 -0
- {wizata_dsapi-1.1.48 → wizata_dsapi-1.2.2}/wizata_dsapi/ds_dataframe.py +0 -0
- {wizata_dsapi-1.1.48 → wizata_dsapi-1.2.2}/wizata_dsapi/dsapi_json_encoder.py +0 -0
- {wizata_dsapi-1.1.48 → wizata_dsapi-1.2.2}/wizata_dsapi/evaluation.py +0 -0
- {wizata_dsapi-1.1.48 → wizata_dsapi-1.2.2}/wizata_dsapi/execution.py +0 -0
- {wizata_dsapi-1.1.48 → wizata_dsapi-1.2.2}/wizata_dsapi/experiment.py +0 -0
- {wizata_dsapi-1.1.48 → wizata_dsapi-1.2.2}/wizata_dsapi/group_system.py +0 -0
- {wizata_dsapi-1.1.48 → wizata_dsapi-1.2.2}/wizata_dsapi/ilogger.py +0 -0
- {wizata_dsapi-1.1.48 → wizata_dsapi-1.2.2}/wizata_dsapi/insight.py +0 -0
- {wizata_dsapi-1.1.48 → wizata_dsapi-1.2.2}/wizata_dsapi/mlmodel.py +0 -0
- {wizata_dsapi-1.1.48 → wizata_dsapi-1.2.2}/wizata_dsapi/model_toolkit.py +0 -0
- {wizata_dsapi-1.1.48 → wizata_dsapi-1.2.2}/wizata_dsapi/models/__init__.py +0 -0
- {wizata_dsapi-1.1.48 → wizata_dsapi-1.2.2}/wizata_dsapi/models/common.py +0 -0
- {wizata_dsapi-1.1.48 → wizata_dsapi-1.2.2}/wizata_dsapi/paged_query_result.py +0 -0
- {wizata_dsapi-1.1.48 → wizata_dsapi-1.2.2}/wizata_dsapi/pipeline.py +0 -0
- {wizata_dsapi-1.1.48 → wizata_dsapi-1.2.2}/wizata_dsapi/pipeline_image.py +0 -0
- {wizata_dsapi-1.1.48 → wizata_dsapi-1.2.2}/wizata_dsapi/plot.py +0 -0
- {wizata_dsapi-1.1.48 → wizata_dsapi-1.2.2}/wizata_dsapi/plots/__init__.py +0 -0
- {wizata_dsapi-1.1.48 → wizata_dsapi-1.2.2}/wizata_dsapi/plots/common.py +0 -0
- {wizata_dsapi-1.1.48 → wizata_dsapi-1.2.2}/wizata_dsapi/request.py +0 -0
- {wizata_dsapi-1.1.48 → wizata_dsapi-1.2.2}/wizata_dsapi/script.py +0 -0
- {wizata_dsapi-1.1.48 → wizata_dsapi-1.2.2}/wizata_dsapi/scripts/__init__.py +0 -0
- {wizata_dsapi-1.1.48 → wizata_dsapi-1.2.2}/wizata_dsapi/scripts/common.py +0 -0
- {wizata_dsapi-1.1.48 → wizata_dsapi-1.2.2}/wizata_dsapi/solution_component.py +0 -0
- {wizata_dsapi-1.1.48 → wizata_dsapi-1.2.2}/wizata_dsapi/template.py +0 -0
- {wizata_dsapi-1.1.48 → wizata_dsapi-1.2.2}/wizata_dsapi/trigger.py +0 -0
- {wizata_dsapi-1.1.48 → wizata_dsapi-1.2.2}/wizata_dsapi/twin.py +0 -0
- {wizata_dsapi-1.1.48 → wizata_dsapi-1.2.2}/wizata_dsapi/twinregistration.py +0 -0
- {wizata_dsapi-1.1.48 → wizata_dsapi-1.2.2}/wizata_dsapi/wizard_function.py +0 -0
- {wizata_dsapi-1.1.48 → wizata_dsapi-1.2.2}/wizata_dsapi/wizard_request.py +0 -0
- {wizata_dsapi-1.1.48 → wizata_dsapi-1.2.2}/wizata_dsapi/wizata_dsapi_client.py +0 -0
- {wizata_dsapi-1.1.48 → wizata_dsapi-1.2.2}/wizata_dsapi/words.py +0 -0
- {wizata_dsapi-1.1.48 → wizata_dsapi-1.2.2}/wizata_dsapi.egg-info/SOURCES.txt +0 -0
- {wizata_dsapi-1.1.48 → wizata_dsapi-1.2.2}/wizata_dsapi.egg-info/dependency_links.txt +0 -0
- {wizata_dsapi-1.1.48 → wizata_dsapi-1.2.2}/wizata_dsapi.egg-info/requires.txt +0 -0
- {wizata_dsapi-1.1.48 → wizata_dsapi-1.2.2}/wizata_dsapi.egg-info/top_level.txt +0 -0
|
@@ -45,4 +45,5 @@ from .pipeline_image import PipelineImage
|
|
|
45
45
|
from .evaluation import Evaluation
|
|
46
46
|
|
|
47
47
|
# Streamlit utils
|
|
48
|
-
from .streamlit_utils import get_streamlit_token, get_streamlit_domain, get_streamlit_from, get_streamlit_to
|
|
48
|
+
from .streamlit_utils import (get_streamlit_token, get_streamlit_domain, get_streamlit_from, get_streamlit_to,
|
|
49
|
+
get_streamlit_twin_id)
|
|
@@ -260,7 +260,8 @@ def generate_epoch(formatted_string: str, now=None):
|
|
|
260
260
|
else:
|
|
261
261
|
timestamp = now
|
|
262
262
|
|
|
263
|
-
epoch = datetime.
|
|
263
|
+
epoch = datetime(1970, 1, 1, tzinfo=timezone.utc) # aware
|
|
264
|
+
timestamp = timestamp.astimezone(timezone.utc)
|
|
264
265
|
timestamp_ms = int((timestamp - epoch).total_seconds() * 1000)
|
|
265
266
|
return timestamp_ms
|
|
266
267
|
|
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
import sys
|
|
2
|
+
import uuid
|
|
3
|
+
from typing import Optional
|
|
4
|
+
from uuid import UUID
|
|
5
|
+
|
|
2
6
|
from .dataframe_toolkit import generate_epoch
|
|
3
7
|
|
|
4
8
|
|
|
@@ -8,6 +12,7 @@ def get_streamlit_token():
|
|
|
8
12
|
if st.query_params is not None and "auth_token" in st.query_params:
|
|
9
13
|
auth_token = st.query_params["auth_token"]
|
|
10
14
|
return auth_token
|
|
15
|
+
return None
|
|
11
16
|
|
|
12
17
|
|
|
13
18
|
def get_streamlit_domain():
|
|
@@ -16,9 +21,22 @@ def get_streamlit_domain():
|
|
|
16
21
|
if st.query_params is not None and "dsapi" in st.query_params:
|
|
17
22
|
domain = st.query_params["dsapi"]
|
|
18
23
|
return domain
|
|
24
|
+
return None
|
|
25
|
+
|
|
26
|
+
def get_streamlit_twin_id() -> Optional[UUID]:
|
|
27
|
+
"""
|
|
28
|
+
return current selected twin_id.
|
|
29
|
+
:return:
|
|
30
|
+
"""
|
|
31
|
+
if 'streamlit' in sys.modules:
|
|
32
|
+
st = sys.modules['streamlit']
|
|
33
|
+
if st.query_params is not None and "twin_id" in st.query_params:
|
|
34
|
+
twin_id = uuid.UUID(st.query_params["twin_id"])
|
|
35
|
+
return twin_id
|
|
36
|
+
return None
|
|
19
37
|
|
|
20
38
|
|
|
21
|
-
def get_streamlit_from() -> int:
|
|
39
|
+
def get_streamlit_from() -> Optional[int]:
|
|
22
40
|
"""
|
|
23
41
|
timestamp representation of from parameter on UI (ms)
|
|
24
42
|
:return:
|
|
@@ -31,9 +49,10 @@ def get_streamlit_from() -> int:
|
|
|
31
49
|
return generate_epoch(param)
|
|
32
50
|
else:
|
|
33
51
|
return int(param)
|
|
52
|
+
return None
|
|
34
53
|
|
|
35
54
|
|
|
36
|
-
def get_streamlit_to() -> int:
|
|
55
|
+
def get_streamlit_to() -> Optional[int]:
|
|
37
56
|
"""
|
|
38
57
|
timestamp representation of to parameter on UI (ms)
|
|
39
58
|
:return:
|
|
@@ -46,3 +65,4 @@ def get_streamlit_to() -> int:
|
|
|
46
65
|
return generate_epoch(param)
|
|
47
66
|
else:
|
|
48
67
|
return int(param)
|
|
68
|
+
return None
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = "1.2.2"
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
__version__ = "1.1.48"
|
|
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
|
|
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
|
|
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
|
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|