pyntcli 0.1.105__py3-none-any.whl → 0.1.106__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.
- pyntcli/__init__.py +1 -1
- pyntcli/analytics/send.py +10 -2
- {pyntcli-0.1.105.dist-info → pyntcli-0.1.106.dist-info}/METADATA +1 -1
- {pyntcli-0.1.105.dist-info → pyntcli-0.1.106.dist-info}/RECORD +7 -7
- {pyntcli-0.1.105.dist-info → pyntcli-0.1.106.dist-info}/WHEEL +0 -0
- {pyntcli-0.1.105.dist-info → pyntcli-0.1.106.dist-info}/entry_points.txt +0 -0
- {pyntcli-0.1.105.dist-info → pyntcli-0.1.106.dist-info}/top_level.txt +0 -0
pyntcli/__init__.py
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
__version__ = "0.1.
|
|
1
|
+
__version__ = "0.1.106"
|
pyntcli/analytics/send.py
CHANGED
|
@@ -95,7 +95,11 @@ class AnalyticsSender():
|
|
|
95
95
|
if self.disable_analytics:
|
|
96
96
|
logger.info(f"Analytics disabled, not sending: {base_event}")
|
|
97
97
|
else:
|
|
98
|
-
|
|
98
|
+
try:
|
|
99
|
+
pynt_requests.post(MIXPANEL_URL, json=[base_event])
|
|
100
|
+
except Exception as e:
|
|
101
|
+
logger.error(f"Failed to send analytics event: {base_event}, error: {e}")
|
|
102
|
+
pass
|
|
99
103
|
else:
|
|
100
104
|
self.events.append(base_event)
|
|
101
105
|
|
|
@@ -116,6 +120,10 @@ class AnalyticsSender():
|
|
|
116
120
|
|
|
117
121
|
def done(self):
|
|
118
122
|
if self.events and not self.disable_analytics:
|
|
119
|
-
|
|
123
|
+
try:
|
|
124
|
+
pynt_requests.post(MIXPANEL_URL, json=self.events)
|
|
125
|
+
except Exception as e:
|
|
126
|
+
logger.error(f"Failed to send analytics events. error: {e}")
|
|
127
|
+
pass
|
|
120
128
|
|
|
121
129
|
self.events = []
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
ignoreTests/conftest.py,sha256=gToq5K74GtgeGQXjFvXSzMaE6axBYxAzcFG5XJPOXjI,427
|
|
2
2
|
ignoreTests/auth/login.py,sha256=KFlzWhXBAuwdi7GXf16gCB3ya94LQG2wjcSChE149rQ,3798
|
|
3
3
|
ignoreTests/store/cred_store.py,sha256=_7-917EtNC9eKEumO2_lt-7KuDmCwOZFaowCm7DbA_A,254
|
|
4
|
-
pyntcli/__init__.py,sha256=
|
|
4
|
+
pyntcli/__init__.py,sha256=LmXcDdihVpyvQpTXoatgAItrW56sl-TqZAlSwrMEouU,24
|
|
5
5
|
pyntcli/main.py,sha256=RD0W2_0ogYBCXubo-YewxHYkiIXxNv6NkZOh3n1VujE,5964
|
|
6
6
|
pyntcli/analytics/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
7
|
-
pyntcli/analytics/send.py,sha256=
|
|
7
|
+
pyntcli/analytics/send.py,sha256=0hJ0WJNFHLqyohtRr_xOg5WEXzxHrUOlcePPg-k65Hk,3846
|
|
8
8
|
pyntcli/auth/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
9
9
|
pyntcli/auth/login.py,sha256=TljsRXbEkNI1YUrKm5mlTw4YiecYScYUsit8Z8vstss,5228
|
|
10
10
|
pyntcli/commands/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
@@ -39,8 +39,8 @@ pyntcli/ui/report.py,sha256=W-icPSZrGLOubXgam0LpOvHLl_aZg9Zx9qIkL8Ym5PE,1930
|
|
|
39
39
|
pyntcli/ui/ui_thread.py,sha256=XUBgLpYQjVhrilU-ofw7VSXgTiwneSdTxm61EvC3x4Q,5091
|
|
40
40
|
tests/test_utils.py,sha256=t5fTQUk1U_Js6iMxcGYGqt4C-crzOJ0CqCKtLkRtUi0,2050
|
|
41
41
|
tests/commands/test_pynt_cmd.py,sha256=BjGFCFACcSziLrNA6_27t6TjSmvdu54wx9njwLpRSJY,8379
|
|
42
|
-
pyntcli-0.1.
|
|
43
|
-
pyntcli-0.1.
|
|
44
|
-
pyntcli-0.1.
|
|
45
|
-
pyntcli-0.1.
|
|
46
|
-
pyntcli-0.1.
|
|
42
|
+
pyntcli-0.1.106.dist-info/METADATA,sha256=nPVZLD9-2pZHB59DlsLjZlhpALF6O-zrqDnQ1bYIU0c,428
|
|
43
|
+
pyntcli-0.1.106.dist-info/WHEEL,sha256=OVMc5UfuAQiSplgO0_WdW7vXVGAt9Hdd6qtN4HotdyA,91
|
|
44
|
+
pyntcli-0.1.106.dist-info/entry_points.txt,sha256=kcGmqAxXDttNk2EPRcqunc_LTVp61gzakz0v-GEE2SY,43
|
|
45
|
+
pyntcli-0.1.106.dist-info/top_level.txt,sha256=64XSgBzSpgwjYjEKHZE7q3JH2a816zEeyZBXfJi3AKI,42
|
|
46
|
+
pyntcli-0.1.106.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|