python-terminusgps 1.13.4__tar.gz → 1.13.6__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 (35) hide show
  1. {python_terminusgps-1.13.4 → python_terminusgps-1.13.6}/PKG-INFO +1 -1
  2. {python_terminusgps-1.13.4 → python_terminusgps-1.13.6}/pyproject.toml +1 -1
  3. {python_terminusgps-1.13.4 → python_terminusgps-1.13.6}/terminusgps/wialon/session.py +10 -1
  4. {python_terminusgps-1.13.4 → python_terminusgps-1.13.6}/uv.lock +1 -1
  5. {python_terminusgps-1.13.4 → python_terminusgps-1.13.6}/.gitignore +0 -0
  6. {python_terminusgps-1.13.4 → python_terminusgps-1.13.6}/COPYING +0 -0
  7. {python_terminusgps-1.13.4 → python_terminusgps-1.13.6}/README.md +0 -0
  8. {python_terminusgps-1.13.4 → python_terminusgps-1.13.6}/terminusgps/__init__.py +0 -0
  9. {python_terminusgps-1.13.4 → python_terminusgps-1.13.6}/terminusgps/authorizenet/__init__.py +0 -0
  10. {python_terminusgps-1.13.4 → python_terminusgps-1.13.6}/terminusgps/authorizenet/auth.py +0 -0
  11. {python_terminusgps-1.13.4 → python_terminusgps-1.13.6}/terminusgps/authorizenet/profiles/__init__.py +0 -0
  12. {python_terminusgps-1.13.4 → python_terminusgps-1.13.6}/terminusgps/authorizenet/profiles/addresses.py +0 -0
  13. {python_terminusgps-1.13.4 → python_terminusgps-1.13.6}/terminusgps/authorizenet/profiles/base.py +0 -0
  14. {python_terminusgps-1.13.4 → python_terminusgps-1.13.6}/terminusgps/authorizenet/profiles/customers.py +0 -0
  15. {python_terminusgps-1.13.4 → python_terminusgps-1.13.6}/terminusgps/authorizenet/profiles/payments.py +0 -0
  16. {python_terminusgps-1.13.4 → python_terminusgps-1.13.6}/terminusgps/aws/__init__.py +0 -0
  17. {python_terminusgps-1.13.4 → python_terminusgps-1.13.6}/terminusgps/aws/secrets.py +0 -0
  18. {python_terminusgps-1.13.4 → python_terminusgps-1.13.6}/terminusgps/aws/ses.py +0 -0
  19. {python_terminusgps-1.13.4 → python_terminusgps-1.13.6}/terminusgps/settings.py +0 -0
  20. {python_terminusgps-1.13.4 → python_terminusgps-1.13.6}/terminusgps/twilio/__init__.py +0 -0
  21. {python_terminusgps-1.13.4 → python_terminusgps-1.13.6}/terminusgps/twilio/caller.py +0 -0
  22. {python_terminusgps-1.13.4 → python_terminusgps-1.13.6}/terminusgps/wialon/__init__.py +0 -0
  23. {python_terminusgps-1.13.4 → python_terminusgps-1.13.6}/terminusgps/wialon/constants.py +0 -0
  24. {python_terminusgps-1.13.4 → python_terminusgps-1.13.6}/terminusgps/wialon/errors.py +0 -0
  25. {python_terminusgps-1.13.4 → python_terminusgps-1.13.6}/terminusgps/wialon/flags.py +0 -0
  26. {python_terminusgps-1.13.4 → python_terminusgps-1.13.6}/terminusgps/wialon/items/__init__.py +0 -0
  27. {python_terminusgps-1.13.4 → python_terminusgps-1.13.6}/terminusgps/wialon/items/base.py +0 -0
  28. {python_terminusgps-1.13.4 → python_terminusgps-1.13.6}/terminusgps/wialon/items/notification.py +0 -0
  29. {python_terminusgps-1.13.4 → python_terminusgps-1.13.6}/terminusgps/wialon/items/resource.py +0 -0
  30. {python_terminusgps-1.13.4 → python_terminusgps-1.13.6}/terminusgps/wialon/items/retranslator.py +0 -0
  31. {python_terminusgps-1.13.4 → python_terminusgps-1.13.6}/terminusgps/wialon/items/route.py +0 -0
  32. {python_terminusgps-1.13.4 → python_terminusgps-1.13.6}/terminusgps/wialon/items/unit.py +0 -0
  33. {python_terminusgps-1.13.4 → python_terminusgps-1.13.6}/terminusgps/wialon/items/unit_group.py +0 -0
  34. {python_terminusgps-1.13.4 → python_terminusgps-1.13.6}/terminusgps/wialon/items/user.py +0 -0
  35. {python_terminusgps-1.13.4 → python_terminusgps-1.13.6}/terminusgps/wialon/utils.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: python-terminusgps
3
- Version: 1.13.4
3
+ Version: 1.13.6
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.13.4"
3
+ version = "1.13.6"
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" } ]
@@ -15,13 +15,19 @@ class Wialon(WialonAPI):
15
15
  def __init__(self, log_level: int = logging.INFO, *args, **kwargs) -> None:
16
16
  super().__init__(*args, **kwargs)
17
17
  self.logger = self.create_logger(log_level)
18
+ self.callstack = []
19
+
20
+ @property
21
+ def num_calls(self) -> int:
22
+ return len(self.callstack)
18
23
 
19
24
  def call(self, action_name: str, *argc, **kwargs) -> Any:
20
25
  self.logger.debug(f"Executing '{action_name}'...")
26
+ self.callstack.append(action_name)
21
27
  try:
22
28
  return super().call(action_name, *argc, **kwargs)
23
29
  except WialonError as e:
24
- self.logger.critical(e)
30
+ self.logger.critical(f"Failed to execute '{action_name}':'{e}'")
25
31
  raise
26
32
 
27
33
  def create_logger(self, log_level: int) -> logging.Logger:
@@ -276,6 +282,9 @@ class WialonSession:
276
282
  """
277
283
  self.logger.debug(f"Logging out of Wialon API session '{self.id}'...")
278
284
  response: dict = self.wialon_api.core_logout({})
285
+ self.logger.info(
286
+ f"Called the Wialon API {self.wialon_api.num_calls} times during session '{self.id}'."
287
+ )
279
288
  if response.get("error") != 0:
280
289
  self.logger.critical(response.get("error"))
281
290
  raise WialonLogoutError(str(self.id))
@@ -504,7 +504,7 @@ wheels = [
504
504
 
505
505
  [[package]]
506
506
  name = "python-terminusgps"
507
- version = "1.13.4"
507
+ version = "1.13.6"
508
508
  source = { editable = "." }
509
509
  dependencies = [
510
510
  { name = "argparse" },