python-terminusgps 31.2.0__py3-none-any.whl → 31.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.
- {python_terminusgps-31.2.0.dist-info → python_terminusgps-31.3.0.dist-info}/METADATA +1 -1
- {python_terminusgps-31.2.0.dist-info → python_terminusgps-31.3.0.dist-info}/RECORD +7 -7
- terminusgps/wialon/constants.py +6 -0
- terminusgps/wialon/items/base.py +21 -1
- terminusgps/wialon/items/user.py +18 -0
- {python_terminusgps-31.2.0.dist-info → python_terminusgps-31.3.0.dist-info}/WHEEL +0 -0
- {python_terminusgps-31.2.0.dist-info → python_terminusgps-31.3.0.dist-info}/licenses/COPYING +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: python-terminusgps
|
|
3
|
-
Version: 31.
|
|
3
|
+
Version: 31.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://app.terminusgps.com/docs/apps/python-terminusgps/index.html
|
|
6
6
|
Project-URL: Repository, https://github.com/terminusgps/python-terminusgps
|
|
@@ -20,21 +20,21 @@ terminusgps/twilio/__init__.py,sha256=dYo41F2jft_eHDWSUtSpKGSRG1bewq_qClqilUJZkY
|
|
|
20
20
|
terminusgps/twilio/caller.py,sha256=Q0wcJ5aaNDGvKfht7ARwPTFdqpFoB81DmZ_K2oZixyA,5077
|
|
21
21
|
terminusgps/twilio/validators.py,sha256=HWCpzgDXTedofty4Zhrm2OenbgtkzrDUC08B1l15gqc,1112
|
|
22
22
|
terminusgps/wialon/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
23
|
-
terminusgps/wialon/constants.py,sha256
|
|
23
|
+
terminusgps/wialon/constants.py,sha256=l67mdjTpnU9uA9zb3jKCdPaKEPGCcrN_iN_lm5mK_Pg,5697
|
|
24
24
|
terminusgps/wialon/flags.py,sha256=M50EdhxQ8IMnJnU0mrHK7-h8Asc6tvNiTOOfd1dBW6A,12815
|
|
25
25
|
terminusgps/wialon/logger.py,sha256=nUBsaLMaffSaAHGHAM6mFXDzix9hbNecVtA3INVtii8,968
|
|
26
26
|
terminusgps/wialon/session.py,sha256=21ZRBUnsuK5zhkUHeccQW1lR39A4kQ_0qkLlRT1hsS8,10044
|
|
27
27
|
terminusgps/wialon/utils.py,sha256=JWHZ7VEeo8VNBH67gjOAQk5ITKuPllWDlJ4dVSQ5blA,11002
|
|
28
28
|
terminusgps/wialon/validators.py,sha256=CVEpFsxqplEcpv4U2ipA6v9y5cSrMKFUXLvze-3vs4U,4223
|
|
29
29
|
terminusgps/wialon/items/__init__.py,sha256=3BVthghekMvhMQSzQgBMlD_phxmKSmp3Zvmo-z0O8Bs,211
|
|
30
|
-
terminusgps/wialon/items/base.py,sha256=
|
|
30
|
+
terminusgps/wialon/items/base.py,sha256=7J5B-EPj997GJV7TbZP7pAfjl2G4nTcKmP-RMxmuzoY,10959
|
|
31
31
|
terminusgps/wialon/items/resource.py,sha256=FmuY0thel8aIThSWKJXur72Sptful3MuwBfIn9bdeaY,14616
|
|
32
32
|
terminusgps/wialon/items/retranslator.py,sha256=sVEWrp8q1I-tO_rMTCH7TeQDDbZryIq8d9KVnhYyhH0,3795
|
|
33
33
|
terminusgps/wialon/items/route.py,sha256=amNPKZqgl8pEzKA_XJudnvBPzEsfHTmrC7uF15sZVI4,1216
|
|
34
34
|
terminusgps/wialon/items/unit.py,sha256=jq4S8EV_yukRTTE8rr2oXpu_9AdXDFYA6-GCjkR6shw,12282
|
|
35
35
|
terminusgps/wialon/items/unit_group.py,sha256=QV2ZZgICaN3n6W1pFIyMLyNKB6KYBsLyKG64i-qXoOg,4113
|
|
36
|
-
terminusgps/wialon/items/user.py,sha256=
|
|
37
|
-
python_terminusgps-31.
|
|
38
|
-
python_terminusgps-31.
|
|
39
|
-
python_terminusgps-31.
|
|
40
|
-
python_terminusgps-31.
|
|
36
|
+
terminusgps/wialon/items/user.py,sha256=5LgwalGO8KS_7psmAVmAlnC0S6SPBDZMOuT5ZqPKRmo,7758
|
|
37
|
+
python_terminusgps-31.3.0.dist-info/METADATA,sha256=n-d09k232ROHl_dbQ-Ky0SyWY-_ajnFxhPVSo9Ta2LY,1648
|
|
38
|
+
python_terminusgps-31.3.0.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
39
|
+
python_terminusgps-31.3.0.dist-info/licenses/COPYING,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
|
|
40
|
+
python_terminusgps-31.3.0.dist-info/RECORD,,
|
terminusgps/wialon/constants.py
CHANGED
terminusgps/wialon/items/base.py
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
from abc import abstractmethod
|
|
2
2
|
from typing import Type
|
|
3
3
|
|
|
4
|
-
from terminusgps.wialon import flags
|
|
4
|
+
from terminusgps.wialon import constants, flags
|
|
5
5
|
from terminusgps.wialon.session import WialonSession
|
|
6
6
|
|
|
7
7
|
|
|
@@ -119,6 +119,26 @@ class WialonBase:
|
|
|
119
119
|
"""Creates a Wialon object and returns its id."""
|
|
120
120
|
raise NotImplementedError("Subclasses must implement this method.")
|
|
121
121
|
|
|
122
|
+
def set_measurement_unit(
|
|
123
|
+
self,
|
|
124
|
+
unit: constants.WialonMeasurementUnit = constants.WialonMeasurementUnit.US,
|
|
125
|
+
convert: bool = False,
|
|
126
|
+
) -> None:
|
|
127
|
+
"""
|
|
128
|
+
Sets the Wialon object's measurement unit to ``unit``.
|
|
129
|
+
|
|
130
|
+
:param unit: A Wialon measurement unit.
|
|
131
|
+
:type unit: :py:obj:`~terminusgps.constants.WialonMeasurementUnit`
|
|
132
|
+
:param convert: Whether or not to convert the object's measurements before setting the new unit.
|
|
133
|
+
:type convert: :py:obj:`bool`
|
|
134
|
+
:returns: Nothing.
|
|
135
|
+
:rtype: :py:obj:`None`
|
|
136
|
+
|
|
137
|
+
"""
|
|
138
|
+
self.session.wialon_api.item_update_measure_units(
|
|
139
|
+
**{"itemId": str(self.id), "type": unit, "flags": int(convert)}
|
|
140
|
+
)
|
|
141
|
+
|
|
122
142
|
def rename(self, new_name: str) -> None:
|
|
123
143
|
"""
|
|
124
144
|
Renames the Wialon object to the new name.
|
terminusgps/wialon/items/user.py
CHANGED
|
@@ -161,6 +161,24 @@ class WialonUser(WialonBase):
|
|
|
161
161
|
**{"userId": self.id, "flags": flags, "flagsMask": flags_mask}
|
|
162
162
|
)
|
|
163
163
|
|
|
164
|
+
def reset_password(self, username: str, email: str, url: str) -> None:
|
|
165
|
+
"""
|
|
166
|
+
Sends a password reset email for a user to ``email``.
|
|
167
|
+
|
|
168
|
+
:param username: A Wialon user name.
|
|
169
|
+
:type username: :py:obj:`str`
|
|
170
|
+
:param email: A Wialon user email.
|
|
171
|
+
:type email: :py:obj:`str`
|
|
172
|
+
:param url: A password reset URL for the user.
|
|
173
|
+
:type url: :py:obj:`str`
|
|
174
|
+
:returns: Nothing.
|
|
175
|
+
:rtype: :py:obj:`None`
|
|
176
|
+
|
|
177
|
+
"""
|
|
178
|
+
self.session.wialon_api.core_reset_password_request(
|
|
179
|
+
**{"user": username, "url": url, "email": email}
|
|
180
|
+
)
|
|
181
|
+
|
|
164
182
|
def update_password(self, old_password: str, new_password: str) -> None:
|
|
165
183
|
"""
|
|
166
184
|
Updates the password of the user.
|
|
File without changes
|
{python_terminusgps-31.2.0.dist-info → python_terminusgps-31.3.0.dist-info}/licenses/COPYING
RENAMED
|
File without changes
|