upgini 1.1.133a5__py3-none-any.whl → 1.1.133a6__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.

@@ -71,12 +71,13 @@ def get_track_metrics() -> dict:
71
71
  # default values
72
72
  track = {"ide": _get_execution_ide()}
73
73
  ident_res = "https://api.ipify.org"
74
+
74
75
  try:
75
- track["ip"] = get(ident_res).text
76
- track["visitorId"] = sha256(str(getnode()).encode()).hexdigest()
77
76
  track["hostname"] = socket.gethostname()
78
77
  track["whoami"] = getuser()
79
78
  except Exception as e:
79
+ track["hostname"] = "localhost"
80
+ track["whoami"] = "root"
80
81
  track["err"] = str(e)
81
82
  # get real info depending on ide
82
83
 
@@ -137,5 +138,11 @@ def get_track_metrics() -> dict:
137
138
  track["err"] = str(e)
138
139
  track["ip"] = "0.0.0.0"
139
140
  track["visitorId"] = "None"
141
+ else:
142
+ try:
143
+ track["ip"] = get(ident_res).text
144
+ track["visitorId"] = sha256(str(getnode()).encode()).hexdigest()
145
+ except Exception as e:
146
+ track["err"] = str(e)
140
147
 
141
148
  return track
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: upgini
3
- Version: 1.1.133a5
3
+ Version: 1.1.133a6
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=-dpqGpwQqptZ0DuIxojbsCquz0aCRpeRmmhO_KbPMxc,4690
40
+ upgini/utils/track_info.py,sha256=vZqhtXJWufozAdUYBMpR8yTXMtI8qtmEGLwiiH8wwc4,4860
41
41
  upgini/utils/warning_counter.py,sha256=vnmdFo5-7GBkU2bK9h_uC0K0Y_wtfcYstxOdeRfacO0,228
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,,
42
+ upgini-1.1.133a6.dist-info/LICENSE,sha256=5RRzgvdJUu3BUDfv4bzVU6FqKgwHlIay63pPCSmSgzw,1514
43
+ upgini-1.1.133a6.dist-info/METADATA,sha256=UDOpRi67lSbY0D_c12YD0JQnxnzMdKNkt21RBtNOCyU,43262
44
+ upgini-1.1.133a6.dist-info/WHEEL,sha256=G16H4A3IeoQmnOrYV4ueZGKSjhipXx8zc8nu9FGlvMA,92
45
+ upgini-1.1.133a6.dist-info/top_level.txt,sha256=OFhTGiDIWKl5gFI49qvWq1R9IKflPaE2PekcbDXDtx4,7
46
+ upgini-1.1.133a6.dist-info/RECORD,,