python-terminusgps 37.8.0__py3-none-any.whl → 37.8.2__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.
- {python_terminusgps-37.8.0.dist-info → python_terminusgps-37.8.2.dist-info}/METADATA +1 -1
- {python_terminusgps-37.8.0.dist-info → python_terminusgps-37.8.2.dist-info}/RECORD +6 -6
- terminusgps/wialon/session.py +3 -5
- terminusgps/wialon/utils.py +0 -2
- {python_terminusgps-37.8.0.dist-info → python_terminusgps-37.8.2.dist-info}/WHEEL +0 -0
- {python_terminusgps-37.8.0.dist-info → python_terminusgps-37.8.2.dist-info}/licenses/COPYING +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: python-terminusgps
|
|
3
|
-
Version: 37.8.
|
|
3
|
+
Version: 37.8.2
|
|
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
|
|
@@ -40,8 +40,8 @@ terminusgps/wialon/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuF
|
|
|
40
40
|
terminusgps/wialon/constants.py,sha256=05pLc_0S-x0tT87cQcxOmr8plesjOQxoXfUdjIHwI90,7732
|
|
41
41
|
terminusgps/wialon/flags.py,sha256=M50EdhxQ8IMnJnU0mrHK7-h8Asc6tvNiTOOfd1dBW6A,12815
|
|
42
42
|
terminusgps/wialon/renderer.py,sha256=ubmaLjdJyksO2qiWHbIBvYeDqlFya2br7oJYsdfoyV8,7046
|
|
43
|
-
terminusgps/wialon/session.py,sha256=
|
|
44
|
-
terminusgps/wialon/utils.py,sha256=
|
|
43
|
+
terminusgps/wialon/session.py,sha256=neT5QlpXhFFLKFciafZgCapoc0ErzDyvkioH4uKwVwo,6795
|
|
44
|
+
terminusgps/wialon/utils.py,sha256=bSptHwLqkYr-NUE5dflEKjGyQCOF1XGeurliKZ6GHDw,11606
|
|
45
45
|
terminusgps/wialon/validators.py,sha256=o5__H9HHnGYth8QAKErJG5rEub7FnT8ue0S3IQ8b67o,4232
|
|
46
46
|
terminusgps/wialon/items/__init__.py,sha256=3BVthghekMvhMQSzQgBMlD_phxmKSmp3Zvmo-z0O8Bs,211
|
|
47
47
|
terminusgps/wialon/items/base.py,sha256=vS8xIo5WLiwzpB81i7aHFnwOHzCf4lQG6azjq79HDM4,11775
|
|
@@ -51,7 +51,7 @@ terminusgps/wialon/items/route.py,sha256=2dEUK9o8nwutPE03W-5GUcZrjGvbwLoExVnFV9L
|
|
|
51
51
|
terminusgps/wialon/items/unit.py,sha256=FsOQdCFJPiUp2OuCxzqYI_oEYBWcjgWxicYiNRFkGBM,12590
|
|
52
52
|
terminusgps/wialon/items/unit_group.py,sha256=HhYMZ9b7UATXeEgHkXN9r5-M_w82fabjDYADCUwBtxQ,4442
|
|
53
53
|
terminusgps/wialon/items/user.py,sha256=pR6OTrm6f7Zo0J8eLvKtWVsdhGi430OxMsMMthGh8YE,5382
|
|
54
|
-
python_terminusgps-37.8.
|
|
55
|
-
python_terminusgps-37.8.
|
|
56
|
-
python_terminusgps-37.8.
|
|
57
|
-
python_terminusgps-37.8.
|
|
54
|
+
python_terminusgps-37.8.2.dist-info/METADATA,sha256=vATatxIMpoFviwIhfQWjtXaRZo8qFgdpSmDxvYGWjo4,1329
|
|
55
|
+
python_terminusgps-37.8.2.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
56
|
+
python_terminusgps-37.8.2.dist-info/licenses/COPYING,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
|
|
57
|
+
python_terminusgps-37.8.2.dist-info/RECORD,,
|
terminusgps/wialon/session.py
CHANGED
|
@@ -15,8 +15,8 @@ class Wialon(wialon.api.Wialon):
|
|
|
15
15
|
result = super().call(action_name, *argc, **kwargs)
|
|
16
16
|
logger.debug("Successfully executed '{}'", action_name)
|
|
17
17
|
return result
|
|
18
|
-
except wialon.api.WialonError:
|
|
19
|
-
logger.warning("Failed to execute '{}'", action_name)
|
|
18
|
+
except wialon.api.WialonError as e:
|
|
19
|
+
logger.warning("Failed to execute '{}': '{}'", action_name, e)
|
|
20
20
|
return {}
|
|
21
21
|
|
|
22
22
|
|
|
@@ -40,9 +40,7 @@ class WialonSession:
|
|
|
40
40
|
:type scheme: :py:obj:`str`
|
|
41
41
|
:param host: Wialon API host url. Default is ``"hst-api.wialon.com"``.
|
|
42
42
|
:type host: :py:obj:`str`
|
|
43
|
-
:param
|
|
44
|
-
:type host: :py:obj:`str`
|
|
45
|
-
:param port: Wialon API host port. Default is ``443``.
|
|
43
|
+
:param port: Wialon API port. Default is ``443``.
|
|
46
44
|
:type port: :py:obj:`int`
|
|
47
45
|
:returns: Nothing.
|
|
48
46
|
:rtype: :py:obj:`None`
|
terminusgps/wialon/utils.py
CHANGED
|
@@ -242,7 +242,6 @@ def get_unit_by_imei(imei: str, session: WialonSession) -> WialonUnit | None:
|
|
|
242
242
|
"propValueMask": imei,
|
|
243
243
|
"sortType": "sys_unique_id",
|
|
244
244
|
"propType": "property",
|
|
245
|
-
"or_logic": 0,
|
|
246
245
|
},
|
|
247
246
|
"force": 0,
|
|
248
247
|
"flags": flags.DataFlag.UNIT_BASE,
|
|
@@ -251,7 +250,6 @@ def get_unit_by_imei(imei: str, session: WialonSession) -> WialonUnit | None:
|
|
|
251
250
|
}
|
|
252
251
|
)
|
|
253
252
|
|
|
254
|
-
print(f"{results = }")
|
|
255
253
|
if results and results.get("totalItemsCount", 0) == 1:
|
|
256
254
|
return WialonUnit(id=results["items"][0]["id"], session=session)
|
|
257
255
|
|
|
File without changes
|
{python_terminusgps-37.8.0.dist-info → python_terminusgps-37.8.2.dist-info}/licenses/COPYING
RENAMED
|
File without changes
|