python-terminusgps 47.3.2__tar.gz → 47.3.3__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 (54) hide show
  1. {python_terminusgps-47.3.2 → python_terminusgps-47.3.3}/PKG-INFO +1 -1
  2. {python_terminusgps-47.3.2 → python_terminusgps-47.3.3}/docs/source/conf.py +1 -1
  3. {python_terminusgps-47.3.2 → python_terminusgps-47.3.3}/pyproject.toml +1 -1
  4. {python_terminusgps-47.3.2 → python_terminusgps-47.3.3}/terminusgps/default_settings.py +1 -1
  5. {python_terminusgps-47.3.2 → python_terminusgps-47.3.3}/terminusgps/wialon/constants.py +34 -40
  6. {python_terminusgps-47.3.2 → python_terminusgps-47.3.3}/terminusgps/wialon/items/base.py +3 -2
  7. {python_terminusgps-47.3.2 → python_terminusgps-47.3.3}/uv.lock +1 -1
  8. {python_terminusgps-47.3.2 → python_terminusgps-47.3.3}/.github/workflows/sphinx.yml +0 -0
  9. {python_terminusgps-47.3.2 → python_terminusgps-47.3.3}/.gitignore +0 -0
  10. {python_terminusgps-47.3.2 → python_terminusgps-47.3.3}/.python-version +0 -0
  11. {python_terminusgps-47.3.2 → python_terminusgps-47.3.3}/COPYING +0 -0
  12. {python_terminusgps-47.3.2 → python_terminusgps-47.3.3}/README.md +0 -0
  13. {python_terminusgps-47.3.2 → python_terminusgps-47.3.3}/docs/Makefile +0 -0
  14. {python_terminusgps-47.3.2 → python_terminusgps-47.3.3}/docs/make.bat +0 -0
  15. {python_terminusgps-47.3.2 → python_terminusgps-47.3.3}/docs/requirements.txt +0 -0
  16. {python_terminusgps-47.3.2 → python_terminusgps-47.3.3}/docs/source/authorizenet/api.rst +0 -0
  17. {python_terminusgps-47.3.2 → python_terminusgps-47.3.3}/docs/source/authorizenet/constants.rst +0 -0
  18. {python_terminusgps-47.3.2 → python_terminusgps-47.3.3}/docs/source/authorizenet/index.rst +0 -0
  19. {python_terminusgps-47.3.2 → python_terminusgps-47.3.3}/docs/source/authorizenet/service.rst +0 -0
  20. {python_terminusgps-47.3.2 → python_terminusgps-47.3.3}/docs/source/index.rst +0 -0
  21. {python_terminusgps-47.3.2 → python_terminusgps-47.3.3}/docs/source/mixins.rst +0 -0
  22. {python_terminusgps-47.3.2 → python_terminusgps-47.3.3}/docs/source/validators.rst +0 -0
  23. {python_terminusgps-47.3.2 → python_terminusgps-47.3.3}/docs/source/wialon/constants.rst +0 -0
  24. {python_terminusgps-47.3.2 → python_terminusgps-47.3.3}/docs/source/wialon/exceptions.rst +0 -0
  25. {python_terminusgps-47.3.2 → python_terminusgps-47.3.3}/docs/source/wialon/index.rst +0 -0
  26. {python_terminusgps-47.3.2 → python_terminusgps-47.3.3}/docs/source/wialon/items.rst +0 -0
  27. {python_terminusgps-47.3.2 → python_terminusgps-47.3.3}/docs/source/wialon/session.rst +0 -0
  28. {python_terminusgps-47.3.2 → python_terminusgps-47.3.3}/docs/source/wialon/usage.rst +0 -0
  29. {python_terminusgps-47.3.2 → python_terminusgps-47.3.3}/docs/source/wialon/utils.rst +0 -0
  30. {python_terminusgps-47.3.2 → python_terminusgps-47.3.3}/terminusgps/__init__.py +0 -0
  31. {python_terminusgps-47.3.2 → python_terminusgps-47.3.3}/terminusgps/authorizenet/__init__.py +0 -0
  32. {python_terminusgps-47.3.2 → python_terminusgps-47.3.3}/terminusgps/authorizenet/api/__init__.py +0 -0
  33. {python_terminusgps-47.3.2 → python_terminusgps-47.3.3}/terminusgps/authorizenet/api/address_profiles.py +0 -0
  34. {python_terminusgps-47.3.2 → python_terminusgps-47.3.3}/terminusgps/authorizenet/api/customer_profiles.py +0 -0
  35. {python_terminusgps-47.3.2 → python_terminusgps-47.3.3}/terminusgps/authorizenet/api/payment_profiles.py +0 -0
  36. {python_terminusgps-47.3.2 → python_terminusgps-47.3.3}/terminusgps/authorizenet/api/subscriptions.py +0 -0
  37. {python_terminusgps-47.3.2 → python_terminusgps-47.3.3}/terminusgps/authorizenet/api/transactions.py +0 -0
  38. {python_terminusgps-47.3.2 → python_terminusgps-47.3.3}/terminusgps/authorizenet/constants.py +0 -0
  39. {python_terminusgps-47.3.2 → python_terminusgps-47.3.3}/terminusgps/authorizenet/service.py +0 -0
  40. {python_terminusgps-47.3.2 → python_terminusgps-47.3.3}/terminusgps/mixins.py +0 -0
  41. {python_terminusgps-47.3.2 → python_terminusgps-47.3.3}/terminusgps/validators.py +0 -0
  42. {python_terminusgps-47.3.2 → python_terminusgps-47.3.3}/terminusgps/wialon/__init__.py +0 -0
  43. {python_terminusgps-47.3.2 → python_terminusgps-47.3.3}/terminusgps/wialon/flags.py +0 -0
  44. {python_terminusgps-47.3.2 → python_terminusgps-47.3.3}/terminusgps/wialon/items/__init__.py +0 -0
  45. {python_terminusgps-47.3.2 → python_terminusgps-47.3.3}/terminusgps/wialon/items/account.py +0 -0
  46. {python_terminusgps-47.3.2 → python_terminusgps-47.3.3}/terminusgps/wialon/items/factory.py +0 -0
  47. {python_terminusgps-47.3.2 → python_terminusgps-47.3.3}/terminusgps/wialon/items/resource.py +0 -0
  48. {python_terminusgps-47.3.2 → python_terminusgps-47.3.3}/terminusgps/wialon/items/retranslator.py +0 -0
  49. {python_terminusgps-47.3.2 → python_terminusgps-47.3.3}/terminusgps/wialon/items/route.py +0 -0
  50. {python_terminusgps-47.3.2 → python_terminusgps-47.3.3}/terminusgps/wialon/items/unit.py +0 -0
  51. {python_terminusgps-47.3.2 → python_terminusgps-47.3.3}/terminusgps/wialon/items/unit_group.py +0 -0
  52. {python_terminusgps-47.3.2 → python_terminusgps-47.3.3}/terminusgps/wialon/items/user.py +0 -0
  53. {python_terminusgps-47.3.2 → python_terminusgps-47.3.3}/terminusgps/wialon/session.py +0 -0
  54. {python_terminusgps-47.3.2 → python_terminusgps-47.3.3}/terminusgps/wialon/utils.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: python-terminusgps
