python-terminusgps 20.5.3__py3-none-any.whl → 20.6.1__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-20.5.3.dist-info → python_terminusgps-20.6.1.dist-info}/METADATA +1 -1
- {python_terminusgps-20.5.3.dist-info → python_terminusgps-20.6.1.dist-info}/RECORD +7 -7
- terminusgps/wialon/constants.py +3 -0
- terminusgps/wialon/session.py +2 -0
- terminusgps/wialon/utils.py +0 -23
- {python_terminusgps-20.5.3.dist-info → python_terminusgps-20.6.1.dist-info}/WHEEL +0 -0
- {python_terminusgps-20.5.3.dist-info → python_terminusgps-20.6.1.dist-info}/licenses/COPYING +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: python-terminusgps
|
|
3
|
-
Version: 20.
|
|
3
|
+
Version: 20.6.1
|
|
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
|
|
@@ -14,11 +14,11 @@ terminusgps/aws/ses.py,sha256=sDca2GjMaZvUt3kUPtGCpcqHiOkij9lMV1ogZofgYUU,2372
|
|
|
14
14
|
terminusgps/twilio/__init__.py,sha256=dYo41F2jft_eHDWSUtSpKGSRG1bewq_qClqilUJZkYM,33
|
|
15
15
|
terminusgps/twilio/caller.py,sha256=nHCIwUulo-C_v2orsp6OY0nuJA6YetSkxpMTwrRQ-uA,1831
|
|
16
16
|
terminusgps/wialon/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
17
|
-
terminusgps/wialon/constants.py,sha256=
|
|
17
|
+
terminusgps/wialon/constants.py,sha256=n1ux68oWYWnzeZdN811Iw_Lk78KBM0YMJMoonn67uZY,1723
|
|
18
18
|
terminusgps/wialon/flags.py,sha256=_NIL3mrEGhvI5YISVjimjYtUatdgOqhZPJX368MtKSU,13959
|
|
19
19
|
terminusgps/wialon/logger.py,sha256=nUBsaLMaffSaAHGHAM6mFXDzix9hbNecVtA3INVtii8,968
|
|
20
|
-
terminusgps/wialon/session.py,sha256=
|
|
21
|
-
terminusgps/wialon/utils.py,sha256=
|
|
20
|
+
terminusgps/wialon/session.py,sha256=6xg65LZz6cebWclTQp1KRLvPss0aM-bWhAmmwiDOlMg,10267
|
|
21
|
+
terminusgps/wialon/utils.py,sha256=_OC8p01V8NFqcA7Q--_fRrOdmMVyDWHZHCf6H28W1Xc,5728
|
|
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
24
|
terminusgps/wialon/items/geofence.py,sha256=LOjWWtRpAFMhE_16SU4sqNEZphmswpeTNtiFCZBB5Ig,1740
|
|
@@ -29,7 +29,7 @@ terminusgps/wialon/items/route.py,sha256=PTJx1gmT_PGz7nlSSUS2VzjYD-aAuvkEOIdIFne
|
|
|
29
29
|
terminusgps/wialon/items/unit.py,sha256=sXgEW3mbGgHCI9-lD69voy8yiKv39rKJei6ybYODKpM,8531
|
|
30
30
|
terminusgps/wialon/items/unit_group.py,sha256=vGVJMBY1BrKK0tP-C1DCIz4Bh6P-HKRnKY1g8g95UIs,5031
|
|
31
31
|
terminusgps/wialon/items/user.py,sha256=INwAibQVmjNNelepQXMfDevgJqMvIjHHgEjAMLRvhB0,7082
|
|
32
|
-
python_terminusgps-20.
|
|
33
|
-
python_terminusgps-20.
|
|
34
|
-
python_terminusgps-20.
|
|
35
|
-
python_terminusgps-20.
|
|
32
|
+
python_terminusgps-20.6.1.dist-info/METADATA,sha256=ZWIAMLVa_F5fVZoB6ltPToqvpZ0-EpmghXXDZABp5BU,939
|
|
33
|
+
python_terminusgps-20.6.1.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
34
|
+
python_terminusgps-20.6.1.dist-info/licenses/COPYING,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
|
|
35
|
+
python_terminusgps-20.6.1.dist-info/RECORD,,
|
terminusgps/wialon/constants.py
CHANGED
|
@@ -17,6 +17,7 @@ ACCESSMASK_RESOURCE_BASIC: int = sum(
|
|
|
17
17
|
flags.ACCESSFLAG_RESOURCE_VIEW_TRAILERS,
|
|
18
18
|
]
|
|
19
19
|
)
|
|
20
|
+
"""Basic resource permissions"""
|
|
20
21
|
|
|
21
22
|
ACCESSMASK_UNIT_BASIC: int = sum(
|
|
22
23
|
[
|
|
@@ -35,6 +36,7 @@ ACCESSMASK_UNIT_BASIC: int = sum(
|
|
|
35
36
|
flags.ACCESSFLAG_UNIT_EXPORT_MESSAGES,
|
|
36
37
|
]
|
|
37
38
|
)
|
|
39
|
+
"""Basic unit permissions"""
|
|
38
40
|
|
|
39
41
|
ACCESSMASK_UNIT_MIGRATION: int = sum(
|
|
40
42
|
[
|
|
@@ -45,3 +47,4 @@ ACCESSMASK_UNIT_MIGRATION: int = sum(
|
|
|
45
47
|
flags.ACCESSFLAG_VIEW_ITEM_BASIC,
|
|
46
48
|
]
|
|
47
49
|
)
|
|
50
|
+
"""Unit migration permissions"""
|
terminusgps/wialon/session.py
CHANGED
|
@@ -101,11 +101,13 @@ class WialonSession:
|
|
|
101
101
|
).get_logger()
|
|
102
102
|
|
|
103
103
|
def __enter__(self) -> "WialonSession":
|
|
104
|
+
"""Logs into the Wialon API using a token set in :py:meth:`__init__`."""
|
|
104
105
|
assert self.token, "Wialon API token was not set"
|
|
105
106
|
self.login(self.token)
|
|
106
107
|
return self
|
|
107
108
|
|
|
108
109
|
def __exit__(self, *args, **kwargs) -> None:
|
|
110
|
+
"""Logs out of the session by calling :py:meth:`logout`."""
|
|
109
111
|
self.logout()
|
|
110
112
|
|
|
111
113
|
@property
|
terminusgps/wialon/utils.py
CHANGED
|
@@ -172,26 +172,3 @@ def generate_wialon_password(length: int = 32) -> str:
|
|
|
172
172
|
):
|
|
173
173
|
break
|
|
174
174
|
return password
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
def gen_wialon_password(length: int = 32) -> str:
|
|
178
|
-
"""
|
|
179
|
-
DEPRECATED: Use :py:func:`~terminusgps.wialon.utils.generate_wialon_password` instead.
|
|
180
|
-
|
|
181
|
-
Generates a Wialon compliant password of random characters.
|
|
182
|
-
|
|
183
|
-
Password length can be between ``8`` and ``64`` characters.
|
|
184
|
-
|
|
185
|
-
:param length: Length of the generated password. Default is ``32``.
|
|
186
|
-
:type length: :py:obj:`int`
|
|
187
|
-
:raises ValueError: If the provided length is invalid.
|
|
188
|
-
:returns: A Wialon compliant password.
|
|
189
|
-
:rtype: :py:obj:`str`
|
|
190
|
-
|
|
191
|
-
"""
|
|
192
|
-
warnings.warn(
|
|
193
|
-
"gen_wialon_password is deprecated and will be removed in a future version. Use generate_wialon_password instead.",
|
|
194
|
-
DeprecationWarning,
|
|
195
|
-
stacklevel=2,
|
|
196
|
-
)
|
|
197
|
-
return generate_wialon_password(length)
|
|
File without changes
|
{python_terminusgps-20.5.3.dist-info → python_terminusgps-20.6.1.dist-info}/licenses/COPYING
RENAMED
|
File without changes
|