aepp 0.5.0__py3-none-any.whl → 0.5.0.post1__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.
- aepp/__version__.py +1 -1
- aepp/cli/__main__.py +18 -8
- {aepp-0.5.0.dist-info → aepp-0.5.0.post1.dist-info}/METADATA +1 -1
- {aepp-0.5.0.dist-info → aepp-0.5.0.post1.dist-info}/RECORD +8 -8
- {aepp-0.5.0.dist-info → aepp-0.5.0.post1.dist-info}/WHEEL +0 -0
- {aepp-0.5.0.dist-info → aepp-0.5.0.post1.dist-info}/entry_points.txt +0 -0
- {aepp-0.5.0.dist-info → aepp-0.5.0.post1.dist-info}/licenses/LICENSE +0 -0
- {aepp-0.5.0.dist-info → aepp-0.5.0.post1.dist-info}/top_level.txt +0 -0
aepp/__version__.py
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
__version__ = "0.5.0"
|
|
1
|
+
__version__ = "0.5.0-1"
|
aepp/cli/__main__.py
CHANGED
|
@@ -874,6 +874,8 @@ class ServiceShell(cmd.Cmd):
|
|
|
874
874
|
runs_by_flow[flow_id]["failed_runs"] += 1
|
|
875
875
|
elif status == "success":
|
|
876
876
|
runs_by_flow[flow_id]["success_runs"] += 1
|
|
877
|
+
elif status == "partialSuccess":
|
|
878
|
+
runs_by_flow[flow_id]["partial_success"] += 1
|
|
877
879
|
report_flows = []
|
|
878
880
|
for fl in list_flows:
|
|
879
881
|
obj = {
|
|
@@ -901,6 +903,7 @@ class ServiceShell(cmd.Cmd):
|
|
|
901
903
|
obj["Total Runs"] = run_info.get("total_runs",0)
|
|
902
904
|
obj["Failed Runs"] = run_info.get("failed_runs",0)
|
|
903
905
|
obj["Successful Runs"] = run_info.get("success_runs",0)
|
|
906
|
+
obj["Partial Success Runs"] = run_info.get("partial_success",0)
|
|
904
907
|
report_flows.append(obj)
|
|
905
908
|
df_flows = pd.DataFrame(list_flows)
|
|
906
909
|
filename = f"{self.config.sandbox}_flows_{timereference/1000}"
|
|
@@ -915,19 +918,21 @@ class ServiceShell(cmd.Cmd):
|
|
|
915
918
|
table = Table(title=f"Flows in Sandbox: {self.config.sandbox}")
|
|
916
919
|
table.add_column("ID", style="cyan")
|
|
917
920
|
table.add_column("Name", style="magenta")
|
|
918
|
-
table.add_column("Created", style="white")
|
|
919
921
|
table.add_column("Type", style="white")
|
|
920
|
-
table.add_column("Transformation", style="white")
|
|
921
922
|
if args.advanced == False:
|
|
923
|
+
table.add_column("Created", style="white")
|
|
924
|
+
table.add_column("Transformation", style="white")
|
|
922
925
|
table.add_column("Flow Spec", style="white")
|
|
923
926
|
table.add_column("Source Conn ID", style="white")
|
|
924
927
|
table.add_column("Target Conn ID", style="white")
|
|
925
928
|
if args.advanced:
|
|
926
929
|
table.add_column("Total Runs", style="blue")
|
|
927
|
-
table.add_column("
|
|
928
|
-
table.add_column("
|
|
930
|
+
table.add_column("Successful", style="green")
|
|
931
|
+
table.add_column("Failed", style="red")
|
|
932
|
+
table.add_columns("Partial Success", style='orange')
|
|
929
933
|
table.add_column("Success Rate", style="green")
|
|
930
934
|
table.add_column("Failure Rate", style="red")
|
|
935
|
+
|
|
931
936
|
for fl in report_flows:
|
|
932
937
|
row_data = []
|
|
933
938
|
if args.advanced:
|
|
@@ -943,26 +948,31 @@ class ServiceShell(cmd.Cmd):
|
|
|
943
948
|
row_data = [
|
|
944
949
|
f"{colorStart}{fl.get('id','N/A')}{colorEnd}",
|
|
945
950
|
f"{colorStart}{fl.get('name','N/A')}{colorEnd}",
|
|
946
|
-
f"{colorStart}{datetime.fromtimestamp(fl.get('created',1000)/1000).isoformat().split('T')[0]}{colorEnd}",
|
|
947
951
|
f"{colorStart}{fl.get('type','N/A')}{colorEnd}",
|
|
948
|
-
f"{colorStart}{str(fl.get('Transformation', False))}{colorEnd}",
|
|
949
952
|
]
|
|
950
953
|
if args.advanced == False:
|
|
951
954
|
row_data.extend([
|
|
955
|
+
f"{colorStart}{datetime.fromtimestamp(fl.get('created',1000)/1000).isoformat().split('T')[0]}{colorEnd}",
|
|
956
|
+
f"{colorStart}{str(fl.get('Transformation', False))}{colorEnd}",
|
|
952
957
|
f"{colorStart}{fl.get('flowSpec','N/A')}{colorEnd}",
|
|
953
958
|
f"{colorStart}{fl.get('sourceConnectionId','N/A')}{colorEnd}",
|
|
954
959
|
f"{colorStart}{fl.get('targetConnectionId','N/A')}{colorEnd}",
|
|
955
960
|
])
|
|
956
961
|
if args.advanced:
|
|
957
962
|
total_runs = fl.get("Total Runs", 0)
|
|
958
|
-
failed_runs = fl.get("Failed Runs", 0)
|
|
959
963
|
successful_runs = fl.get("Successful Runs", 0)
|
|
964
|
+
failed_runs = fl.get("Failed Runs", 0)
|
|
965
|
+
partial_success = fl.get('Partial Success Runs',0)
|
|
966
|
+
if partialpartial_success>0:
|
|
967
|
+
partialColorStart = "[orange]"
|
|
968
|
+
partialColorEnd = "[/orange]"
|
|
960
969
|
success_rate = (successful_runs / total_runs * 100) if total_runs > 0 else 0
|
|
961
970
|
failure_rate = (failed_runs / total_runs * 100) if total_runs > 0 else 0
|
|
962
971
|
row_data.extend([
|
|
963
972
|
f"{colorStart}{str(total_runs)}{colorEnd}",
|
|
964
|
-
f"{colorStart}{str(failed_runs)}{colorEnd}",
|
|
965
973
|
f"{colorStart}{str(successful_runs)}{colorEnd}",
|
|
974
|
+
f"{colorStart}{str(failed_runs)}{colorEnd}",
|
|
975
|
+
f"{partialColorStart}{str(partial_success)}{partialColorEnd}"
|
|
966
976
|
f"{colorStart}{success_rate:.0f}%{colorEnd}",
|
|
967
977
|
f"{colorStart}{failure_rate:.0f}%{colorEnd}"
|
|
968
978
|
])
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
aepp/__init__.py,sha256=tKlipgknDl84iALUNgR9mktILF3gSk1GgMUw_Gg-HXE,27912
|
|
2
|
-
aepp/__version__.py,sha256=
|
|
2
|
+
aepp/__version__.py,sha256=xWPCQGgNpIluAS53pZta25zFqYhwH0Pe4Cxy8U-jqjY,23
|
|
3
3
|
aepp/accesscontrol.py,sha256=PB3FcrO4bvDjdNxjHx7p_20hp4ahBXewoOSxuTGMXC8,17423
|
|
4
4
|
aepp/catalog.py,sha256=hK9m3SAP0fhgkYqu14Tcfq14qBhw54tLCOF0mH31b1M,68237
|
|
5
5
|
aepp/classmanager.py,sha256=CTYGkg5ygB8HtRia6DfT9WLBqXJOVg7pSM9jBB25Bqw,64707
|
|
@@ -35,10 +35,10 @@ aepp/synchronizer.py,sha256=iG-E--HcxXFIW046Jzu4NAexcAoIAZOOWK4X_ra_9zg,77960
|
|
|
35
35
|
aepp/tags.py,sha256=t2qBallTcWR4IOXcDBmrPpqjbSay1z3E2bcRijzVm1s,17641
|
|
36
36
|
aepp/utils.py,sha256=tG-YVXylm38-bynqfp5N_Mzyo7mhlZj-dLo7wLoO4tM,1200
|
|
37
37
|
aepp/cli/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
38
|
-
aepp/cli/__main__.py,sha256=
|
|
39
|
-
aepp-0.5.0.dist-info/licenses/LICENSE,sha256=HjYTlfne3BbS5gNHzNqJ5COCiTQLUdf87QkzRyFbE4Y,10337
|
|
40
|
-
aepp-0.5.0.dist-info/METADATA,sha256=
|
|
41
|
-
aepp-0.5.0.dist-info/WHEEL,sha256=qELbo2s1Yzl39ZmrAibXA2jjPLUYfnVhUNTlyF1rq0Y,92
|
|
42
|
-
aepp-0.5.0.dist-info/entry_points.txt,sha256=e7HAumUTymoUiCuVRzFlcchennUBLcjxvuiimySF98Y,48
|
|
43
|
-
aepp-0.5.0.dist-info/top_level.txt,sha256=dtZJI8SzhWVgZRl68PHKZX_fD6amvDiFR-lqD9FSJvE,5
|
|
44
|
-
aepp-0.5.0.dist-info/RECORD,,
|
|
38
|
+
aepp/cli/__main__.py,sha256=rXFgg2kcTkA4H-yy0EJzo-ekmX3Qh6PJt_jx-xXwI5c,66090
|
|
39
|
+
aepp-0.5.0.post1.dist-info/licenses/LICENSE,sha256=HjYTlfne3BbS5gNHzNqJ5COCiTQLUdf87QkzRyFbE4Y,10337
|
|
40
|
+
aepp-0.5.0.post1.dist-info/METADATA,sha256=3ivVWTkX_kawF85OCxZksdLbfZBdG5p3zy1owaSDSaA,5317
|
|
41
|
+
aepp-0.5.0.post1.dist-info/WHEEL,sha256=qELbo2s1Yzl39ZmrAibXA2jjPLUYfnVhUNTlyF1rq0Y,92
|
|
42
|
+
aepp-0.5.0.post1.dist-info/entry_points.txt,sha256=e7HAumUTymoUiCuVRzFlcchennUBLcjxvuiimySF98Y,48
|
|
43
|
+
aepp-0.5.0.post1.dist-info/top_level.txt,sha256=dtZJI8SzhWVgZRl68PHKZX_fD6amvDiFR-lqD9FSJvE,5
|
|
44
|
+
aepp-0.5.0.post1.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|