python-terminusgps 19.2.0__tar.gz → 19.3.0__tar.gz
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-19.2.0 → python_terminusgps-19.3.0}/PKG-INFO +1 -1
- {python_terminusgps-19.2.0 → python_terminusgps-19.3.0}/pyproject.toml +1 -1
- {python_terminusgps-19.2.0 → python_terminusgps-19.3.0}/terminusgps/wialon/session.py +19 -6
- {python_terminusgps-19.2.0 → python_terminusgps-19.3.0}/uv.lock +1 -1
- {python_terminusgps-19.2.0 → python_terminusgps-19.3.0}/.gitignore +0 -0
- {python_terminusgps-19.2.0 → python_terminusgps-19.3.0}/COPYING +0 -0
- {python_terminusgps-19.2.0 → python_terminusgps-19.3.0}/README.md +0 -0
- {python_terminusgps-19.2.0 → python_terminusgps-19.3.0}/terminusgps/__init__.py +0 -0
- {python_terminusgps-19.2.0 → python_terminusgps-19.3.0}/terminusgps/authorizenet/__init__.py +0 -0
- {python_terminusgps-19.2.0 → python_terminusgps-19.3.0}/terminusgps/authorizenet/auth.py +0 -0
- {python_terminusgps-19.2.0 → python_terminusgps-19.3.0}/terminusgps/authorizenet/profiles/__init__.py +0 -0
- {python_terminusgps-19.2.0 → python_terminusgps-19.3.0}/terminusgps/authorizenet/profiles/addresses.py +0 -0
- {python_terminusgps-19.2.0 → python_terminusgps-19.3.0}/terminusgps/authorizenet/profiles/base.py +0 -0
- {python_terminusgps-19.2.0 → python_terminusgps-19.3.0}/terminusgps/authorizenet/profiles/customers.py +0 -0
- {python_terminusgps-19.2.0 → python_terminusgps-19.3.0}/terminusgps/authorizenet/profiles/payments.py +0 -0
- {python_terminusgps-19.2.0 → python_terminusgps-19.3.0}/terminusgps/authorizenet/subscriptions.py +0 -0
- {python_terminusgps-19.2.0 → python_terminusgps-19.3.0}/terminusgps/aws/__init__.py +0 -0
- {python_terminusgps-19.2.0 → python_terminusgps-19.3.0}/terminusgps/aws/secrets.py +0 -0
- {python_terminusgps-19.2.0 → python_terminusgps-19.3.0}/terminusgps/aws/ses.py +0 -0
- {python_terminusgps-19.2.0 → python_terminusgps-19.3.0}/terminusgps/settings.py +0 -0
- {python_terminusgps-19.2.0 → python_terminusgps-19.3.0}/terminusgps/twilio/__init__.py +0 -0
- {python_terminusgps-19.2.0 → python_terminusgps-19.3.0}/terminusgps/twilio/caller.py +0 -0
- {python_terminusgps-19.2.0 → python_terminusgps-19.3.0}/terminusgps/wialon/__init__.py +0 -0
- {python_terminusgps-19.2.0 → python_terminusgps-19.3.0}/terminusgps/wialon/constants.py +0 -0
- {python_terminusgps-19.2.0 → python_terminusgps-19.3.0}/terminusgps/wialon/errors.py +0 -0
- {python_terminusgps-19.2.0 → python_terminusgps-19.3.0}/terminusgps/wialon/flags.py +0 -0
- {python_terminusgps-19.2.0 → python_terminusgps-19.3.0}/terminusgps/wialon/items/__init__.py +0 -0
- {python_terminusgps-19.2.0 → python_terminusgps-19.3.0}/terminusgps/wialon/items/base.py +0 -0
- {python_terminusgps-19.2.0 → python_terminusgps-19.3.0}/terminusgps/wialon/items/geofence.py +0 -0
- {python_terminusgps-19.2.0 → python_terminusgps-19.3.0}/terminusgps/wialon/items/notification.py +0 -0
- {python_terminusgps-19.2.0 → python_terminusgps-19.3.0}/terminusgps/wialon/items/resource.py +0 -0
- {python_terminusgps-19.2.0 → python_terminusgps-19.3.0}/terminusgps/wialon/items/retranslator.py +0 -0
- {python_terminusgps-19.2.0 → python_terminusgps-19.3.0}/terminusgps/wialon/items/route.py +0 -0
- {python_terminusgps-19.2.0 → python_terminusgps-19.3.0}/terminusgps/wialon/items/unit.py +0 -0
- {python_terminusgps-19.2.0 → python_terminusgps-19.3.0}/terminusgps/wialon/items/unit_group.py +0 -0
- {python_terminusgps-19.2.0 → python_terminusgps-19.3.0}/terminusgps/wialon/items/user.py +0 -0
- {python_terminusgps-19.2.0 → python_terminusgps-19.3.0}/terminusgps/wialon/utils.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: python-terminusgps
|
|
3
|
-
Version: 19.
|
|
3
|
+
Version: 19.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
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "python-terminusgps"
|
|
3
|
-
version = "19.
|
|
3
|
+
version = "19.3.0"
|
|
4
4
|
description = "Provides abstractions/utilities for working with Wialon API, Authorize.NET API, AWS API, and more."
|
|
5
5
|
readme = "README.md"
|
|
6
6
|
authors = [ {name = "Blake Nall", email = "blake@terminusgps.com" } ]
|
|
@@ -102,7 +102,7 @@ class WialonSession:
|
|
|
102
102
|
self.wialon_api = Wialon(
|
|
103
103
|
scheme=scheme, host=host, port=port, sid=sid, log_level=log_level
|
|
104
104
|
)
|
|
105
|
-
self.
|
|
105
|
+
self._token = token or settings.WIALON_TOKEN
|
|
106
106
|
self.login_id = uid
|
|
107
107
|
self._username = None
|
|
108
108
|
self._gis_sid = None
|
|
@@ -275,11 +275,7 @@ class WialonSession:
|
|
|
275
275
|
:value: :confval:`WIALON_TOKEN`
|
|
276
276
|
|
|
277
277
|
"""
|
|
278
|
-
return self._token
|
|
279
|
-
|
|
280
|
-
@token.setter
|
|
281
|
-
def token(self, value: str | None = None) -> None:
|
|
282
|
-
self._token = value if value else settings.WIALON_TOKEN
|
|
278
|
+
return str(self._token)
|
|
283
279
|
|
|
284
280
|
def login(self, token: str, flags: int = sum([0x1, 0x2, 0x20])) -> str:
|
|
285
281
|
"""
|
|
@@ -367,3 +363,20 @@ class WialonSessionManager:
|
|
|
367
363
|
if not self._session:
|
|
368
364
|
self._session = WialonSession(sid=sid, log_level=log_level)
|
|
369
365
|
return self._session
|
|
366
|
+
|
|
367
|
+
|
|
368
|
+
def main() -> None:
|
|
369
|
+
# Usage example
|
|
370
|
+
session = WialonSession() # Instantiate session
|
|
371
|
+
session.login(settings.WIALON_TOKEN) # Login to session
|
|
372
|
+
session.wialon_api.avl_evts() # Call Wialon API
|
|
373
|
+
session.logout() # Logout of session
|
|
374
|
+
|
|
375
|
+
# Alternatively, use a context manager to handle logging in and out
|
|
376
|
+
with WialonSession() as session:
|
|
377
|
+
session.wialon_api.avl_evts() # Call Wialon API, logout when scope ends
|
|
378
|
+
return
|
|
379
|
+
|
|
380
|
+
|
|
381
|
+
if __name__ == "__main__":
|
|
382
|
+
main()
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{python_terminusgps-19.2.0 → python_terminusgps-19.3.0}/terminusgps/authorizenet/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{python_terminusgps-19.2.0 → python_terminusgps-19.3.0}/terminusgps/authorizenet/profiles/base.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{python_terminusgps-19.2.0 → python_terminusgps-19.3.0}/terminusgps/authorizenet/subscriptions.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{python_terminusgps-19.2.0 → python_terminusgps-19.3.0}/terminusgps/wialon/items/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
{python_terminusgps-19.2.0 → python_terminusgps-19.3.0}/terminusgps/wialon/items/geofence.py
RENAMED
|
File without changes
|
{python_terminusgps-19.2.0 → python_terminusgps-19.3.0}/terminusgps/wialon/items/notification.py
RENAMED
|
File without changes
|
{python_terminusgps-19.2.0 → python_terminusgps-19.3.0}/terminusgps/wialon/items/resource.py
RENAMED
|
File without changes
|
{python_terminusgps-19.2.0 → python_terminusgps-19.3.0}/terminusgps/wialon/items/retranslator.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{python_terminusgps-19.2.0 → python_terminusgps-19.3.0}/terminusgps/wialon/items/unit_group.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|