python-terminusgps 20.1.1__tar.gz → 20.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.
Potentially problematic release.
This version of python-terminusgps might be problematic. Click here for more details.
- {python_terminusgps-20.1.1 → python_terminusgps-20.3.0}/PKG-INFO +1 -1
- {python_terminusgps-20.1.1 → python_terminusgps-20.3.0}/pyproject.toml +1 -1
- {python_terminusgps-20.1.1 → python_terminusgps-20.3.0}/terminusgps/wialon/items/unit.py +19 -0
- {python_terminusgps-20.1.1 → python_terminusgps-20.3.0}/terminusgps/wialon/utils.py +4 -4
- {python_terminusgps-20.1.1 → python_terminusgps-20.3.0}/uv.lock +1 -1
- {python_terminusgps-20.1.1 → python_terminusgps-20.3.0}/.gitignore +0 -0
- {python_terminusgps-20.1.1 → python_terminusgps-20.3.0}/COPYING +0 -0
- {python_terminusgps-20.1.1 → python_terminusgps-20.3.0}/README.md +0 -0
- {python_terminusgps-20.1.1 → python_terminusgps-20.3.0}/terminusgps/__init__.py +0 -0
- {python_terminusgps-20.1.1 → python_terminusgps-20.3.0}/terminusgps/authorizenet/__init__.py +0 -0
- {python_terminusgps-20.1.1 → python_terminusgps-20.3.0}/terminusgps/authorizenet/auth.py +0 -0
- {python_terminusgps-20.1.1 → python_terminusgps-20.3.0}/terminusgps/authorizenet/profiles/__init__.py +0 -0
- {python_terminusgps-20.1.1 → python_terminusgps-20.3.0}/terminusgps/authorizenet/profiles/addresses.py +0 -0
- {python_terminusgps-20.1.1 → python_terminusgps-20.3.0}/terminusgps/authorizenet/profiles/base.py +0 -0
- {python_terminusgps-20.1.1 → python_terminusgps-20.3.0}/terminusgps/authorizenet/profiles/customers.py +0 -0
- {python_terminusgps-20.1.1 → python_terminusgps-20.3.0}/terminusgps/authorizenet/profiles/payments.py +0 -0
- {python_terminusgps-20.1.1 → python_terminusgps-20.3.0}/terminusgps/authorizenet/subscriptions.py +0 -0
- {python_terminusgps-20.1.1 → python_terminusgps-20.3.0}/terminusgps/aws/__init__.py +0 -0
- {python_terminusgps-20.1.1 → python_terminusgps-20.3.0}/terminusgps/aws/secrets.py +0 -0
- {python_terminusgps-20.1.1 → python_terminusgps-20.3.0}/terminusgps/aws/ses.py +0 -0
- {python_terminusgps-20.1.1 → python_terminusgps-20.3.0}/terminusgps/settings.py +0 -0
- {python_terminusgps-20.1.1 → python_terminusgps-20.3.0}/terminusgps/twilio/__init__.py +0 -0
- {python_terminusgps-20.1.1 → python_terminusgps-20.3.0}/terminusgps/twilio/caller.py +0 -0
- {python_terminusgps-20.1.1 → python_terminusgps-20.3.0}/terminusgps/wialon/__init__.py +0 -0
- {python_terminusgps-20.1.1 → python_terminusgps-20.3.0}/terminusgps/wialon/constants.py +0 -0
- {python_terminusgps-20.1.1 → python_terminusgps-20.3.0}/terminusgps/wialon/flags.py +0 -0
- {python_terminusgps-20.1.1 → python_terminusgps-20.3.0}/terminusgps/wialon/items/__init__.py +0 -0
- {python_terminusgps-20.1.1 → python_terminusgps-20.3.0}/terminusgps/wialon/items/base.py +0 -0
- {python_terminusgps-20.1.1 → python_terminusgps-20.3.0}/terminusgps/wialon/items/geofence.py +0 -0
- {python_terminusgps-20.1.1 → python_terminusgps-20.3.0}/terminusgps/wialon/items/notification.py +0 -0
- {python_terminusgps-20.1.1 → python_terminusgps-20.3.0}/terminusgps/wialon/items/resource.py +0 -0
- {python_terminusgps-20.1.1 → python_terminusgps-20.3.0}/terminusgps/wialon/items/retranslator.py +0 -0
- {python_terminusgps-20.1.1 → python_terminusgps-20.3.0}/terminusgps/wialon/items/route.py +0 -0
- {python_terminusgps-20.1.1 → python_terminusgps-20.3.0}/terminusgps/wialon/items/unit_group.py +0 -0
- {python_terminusgps-20.1.1 → python_terminusgps-20.3.0}/terminusgps/wialon/items/user.py +0 -0
- {python_terminusgps-20.1.1 → python_terminusgps-20.3.0}/terminusgps/wialon/logger.py +0 -0
- {python_terminusgps-20.1.1 → python_terminusgps-20.3.0}/terminusgps/wialon/session.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: python-terminusgps
|
|
3
|
-
Version: 20.
|
|
3
|
+
Version: 20.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 = "20.
|
|
3
|
+
version = "20.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" } ]
|
|
@@ -36,12 +36,31 @@ class WialonUnit(WialonBase):
|
|
|
36
36
|
)
|
|
37
37
|
return int(response.get("item", {}).get("id")) if response.get("item") else None
|
|
38
38
|
|
|
39
|
+
def populate(self) -> None:
|
|
40
|
+
super().populate()
|
|
41
|
+
response = self.session.wialon_api.core_search_item(
|
|
42
|
+
**{"id": self.id, "flags": flags.DATAFLAG_UNIT_ADVANCED_PROPERTIES}
|
|
43
|
+
).get("item", {})
|
|
44
|
+
self._imei_number = response.get("uid")
|
|
45
|
+
self._active = response.get("act", False)
|
|
46
|
+
|
|
39
47
|
@property
|
|
40
48
|
def available_commands(self) -> dict:
|
|
41
49
|
return self.session.wialon_api.core_get_hw_cmds(
|
|
42
50
|
**{"deviceTypeId": 0, "unitId": self.id}
|
|
43
51
|
)
|
|
44
52
|
|
|
53
|
+
@property
|
|
54
|
+
def imei_number(self) -> int | None:
|
|
55
|
+
if self._imei_number:
|
|
56
|
+
return int(self._imei_number)
|
|
57
|
+
|
|
58
|
+
@property
|
|
59
|
+
def active(self) -> bool:
|
|
60
|
+
if self._active:
|
|
61
|
+
return bool(self._active)
|
|
62
|
+
return False
|
|
63
|
+
|
|
45
64
|
def execute_command(
|
|
46
65
|
self,
|
|
47
66
|
name: str,
|
|
@@ -50,10 +50,10 @@ def get_id_from_iccid(iccid: str, session: WialonSession) -> str | None:
|
|
|
50
50
|
**{
|
|
51
51
|
"spec": {
|
|
52
52
|
"itemsType": "avl_unit",
|
|
53
|
-
"propName": "
|
|
54
|
-
"propValueMask":
|
|
55
|
-
"sortType": "
|
|
56
|
-
"propType": "
|
|
53
|
+
"propName": "sys_unique_id",
|
|
54
|
+
"propValueMask": f"*{iccid}*",
|
|
55
|
+
"sortType": "sys_unique_id",
|
|
56
|
+
"propType": "property",
|
|
57
57
|
"or_logic": 0,
|
|
58
58
|
},
|
|
59
59
|
"force": 0,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{python_terminusgps-20.1.1 → python_terminusgps-20.3.0}/terminusgps/authorizenet/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{python_terminusgps-20.1.1 → python_terminusgps-20.3.0}/terminusgps/authorizenet/profiles/base.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{python_terminusgps-20.1.1 → python_terminusgps-20.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
|
{python_terminusgps-20.1.1 → python_terminusgps-20.3.0}/terminusgps/wialon/items/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
{python_terminusgps-20.1.1 → python_terminusgps-20.3.0}/terminusgps/wialon/items/geofence.py
RENAMED
|
File without changes
|
{python_terminusgps-20.1.1 → python_terminusgps-20.3.0}/terminusgps/wialon/items/notification.py
RENAMED
|
File without changes
|
{python_terminusgps-20.1.1 → python_terminusgps-20.3.0}/terminusgps/wialon/items/resource.py
RENAMED
|
File without changes
|
{python_terminusgps-20.1.1 → python_terminusgps-20.3.0}/terminusgps/wialon/items/retranslator.py
RENAMED
|
File without changes
|
|
File without changes
|
{python_terminusgps-20.1.1 → python_terminusgps-20.3.0}/terminusgps/wialon/items/unit_group.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|