python-terminusgps 1.5.7__tar.gz → 1.5.9__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.
Files changed (27) hide show
  1. {python_terminusgps-1.5.7 → python_terminusgps-1.5.9}/PKG-INFO +1 -1
  2. {python_terminusgps-1.5.7 → python_terminusgps-1.5.9}/pyproject.toml +1 -1
  3. {python_terminusgps-1.5.7 → python_terminusgps-1.5.9}/terminusgps/wialon/utils.py +15 -4
  4. {python_terminusgps-1.5.7 → python_terminusgps-1.5.9}/.gitignore +0 -0
  5. {python_terminusgps-1.5.7 → python_terminusgps-1.5.9}/COPYING +0 -0
  6. {python_terminusgps-1.5.7 → python_terminusgps-1.5.9}/README.md +0 -0
  7. {python_terminusgps-1.5.7 → python_terminusgps-1.5.9}/requirements.txt +0 -0
  8. {python_terminusgps-1.5.7 → python_terminusgps-1.5.9}/terminusgps/__init__.py +0 -0
  9. {python_terminusgps-1.5.7 → python_terminusgps-1.5.9}/terminusgps/authorizenet/__init__.py +0 -0
  10. {python_terminusgps-1.5.7 → python_terminusgps-1.5.9}/terminusgps/authorizenet/auth.py +0 -0
  11. {python_terminusgps-1.5.7 → python_terminusgps-1.5.9}/terminusgps/aws/__init__.py +0 -0
  12. {python_terminusgps-1.5.7 → python_terminusgps-1.5.9}/terminusgps/aws/secrets.py +0 -0
  13. {python_terminusgps-1.5.7 → python_terminusgps-1.5.9}/terminusgps/settings.py +0 -0
  14. {python_terminusgps-1.5.7 → python_terminusgps-1.5.9}/terminusgps/wialon/__init__.py +0 -0
  15. {python_terminusgps-1.5.7 → python_terminusgps-1.5.9}/terminusgps/wialon/constants.py +0 -0
  16. {python_terminusgps-1.5.7 → python_terminusgps-1.5.9}/terminusgps/wialon/errors.py +0 -0
  17. {python_terminusgps-1.5.7 → python_terminusgps-1.5.9}/terminusgps/wialon/flags.py +0 -0
  18. {python_terminusgps-1.5.7 → python_terminusgps-1.5.9}/terminusgps/wialon/items/__init__.py +0 -0
  19. {python_terminusgps-1.5.7 → python_terminusgps-1.5.9}/terminusgps/wialon/items/base.py +0 -0
  20. {python_terminusgps-1.5.7 → python_terminusgps-1.5.9}/terminusgps/wialon/items/resource.py +0 -0
  21. {python_terminusgps-1.5.7 → python_terminusgps-1.5.9}/terminusgps/wialon/items/retranslator.py +0 -0
  22. {python_terminusgps-1.5.7 → python_terminusgps-1.5.9}/terminusgps/wialon/items/route.py +0 -0
  23. {python_terminusgps-1.5.7 → python_terminusgps-1.5.9}/terminusgps/wialon/items/unit.py +0 -0
  24. {python_terminusgps-1.5.7 → python_terminusgps-1.5.9}/terminusgps/wialon/items/unit_group.py +0 -0
  25. {python_terminusgps-1.5.7 → python_terminusgps-1.5.9}/terminusgps/wialon/items/user.py +0 -0
  26. {python_terminusgps-1.5.7 → python_terminusgps-1.5.9}/terminusgps/wialon/session.py +0 -0
  27. {python_terminusgps-1.5.7 → python_terminusgps-1.5.9}/uv.lock +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: python-terminusgps
3
- Version: 1.5.7
3
+ Version: 1.5.9
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 = "1.5.7"
3
+ version = "1.5.9"
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" } ]
@@ -38,10 +38,10 @@ def get_id_from_iccid(iccid: str, session: WialonSession) -> str | None:
38
38
  **{
39
39
  "spec": {
40
40
  "itemsType": "avl_unit",
41
- "propName": "sys_unique_id",
42
- "propValueMask": f"={iccid}",
43
- "sortType": "sys_unique_id",
44
- "propType": "property",
41
+ "propName": "rel_admin_field_value",
42
+ "propValueMask": str(iccid),
43
+ "sortType": "admin_fields",
44
+ "propType": "adminfield",
45
45
  "or_logic": 0,
46
46
  },
47
47
  "force": 0,
@@ -53,3 +53,14 @@ def get_id_from_iccid(iccid: str, session: WialonSession) -> str | None:
53
53
  if response.get("totalItemsCount", 0) != 1:
54
54
  return None
55
55
  return response["items"][0].get("id")
56
+
57
+
58
+ def main() -> None:
59
+ with WialonSession() as session:
60
+ wialon_id = get_id_from_iccid("89015809000307608963", session)
61
+ print(f"{wialon_id = }")
62
+ return
63
+
64
+
65
+ if __name__ == "__main__":
66
+ main()