python-terminusgps 19.1.1__py3-none-any.whl → 19.2.0__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: 19.1.1
3
+ Version: 19.2.0
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
@@ -17,11 +17,11 @@ terminusgps/wialon/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuF
17
17
  terminusgps/wialon/constants.py,sha256=u7y9MsA5LYvjPjxJnCMQdprTF3QhPPR9j4MvzoSNBaw,1628
18
18
  terminusgps/wialon/errors.py,sha256=Fl8A0peF5HpDdR3y0r3g86-iQ4kQgye3FYQZKGe3T7Y,984
19
19
  terminusgps/wialon/flags.py,sha256=-OoH-eZM54yjRqxsAXL8VImdQu_7C0OAxCrFqaCEuko,13510
20
- terminusgps/wialon/session.py,sha256=zCM3VXzRn8OhR34_3E45I2dPD9NtmFfKJOwKZzxerOs,10857
20
+ terminusgps/wialon/session.py,sha256=kgBFOB_gMmQS35mcmNOVIAnMvy9smrA2cUoD3QM3-3U,10857
21
21
  terminusgps/wialon/utils.py,sha256=KeZmV-MEdGOHXrsyn6IIoyX0EgVYiWYjvacXyZVr1u8,6501
22
22
  terminusgps/wialon/items/__init__.py,sha256=cfUC5sfVsTwmpgsR-w9wA4ay6_EZYAPgEeuw2k06RJM,256
23
23
  terminusgps/wialon/items/base.py,sha256=EAtzlnCvB7WTu3iX1bV1-S9TvwXc-Eez7e0X4TMiK9U,6943
24
- terminusgps/wialon/items/geofence.py,sha256=auT3QDe3Vmuky9A2gsaMQUbqNqRX8HJGwl1nBXX41zk,1661
24
+ terminusgps/wialon/items/geofence.py,sha256=LOjWWtRpAFMhE_16SU4sqNEZphmswpeTNtiFCZBB5Ig,1740
25
25
  terminusgps/wialon/items/notification.py,sha256=6IrswN6fdEkJErIqtMq45bTl9xVARQw8nokDsy3x1MA,97
26
26
  terminusgps/wialon/items/resource.py,sha256=79SwbCyE1zlaoeBfU0erEqvqBAYUC4KAKs8AOLJqflU,9652
27
27
  terminusgps/wialon/items/retranslator.py,sha256=8q9EDc92w92MElnHIeEzH3Ra4kiPXrx4t9V5nPDZuRU,3728
@@ -29,7 +29,7 @@ terminusgps/wialon/items/route.py,sha256=PTJx1gmT_PGz7nlSSUS2VzjYD-aAuvkEOIdIFne
29
29
  terminusgps/wialon/items/unit.py,sha256=PwF7xlpDWI5MpM_u6TmYZjNHWk6TSKM4rJ4OB9CIn4A,7533
30
30
  terminusgps/wialon/items/unit_group.py,sha256=xc7zYitPE59_WYS-G857jeIQnQcUAxLBH3X6Y1VDg_8,4089
31
31
  terminusgps/wialon/items/user.py,sha256=INwAibQVmjNNelepQXMfDevgJqMvIjHHgEjAMLRvhB0,7082
32
- python_terminusgps-19.1.1.dist-info/METADATA,sha256=K1DLDu9bxBKGnZ_Bt2Txyi8wQtY0c7uPoHwIZ3xI2V8,912
33
- python_terminusgps-19.1.1.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
34
- python_terminusgps-19.1.1.dist-info/licenses/COPYING,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
35
- python_terminusgps-19.1.1.dist-info/RECORD,,
32
+ python_terminusgps-19.2.0.dist-info/METADATA,sha256=t4uVsM26NzgtvX98ma1Ps1ZpG01K12isrW2PLh7urBo,912
33
+ python_terminusgps-19.2.0.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
34
+ python_terminusgps-19.2.0.dist-info/licenses/COPYING,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
35
+ python_terminusgps-19.2.0.dist-info/RECORD,,
@@ -4,6 +4,9 @@ from terminusgps.wialon.items.base import WialonBase
4
4
 
5
5
 
6
6
  class WialonGeofence(WialonBase):
7
+ def __new__(cls) -> "WialonGeofence":
8
+ raise NotImplementedError()
9
+
7
10
  class WialonGeofenceShape(models.IntegerChoices):
8
11
  LINE = 1
9
12
  POLYGON = 2
@@ -45,8 +45,7 @@ class Wialon(WialonAPI):
45
45
  return len(self.failed_calls) / self.total_calls
46
46
 
47
47
  def call(self, action_name: str, *argc, **kwargs) -> typing.Any:
48
- self.logger.info(f"Executing '{action_name}'...")
49
- self.logger.debug(f"Executing '{action_name}' using: '{kwargs}'")
48
+ self.logger.debug(f"Executing '{action_name}'...")
50
49
  call_record = WialonAPICall(
51
50
  action=action_name, timestamp=timezone.now(), args=argc, kwargs=kwargs
52
51
  )
@@ -54,6 +53,7 @@ class Wialon(WialonAPI):
54
53
  try:
55
54
  result = super().call(action_name, *argc, **kwargs)
56
55
  call_record.result = result
56
+ self.logger.debug(f"Executed '{action_name}' successfully.")
57
57
  return result
58
58
  except WialonError as e:
59
59
  self.logger.warning(f"Failed to execute '{action_name}': '{e}'")