3
- Version: 47.3.2
3
+ Version: 47.3.3
4
4
  Summary: Provides abstractions/utilities for working with Wialon API, Authorize.NET API, AWS API, and more.
5
5
  Project-URL: Documentation, https://terminusgps.github.io/python-terminusgps
6
6
  Project-URL: Repository, https://github.com/terminusgps/python-terminusgps
@@ -12,7 +12,7 @@ sys.path.insert(0, os.path.abspath("../../"))
12
12
  project = "python-terminusgps"
13
13
  copyright = "2025, Terminus GPS, LLC"
14
14
  author = "Terminus GPS, LLC"
15
- release = "47.3.2"
15
+ release = "47.3.3"
16
16
 
17
17
  # -- General configuration ---------------------------------------------------
18
18
  # https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "python-terminusgps"
3
- version = "47.3.2"
3
+ version = "47.3.3"
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" } ]
@@ -8,6 +8,7 @@ BASE_DIR = pathlib.Path(__file__).resolve().parent
8
8
  DEBUG = True
9
9
  SECRET_KEY = "xem*6no%8d9%^qzt2f3x3ar-uq4_+7h9myc$t0!+4%bj5us6f)"
10
10
  USE_TZ = False
11
+ USE_I18N = False
11
12
 
12
13
  MERCHANT_AUTH_ENVIRONMENT = Environment.SANDBOX
