python-terminusgps 1.13.4__py3-none-any.whl → 1.13.5__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 python-terminusgps might be problematic. Click here for more details.

@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: python-terminusgps
3
- Version: 1.13.4
3
+ Version: 1.13.5
4
4
  Summary: Provides abstractions/utilities for working with Wialon API, Authorize.NET API, AWS API, and more.
5
5
  Project-URL: Documentation, https://app.terminusgps.com/docs/apps/python-terminusgps/index.html
6
6
  Project-URL: Repository, https://github.com/terminusgps/python-terminusgps
@@ -16,7 +16,7 @@ terminusgps/wialon/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuF
16
16
  terminusgps/wialon/constants.py,sha256=g06sNgWtSvY1pZljbH9KMsArhs8jFZRgJM9GT4Gluf0,3079
17
17
  terminusgps/wialon/errors.py,sha256=Fl8A0peF5HpDdR3y0r3g86-iQ4kQgye3FYQZKGe3T7Y,984
18
18
  terminusgps/wialon/flags.py,sha256=-OoH-eZM54yjRqxsAXL8VImdQu_7C0OAxCrFqaCEuko,13510
19
- terminusgps/wialon/session.py,sha256=TFkpVZMXj11qG_RdjG7kXh0SghhWa3htinRTtq14XIw,9703
19
+ terminusgps/wialon/session.py,sha256=cKmX1B4mDsD_T9mZHrUlsnhJBqc9DH7szIUIE5PLiKQ,9897
20
20
  terminusgps/wialon/utils.py,sha256=9xJq5eAWm-vu0nJVJ7eUcwhJhMCrGjS1p__4CIBXYm4,3407
21
21
  terminusgps/wialon/items/__init__.py,sha256=3BVthghekMvhMQSzQgBMlD_phxmKSmp3Zvmo-z0O8Bs,211
22
22
  terminusgps/wialon/items/base.py,sha256=sWM8Kg3eJ008M51q42OREHmeifOrFbV1JS9ELqE7coA,6878
@@ -27,7 +27,7 @@ terminusgps/wialon/items/route.py,sha256=qOHPN_rejwiGqvwWzlwmUIAIyc3lKavCalf8ki6
27
27
  terminusgps/wialon/items/unit.py,sha256=3fp9HXxW8e7PvMXwRBurNUrDstEmGyLBVRu3Q9kNcAM,7275
28
28
  terminusgps/wialon/items/unit_group.py,sha256=1yc7ldPIgGbtiTj0djRDWmt6Q9K_VT9sxOaioasbbLY,5212
29
29
  terminusgps/wialon/items/user.py,sha256=p_NA4iXLappr44RKwt9EHv_v0jc1XOQU_mJWe61s_qI,6077
30
- python_terminusgps-1.13.4.dist-info/METADATA,sha256=g9DrRdGmbqz2uCvYZSjiQs_zicWc_UH8GmCT6dVbJ8Y,912
31
- python_terminusgps-1.13.4.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
32
- python_terminusgps-1.13.4.dist-info/licenses/COPYING,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
33
- python_terminusgps-1.13.4.dist-info/RECORD,,
30
+ python_terminusgps-1.13.5.dist-info/METADATA,sha256=VV-0L-TGjSfqihzslo1WQbX8GS8Coq-LbM4oJSPuV1w,912
31
+ python_terminusgps-1.13.5.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
32
+ python_terminusgps-1.13.5.dist-info/licenses/COPYING,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
33
+ python_terminusgps-1.13.5.dist-info/RECORD,,
@@ -15,13 +15,19 @@ class Wialon(WialonAPI):
15
15
  def __init__(self, log_level: int = logging.INFO, *args, **kwargs) -> None:
16
16
  super().__init__(*args, **kwargs)
17
17
  self.logger = self.create_logger(log_level)
18
+ self.callstack = []
19
+
20
+ @property
21
+ def num_calls(self) -> int:
22
+ return len(self.callstack)
18
23
 
19
24
  def call(self, action_name: str, *argc, **kwargs) -> Any:
20
25
  self.logger.debug(f"Executing '{action_name}'...")
26
+ self.callstack.append(action_name)
21
27
  try:
22
28
  return super().call(action_name, *argc, **kwargs)
23
29
  except WialonError as e:
24
- self.logger.critical(e)
30
+ self.logger.critical(f"Failed to execute '{action_name}':'{e}'")
25
31
  raise
26
32
 
27
33
  def create_logger(self, log_level: int) -> logging.Logger: