upgini 1.1.133a4__py3-none-any.whl → 1.1.133a5__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 upgini might be problematic. Click here for more details.
- upgini/utils/track_info.py +6 -6
- {upgini-1.1.133a4.dist-info → upgini-1.1.133a5.dist-info}/METADATA +1 -1
- {upgini-1.1.133a4.dist-info → upgini-1.1.133a5.dist-info}/RECORD +6 -6
- {upgini-1.1.133a4.dist-info → upgini-1.1.133a5.dist-info}/LICENSE +0 -0
- {upgini-1.1.133a4.dist-info → upgini-1.1.133a5.dist-info}/WHEEL +0 -0
- {upgini-1.1.133a4.dist-info → upgini-1.1.133a5.dist-info}/top_level.txt +0 -0
upgini/utils/track_info.py
CHANGED
|
@@ -50,11 +50,16 @@ track_metrics: Optional[dict] = None
|
|
|
50
50
|
|
|
51
51
|
|
|
52
52
|
def get_track_metrics_with_timeout(timeout_seconds: int = 10) -> dict:
|
|
53
|
+
global track_metrics
|
|
54
|
+
if track_metrics is not None:
|
|
55
|
+
return track_metrics
|
|
56
|
+
|
|
53
57
|
try:
|
|
54
58
|
with futures.ProcessPoolExecutor() as executor:
|
|
55
59
|
future = executor.submit(get_track_metrics)
|
|
56
60
|
try:
|
|
57
|
-
|
|
61
|
+
track_metrics = future.result(timeout_seconds)
|
|
62
|
+
return track_metrics
|
|
58
63
|
except futures.TimeoutError:
|
|
59
64
|
executor.shutdown(wait=False)
|
|
60
65
|
return dict()
|
|
@@ -63,10 +68,6 @@ def get_track_metrics_with_timeout(timeout_seconds: int = 10) -> dict:
|
|
|
63
68
|
|
|
64
69
|
|
|
65
70
|
def get_track_metrics() -> dict:
|
|
66
|
-
global track_metrics
|
|
67
|
-
if track_metrics is not None:
|
|
68
|
-
return track_metrics
|
|
69
|
-
|
|
70
71
|
# default values
|
|
71
72
|
track = {"ide": _get_execution_ide()}
|
|
72
73
|
ident_res = "https://api.ipify.org"
|
|
@@ -137,5 +138,4 @@ def get_track_metrics() -> dict:
|
|
|
137
138
|
track["ip"] = "0.0.0.0"
|
|
138
139
|
track["visitorId"] = "None"
|
|
139
140
|
|
|
140
|
-
track_metrics = track
|
|
141
141
|
return track
|
|
@@ -37,10 +37,10 @@ upgini/utils/format.py,sha256=Yv5cvvSs2bOLUzzNu96Pu33VMDNbabio92QepUj41jU,243
|
|
|
37
37
|
upgini/utils/phone_utils.py,sha256=JNSkF8G6mgsN8Czy11pamaJdsY6rBINEMpi7jbVt_RA,408
|
|
38
38
|
upgini/utils/postal_code_utils.py,sha256=_8CR9tBqsPptQsmMUvnrCAmBaMIQSWH3JfJ4ly3x_zs,409
|
|
39
39
|
upgini/utils/target_utils.py,sha256=3eHrDy_Dc9ozuOwHGnGA705m9glCxKmjB-DfLrflqiA,1370
|
|
40
|
-
upgini/utils/track_info.py,sha256
|
|
40
|
+
upgini/utils/track_info.py,sha256=-dpqGpwQqptZ0DuIxojbsCquz0aCRpeRmmhO_KbPMxc,4690
|
|
41
41
|
upgini/utils/warning_counter.py,sha256=vnmdFo5-7GBkU2bK9h_uC0K0Y_wtfcYstxOdeRfacO0,228
|
|
42
|
-
upgini-1.1.
|
|
43
|
-
upgini-1.1.
|
|
44
|
-
upgini-1.1.
|
|
45
|
-
upgini-1.1.
|
|
46
|
-
upgini-1.1.
|
|
42
|
+
upgini-1.1.133a5.dist-info/LICENSE,sha256=5RRzgvdJUu3BUDfv4bzVU6FqKgwHlIay63pPCSmSgzw,1514
|
|
43
|
+
upgini-1.1.133a5.dist-info/METADATA,sha256=_luiGnYBOdF931-HJV4-uzjsyiuRymp_x5NgqtmyGAo,43262
|
|
44
|
+
upgini-1.1.133a5.dist-info/WHEEL,sha256=G16H4A3IeoQmnOrYV4ueZGKSjhipXx8zc8nu9FGlvMA,92
|
|
45
|
+
upgini-1.1.133a5.dist-info/top_level.txt,sha256=OFhTGiDIWKl5gFI49qvWq1R9IKflPaE2PekcbDXDtx4,7
|
|
46
|
+
upgini-1.1.133a5.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|