13
14
  MERCHANT_AUTH_VALIDATION_MODE = ValidationMode.TEST
@@ -16,4 +17,3 @@ MERCHANT_AUTH_VALIDATION_MODE = ValidationMode.TEST
16
17
  MERCHANT_AUTH_LOGIN_ID = os.getenv("MERCHANT_AUTH_LOGIN_ID")
17
18
  MERCHANT_AUTH_TRANSACTION_KEY = os.getenv("MERCHANT_AUTH_TRANSACTION_KEY")
18
19
  WIALON_TOKEN = os.getenv("WIALON_TOKEN")
19
- WIALON_USERNAME = os.getenv("WIALON_USERNAME")
@@ -314,51 +314,45 @@ class WialonLogAction(enum.StrEnum):
314
314
  """
315
315
 
316
316
 
317
- ACCESSMASK_RESOURCE_BASIC: int = sum(
318
- [
319
- flags.AccessFlag.MANAGE_CUSTOM_FIELDS,
320
- flags.AccessFlag.RESOURCE_MANAGE_DRIVERS,
321
- flags.AccessFlag.RESOURCE_MANAGE_GEOFENCES,
322
- flags.AccessFlag.RESOURCE_MANAGE_NOTIFICATIONS,
323
- flags.AccessFlag.RESOURCE_VIEW_DRIVERS,
324
- flags.AccessFlag.RESOURCE_VIEW_GEOFENCES,
325
- flags.AccessFlag.RESOURCE_VIEW_NOTIFICATIONS,
326
- flags.AccessFlag.RESOURCE_VIEW_ORDERS,
327
- flags.AccessFlag.RESOURCE_VIEW_POIS,
328
- flags.AccessFlag.RESOURCE_VIEW_TRAILERS,
329
- flags.AccessFlag.VIEW_ADMIN_FIELDS,
330
- flags.AccessFlag.VIEW_CUSTOM_FIELDS,
331
- flags.AccessFlag.VIEW_ITEM_BASIC,
332
- ]
317
+ ACCESSMASK_RESOURCE_BASIC: int = (
318
+ flags.AccessFlag.MANAGE_CUSTOM_FIELDS
319
+ | flags.AccessFlag.RESOURCE_MANAGE_DRIVERS
320
+ | flags.AccessFlag.RESOURCE_MANAGE_GEOFENCES
321
+ | flags.AccessFlag.RESOURCE_MANAGE_NOTIFICATIONS
322
+ | flags.AccessFlag.RESOURCE_VIEW_DRIVERS
323
+ | flags.AccessFlag.RESOURCE_VIEW_GEOFENCES
324
+ | flags.AccessFlag.RESOURCE_VIEW_NOTIFICATIONS
325
+ | flags.AccessFlag.RESOURCE_VIEW_ORDERS
326
+ | flags.AccessFlag.RESOURCE_VIEW_POIS
327
+ | flags.AccessFlag.RESOURCE_VIEW_TRAILERS
328
+ | flags.AccessFlag.VIEW_ADMIN_FIELDS
329
+ | flags.AccessFlag.VIEW_CUSTOM_FIELDS
330
+ | flags.AccessFlag.VIEW_ITEM_BASIC
333
331
  )
334
332
  """Basic resource permissions"""
335
333
 
336
- ACCESSMASK_UNIT_BASIC: int = sum(
337
- [
338
- flags.AccessFlag.MANAGE_CUSTOM_FIELDS,
339
- flags.AccessFlag.MANAGE_ICON,
340
- flags.AccessFlag.QUERY_REPORTS,
341
- flags.AccessFlag.RENAME_ITEM,
342
- flags.AccessFlag.UNIT_EXECUTE_COMMANDS,
343
- flags.AccessFlag.UNIT_EXPORT_MESSAGES,
344
- flags.AccessFlag.UNIT_IMPORT_MESSAGES,
345
- flags.AccessFlag.UNIT_REGISTER_EVENTS,
346
- flags.AccessFlag.UNIT_VIEW_SERVICE_INTERVALS,
347
- flags.AccessFlag.VIEW_ATTACHED_FILES,
348
- flags.AccessFlag.VIEW_CUSTOM_FIELDS,
349
- flags.AccessFlag.VIEW_ITEM_BASIC,
350
- flags.AccessFlag.VIEW_ITEM_DETAILED,
351
- ]
334
+ ACCESSMASK_UNIT_BASIC: int = (
335
+ flags.AccessFlag.MANAGE_CUSTOM_FIELDS
336
+ | flags.AccessFlag.MANAGE_ICON
337
+ | flags.AccessFlag.QUERY_REPORTS
338
+ | flags.AccessFlag.RENAME_ITEM
339
+ | flags.AccessFlag.UNIT_EXECUTE_COMMANDS
340
+ | flags.AccessFlag.UNIT_EXPORT_MESSAGES
341
+ | flags.AccessFlag.UNIT_IMPORT_MESSAGES
342
+ | flags.AccessFlag.UNIT_REGISTER_EVENTS
343
+ | flags.AccessFlag.UNIT_VIEW_SERVICE_INTERVALS
344
+ | flags.AccessFlag.VIEW_ATTACHED_FILES
345
+ | flags.AccessFlag.VIEW_CUSTOM_FIELDS
346
+ | flags.AccessFlag.VIEW_ITEM_BASIC
347
+ | flags.AccessFlag.VIEW_ITEM_DETAILED
352
348
  )
353
349
  """Basic unit permissions"""
354
350
 
355
- ACCESSMASK_UNIT_MIGRATION: int = sum(
356
- [
357
- flags.AccessFlag.DELETE_ITEM,
358
- flags.AccessFlag.MANAGE_ITEM_ACCESS,
359
- flags.AccessFlag.UNIT_DELETE_MESSAGES,
360
- flags.AccessFlag.UNIT_MANAGE_CONNECTIVITY,
361
- flags.AccessFlag.VIEW_ITEM_BASIC,
362
- ]
351
+ ACCESSMASK_UNIT_MIGRATION: int = (
352
+ flags.AccessFlag.DELETE_ITEM
353
+ | flags.AccessFlag.MANAGE_ITEM_ACCESS
354
+ | flags.AccessFlag.UNIT_DELETE_MESSAGES
355
+ | flags.AccessFlag.UNIT_MANAGE_CONNECTIVITY
356
+ | flags.AccessFlag.VIEW_ITEM_BASIC
363
357
  )
364
358
  """Unit migration permissions"""
@@ -6,11 +6,12 @@ from terminusgps.wialon.session import WialonSession
6
6
 
7
7
 
8
8
  def requires_id(meth):
9
- """Raises :py:exec:`AssertionError` before calling the method if the Wialon object's id wasn't set."""
9
+ """Raises :py:exec:`AttributeError` before calling the method if the Wialon object's id wasn't set."""
10
10
 
11
11
  @wraps(meth)
12
12
  def wrapper(self, *args, **kwargs):
13
- assert self.id, "Wialon object id wasn't set."
13
+ if not hasattr(self, "id") or not self.id:
14
+ raise AttributeError("Wialon object id wasn't set.")
14
15
  return meth(self, *args, **kwargs)
15
16
 
16
17
  return wrapper
@@ -338,7 +338,7 @@ wheels = [
338
338
 
339
339
  [[package]]
340
340
  name = "python-terminusgps"
341
- version = "47.3.2"
341
+ version = "47.3.3"
342
342
  source = { editable = "." }
343
343
  dependencies = [
344
344
  { name = "authorizenet" },