python-terminusgps 37.2.2__py3-none-any.whl → 37.3.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: 37.2.2
3
+ Version: 37.3.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://docs.terminusgps.com
6
6
  Project-URL: Repository, https://github.com/terminusgps/python-terminusgps
@@ -43,7 +43,7 @@ terminusgps/twilio/caller.py,sha256=RQax2iZ6SYHiuCvBxXkrooRWQ9J8DwKGAjxa8RYjrLI,
43
43
  terminusgps/wialon/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
44
44
  terminusgps/wialon/constants.py,sha256=05pLc_0S-x0tT87cQcxOmr8plesjOQxoXfUdjIHwI90,7732
45
45
  terminusgps/wialon/flags.py,sha256=M50EdhxQ8IMnJnU0mrHK7-h8Asc6tvNiTOOfd1dBW6A,12815
46
- terminusgps/wialon/session.py,sha256=kkfeqXg2akH_kytcTHsuga3RGpKn8bNcD8NeE3199F8,14843
46
+ terminusgps/wialon/session.py,sha256=YbED335amRrdKRp4Ygv1hX5GIBirftbtI6P1G4BN2pI,14958
47
47
  terminusgps/wialon/utils.py,sha256=ntHLAVJSJBdIgJK704xxFNFRopaFz-No9YZZOMmvWO8,11627
48
48
  terminusgps/wialon/validators.py,sha256=Z2eci8NzKDHU6oXl5ncgeYXmBYg336k-0R2m0DIxsDY,4346
49
49
  terminusgps/wialon/items/__init__.py,sha256=3BVthghekMvhMQSzQgBMlD_phxmKSmp3Zvmo-z0O8Bs,211
@@ -51,14 +51,14 @@ terminusgps/wialon/items/base.py,sha256=vS8xIo5WLiwzpB81i7aHFnwOHzCf4lQG6azjq79H
51
51
  terminusgps/wialon/items/resource.py,sha256=Rhy2ig-yxznNhi6ZSaUBbu8ViVx0Sg4n_XS08ijgXsA,18280
52
52
  terminusgps/wialon/items/retranslator.py,sha256=2J1x7lNxRck-IEXrmJ7RM9bVL60mrZkfmczOSiUhiO8,3873
53
53
  terminusgps/wialon/items/route.py,sha256=2dEUK9o8nwutPE03W-5GUcZrjGvbwLoExVnFV9LyedE,1326
54
- terminusgps/wialon/items/unit.py,sha256=udDz1NnFdFAMjnYnzuijbUkqAmPdQKy0MruNA0EDuO0,12018
54
+ terminusgps/wialon/items/unit.py,sha256=P828NaWkTQncNre3n4h7AedeSxUXPKSxQFpBiliZCBk,12133
55
55
  terminusgps/wialon/items/unit_group.py,sha256=HhYMZ9b7UATXeEgHkXN9r5-M_w82fabjDYADCUwBtxQ,4442
56
56
  terminusgps/wialon/items/user.py,sha256=pR6OTrm6f7Zo0J8eLvKtWVsdhGi430OxMsMMthGh8YE,5382
57
57
  terminusgps/wialon/tests/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
58
58
  terminusgps/wialon/tests/test_items.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
59
59
  terminusgps/wialon/tests/test_session.py,sha256=9mBlYchMo9NeqRIZsmxYzrM1zBHorqu4ooxqSNppLpI,1336
60
60
  terminusgps/wialon/tests/test_utils.py,sha256=SK4PxJQGECFnzx_EQeRAQfsQ5_3FLaVcis2W9u_ibuI,1730
61
- python_terminusgps-37.2.2.dist-info/METADATA,sha256=ROKVscKY9GHS-sBZuOvWgHdE6eIsINWx6nEQE5E1Xog,1329
62
- python_terminusgps-37.2.2.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
63
- python_terminusgps-37.2.2.dist-info/licenses/COPYING,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
64
- python_terminusgps-37.2.2.dist-info/RECORD,,
61
+ python_terminusgps-37.3.0.dist-info/METADATA,sha256=9JaidfSmLZr6E7JX-ThjYJQwAO0q9i-BoHXauAYmmi4,1329
62
+ python_terminusgps-37.3.0.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
63
+ python_terminusgps-37.3.0.dist-info/licenses/COPYING,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
64
+ python_terminusgps-37.3.0.dist-info/RECORD,,
@@ -286,8 +286,12 @@ class WialonUnit(WialonBase):
286
286
  :type: :py:obj:`dict`
287
287
 
288
288
  """
289
- return self.session.wialon_api.core_get_hw_cmds(
290
- **{"deviceTypeId": 0, "unitId": self.id}
289
+ return (
290
+ self.session.wialon_api.core_search_item(
291
+ **{"id": self.id, "flags": flags.DataFlag.UNIT_AVAILABLE_COMMANDS}
292
+ )
293
+ .get("item", {})
294
+ .get("cml", {})
291
295
  )
292
296
 
293
297
  @property
@@ -78,8 +78,6 @@ class WialonSession:
78
78
  :type host: :py:obj:`str`
79
79
  :param port: Wialon API host port. Default is ``443``.
80
80
  :type port: :py:obj:`int`
81
- :param log_level: Level of emitted logs. Default is ``10``.
82
- :type log_level: :py:obj:`int`
83
81
  :param timeout: How long in seconds a session can be active for. Default is ``500`` (5 min).
84
82
  :type timeout: :py:obj:`int`
85
83
  :returns: Nothing.
@@ -420,6 +418,13 @@ class WialonSessionManager:
420
418
  return self.session
421
419
 
422
420
  def validate_session(self) -> bool:
421
+ """
422
+ Tries to make a Wialon API request and returns whether or not it was successful.
423
+
424
+ :returns: Whether or not validation Wialon API call was successful.
425
+ :rtype: :py:obj:`bool`
426
+
427
+ """
423
428
  try:
424
429
  result = self.session.wialon_api.core_duplicate()
425
430
  return result is not None