qe-api-client 2.8.0__py3-none-any.whl → 3.0.0__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.
- qe_api_client/api_classes/engine_app_api.py +132 -51
- qe_api_client/api_classes/engine_generic_object_api.py +45 -6
- qe_api_client/engine.py +1256 -9
- qe_api_client/structs.py +109 -1
- {qe_api_client-2.8.0.dist-info → qe_api_client-3.0.0.dist-info}/METADATA +1 -1
- {qe_api_client-2.8.0.dist-info → qe_api_client-3.0.0.dist-info}/RECORD +9 -9
- {qe_api_client-2.8.0.dist-info → qe_api_client-3.0.0.dist-info}/WHEEL +0 -0
- {qe_api_client-2.8.0.dist-info → qe_api_client-3.0.0.dist-info}/licenses/LICENSE +0 -0
- {qe_api_client-2.8.0.dist-info → qe_api_client-3.0.0.dist-info}/top_level.txt +0 -0
qe_api_client/structs.py
CHANGED
@@ -565,4 +565,112 @@ def gradient(colors: list = None, break_types: list = None, limits: list = None,
|
|
565
565
|
break_types = [False]
|
566
566
|
if limits is None:
|
567
567
|
limits = [0.5]
|
568
|
-
return {"colors": colors, "breakTypes": break_types, "limits": limits, "limitType": limit_type}
|
568
|
+
return {"colors": colors, "breakTypes": break_types, "limits": limits, "limitType": limit_type}
|
569
|
+
|
570
|
+
|
571
|
+
def static_content_url_def(url: str = None):
|
572
|
+
if url is None:
|
573
|
+
return {}
|
574
|
+
else:
|
575
|
+
return {"qUrl": url}
|
576
|
+
|
577
|
+
|
578
|
+
def story_properties(title: str = "", description: str = "", extends_id: str = "", state_name: str = "", rank: int = 0,
|
579
|
+
thumbnail_url: str = None):
|
580
|
+
|
581
|
+
info = nx_info(obj_type="story")
|
582
|
+
prop_def = {"title": title, "description": description}
|
583
|
+
if thumbnail_url is None:
|
584
|
+
thumbnail = {"qStaticContentUrlDef": static_content_url_def()}
|
585
|
+
else:
|
586
|
+
thumbnail = {"qStaticContentUrlDef": static_content_url_def(url=thumbnail_url)}
|
587
|
+
child_list_def = {"qData": {"title": "/title", "rank": "/rank"}}
|
588
|
+
|
589
|
+
return {
|
590
|
+
"qInfo": info, "qExtendsId": extends_id, "qMetaDef": prop_def, "qStateName": state_name, "rank": rank,
|
591
|
+
"thumbnail": thumbnail, "qChildListDef": child_list_def
|
592
|
+
}
|
593
|
+
|
594
|
+
|
595
|
+
def slide_properties(extends_id: str = "", prop_def: dict = None, state_name: str = ""):
|
596
|
+
|
597
|
+
if prop_def is None:
|
598
|
+
prop_def = {}
|
599
|
+
info = nx_info(obj_type="slide")
|
600
|
+
child_list_def = {"qData": {"title": "/title", "sheetId": "/sheetId", "ratio": "/ratio", "position": "/position",
|
601
|
+
"dataPath": "/dataPath", "srcPath": "/srcPath", "visualization": "/visualization",
|
602
|
+
"visualizationType": "/visualizationType", "style": "/style"}}
|
603
|
+
|
604
|
+
return {
|
605
|
+
"qInfo": info, "qExtendsId": extends_id, "qMetaDef": prop_def, "qStateName": state_name, "qChildListDef": child_list_def
|
606
|
+
}
|
607
|
+
|
608
|
+
|
609
|
+
def slideitem_text_properties(ratio: bool = True, position_top: str = "3.69985%", position_left: str = "31.25000%",
|
610
|
+
position_width: str = "39.57903%", position_height: str = "11.28086%",
|
611
|
+
position_z_index: int = 1, position_right: str = "auto",
|
612
|
+
visualization_type: str = "", style_color: str = "#6E6E6E",
|
613
|
+
style_text: str = ""):
|
614
|
+
|
615
|
+
position = {"top": position_top, "left": position_left, "width": position_width, "height": position_height,
|
616
|
+
"z-index": position_z_index, "right": position_right}
|
617
|
+
info = nx_info(obj_type="slideitem")
|
618
|
+
|
619
|
+
return {
|
620
|
+
"qInfo": info, "qExtendsId": "", "qMetaDef": {}, "qStateName": "",
|
621
|
+
"qEmbeddedSnapshotDef": {}, "title": "", "sheetId": "", "ratio": ratio,
|
622
|
+
"position": position, "visualization": "text", "visualizationType": visualization_type,
|
623
|
+
"style": {"color": style_color, "text": style_text}
|
624
|
+
}
|
625
|
+
|
626
|
+
|
627
|
+
def slideitem_shape_properties(ratio: bool = True, position_top: str = "3.69985%", position_left: str = "31.25000%",
|
628
|
+
position_width: str = "39.57903%", position_height: str = "11.28086%",
|
629
|
+
position_z_index: int = 1, position_right: str = "auto",
|
630
|
+
visualization_type: str = "", style_color: str = "#000000"):
|
631
|
+
|
632
|
+
position = {"top": position_top, "left": position_left, "width": position_width, "height": position_height,
|
633
|
+
"z-index": position_z_index, "right": position_right}
|
634
|
+
info = nx_info(obj_type="slideitem")
|
635
|
+
|
636
|
+
return {
|
637
|
+
"qInfo": info, "qExtendsId": "", "qMetaDef": {}, "qStateName": "",
|
638
|
+
"qEmbeddedSnapshotDef": {}, "title": "", "sheetId": "", "ratio": ratio,
|
639
|
+
"position": position, "dataPath": "../resources/img/storytelling/shapes/" + visualization_type + ".svg",
|
640
|
+
"visualization": "shape", "visualizationType": visualization_type,
|
641
|
+
"style": {"color": style_color, "colorPaletteIndex": -1}
|
642
|
+
}
|
643
|
+
|
644
|
+
|
645
|
+
def slideitem_snapshot_properties(snapshot_id: str, visualization_type: str, ratio: bool = True,
|
646
|
+
position_top: str = "14.81481%", position_left: str = "2.08333%",
|
647
|
+
position_width: str = "95.83334%", position_height: str = "81.4814875%",
|
648
|
+
position_z_index: int = 1):
|
649
|
+
|
650
|
+
position = {"top": position_top, "left": position_left, "width": position_width, "height": position_height,
|
651
|
+
"z-index": position_z_index}
|
652
|
+
info = nx_info(obj_type="slideitem")
|
653
|
+
|
654
|
+
return {
|
655
|
+
"qInfo": info, "qExtendsId": "", "qMetaDef": {}, "qStateName": "", "qEmbeddedSnapshotDef": {}, "title": "",
|
656
|
+
"sheetId": "", "ratio": ratio, "position": position, "visualization": "snapshot",
|
657
|
+
"visualizationType": visualization_type, "style": {"id": snapshot_id}
|
658
|
+
}
|
659
|
+
|
660
|
+
|
661
|
+
def nx_get_bookmark_options(types: list, data: dict = None):
|
662
|
+
if data is None:
|
663
|
+
data = {}
|
664
|
+
return {
|
665
|
+
"qTypes": types, "qData": data
|
666
|
+
}
|
667
|
+
|
668
|
+
|
669
|
+
def options(types: list, include_session_objects: bool = False, data: dict = None):
|
670
|
+
if data is None:
|
671
|
+
data = {}
|
672
|
+
return {
|
673
|
+
"qTypes": types,
|
674
|
+
"qIncludeSessionObjects": include_session_objects,
|
675
|
+
"qData": data
|
676
|
+
}
|
@@ -1,17 +1,17 @@
|
|
1
1
|
qe_api_client/__init__.py,sha256=bypB4CIjpHtf5Pu_NwtJajC69zqQD7qB9jo8cCX0B54,23
|
2
|
-
qe_api_client/engine.py,sha256=
|
2
|
+
qe_api_client/engine.py,sha256=fgiJfVtCqHi1ui-AQRaXxLd9RYkCK0rJmsHaXy4PoPE,120634
|
3
3
|
qe_api_client/engine_communicator.py,sha256=q6x7ix2Ev8yGmTTm7cf1vHcidOihKM0HjDXeJ-dZYjk,1133
|
4
|
-
qe_api_client/structs.py,sha256=
|
4
|
+
qe_api_client/structs.py,sha256=uk82M1neq9svTw-XVEJzwGxDxeALueGAcp1fG-LjTTA,28327
|
5
5
|
qe_api_client/api_classes/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
6
|
-
qe_api_client/api_classes/engine_app_api.py,sha256=
|
6
|
+
qe_api_client/api_classes/engine_app_api.py,sha256=brTmeUs2o2J8QP2BmGdI4kLP_MVGUZVoB4PPkwAJyec,40773
|
7
7
|
qe_api_client/api_classes/engine_field_api.py,sha256=zCLIR7rmxqwIrJYK_-uHVEhMvBcEP2qofuX8ZPygqCA,5479
|
8
8
|
qe_api_client/api_classes/engine_generic_dimension_api.py,sha256=oSZoRT-j4hsCVnUm1OSg7XZPWXhUzFLY_53kM0KwPHs,2122
|
9
9
|
qe_api_client/api_classes/engine_generic_measure_api.py,sha256=uj4i_ykX9F9Dtk78fOidMBhzSP8vEucEfrB6MrLwgPI,1340
|
10
|
-
qe_api_client/api_classes/engine_generic_object_api.py,sha256=
|
10
|
+
qe_api_client/api_classes/engine_generic_object_api.py,sha256=_69Pf-Tp5vRB_LX76uQr8x03DstS_OOBVVw8h-9nwlA,12345
|
11
11
|
qe_api_client/api_classes/engine_generic_variable_api.py,sha256=sWXZpE-GLfcMijmfORnDNrJ6lmXX3x5TRHlkEu_i0BQ,2027
|
12
12
|
qe_api_client/api_classes/engine_global_api.py,sha256=G6QQHI36WOo7W25zg4Uz__gMSLC2ptNTvbBdElPzgZI,27535
|
13
|
-
qe_api_client-
|
14
|
-
qe_api_client-
|
15
|
-
qe_api_client-
|
16
|
-
qe_api_client-
|
17
|
-
qe_api_client-
|
13
|
+
qe_api_client-3.0.0.dist-info/licenses/LICENSE,sha256=2bm9uFabQZ3Ykb_SaSU_uUbAj2-htc6WJQmS_65qD00,1073
|
14
|
+
qe_api_client-3.0.0.dist-info/METADATA,sha256=_r4JQhzHNd-VmHfuc-wFziIySkZ9Rez7qsoA16KvsZo,2437
|
15
|
+
qe_api_client-3.0.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
16
|
+
qe_api_client-3.0.0.dist-info/top_level.txt,sha256=m_43YagP8UtZgJHmZEfu0vlBNwt36M01-Qby2jByMnk,14
|
17
|
+
qe_api_client-3.0.0.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|