upgini 1.1.133a3__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.

@@ -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
- with futures.ThreadPoolExecutor() as executor:
58
+ with futures.ProcessPoolExecutor() as executor:
55
59
  future = executor.submit(get_track_metrics)
56
60
  try:
57
- return future.result(timeout_seconds)
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
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: upgini
3
- Version: 1.1.133a3
3
+ Version: 1.1.133a5
4
4
  Summary: Intelligent data search & enrichment for Machine Learning
5
5
  Home-page: https://upgini.com/
6
6
  Author: Upgini Developers
@@ -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=4hyydFv6pUGy-AT9fihZVm8I9LB3WMhUKG5QXMee6yw,4669
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.133a3.dist-info/LICENSE,sha256=5RRzgvdJUu3BUDfv4bzVU6FqKgwHlIay63pPCSmSgzw,1514
43
- upgini-1.1.133a3.dist-info/METADATA,sha256=iF0UihIXjfVXAx54QreaGjll2pypmmJQFn9R3gq09jk,43262
44
- upgini-1.1.133a3.dist-info/WHEEL,sha256=G16H4A3IeoQmnOrYV4ueZGKSjhipXx8zc8nu9FGlvMA,92
45
- upgini-1.1.133a3.dist-info/top_level.txt,sha256=OFhTGiDIWKl5gFI49qvWq1R9IKflPaE2PekcbDXDtx4,7
46
- upgini-1.1.133a3.dist-info/RECORD,,
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,,