python-terminusgps 20.6.1__tar.gz → 20.6.2__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.

Files changed (58) hide show
  1. {python_terminusgps-20.6.1 → python_terminusgps-20.6.2}/PKG-INFO +1 -2
  2. {python_terminusgps-20.6.1 → python_terminusgps-20.6.2}/docs/source/conf.py +1 -1
  3. {python_terminusgps-20.6.1 → python_terminusgps-20.6.2}/docs/source/index.rst +1 -0
  4. {python_terminusgps-20.6.1 → python_terminusgps-20.6.2}/docs/source/wialon/examples.rst +33 -8
  5. {python_terminusgps-20.6.1 → python_terminusgps-20.6.2}/docs/source/wialon/index.rst +0 -1
  6. {python_terminusgps-20.6.1 → python_terminusgps-20.6.2}/pyproject.toml +1 -2
  7. {python_terminusgps-20.6.1 → python_terminusgps-20.6.2}/terminusgps/wialon/utils.py +0 -1
  8. {python_terminusgps-20.6.1 → python_terminusgps-20.6.2}/uv.lock +1 -3
  9. {python_terminusgps-20.6.1 → python_terminusgps-20.6.2}/.gitignore +0 -0
  10. {python_terminusgps-20.6.1 → python_terminusgps-20.6.2}/.readthedocs.yaml +0 -0
  11. {python_terminusgps-20.6.1 → python_terminusgps-20.6.2}/COPYING +0 -0
  12. {python_terminusgps-20.6.1 → python_terminusgps-20.6.2}/README.md +0 -0
  13. {python_terminusgps-20.6.1 → python_terminusgps-20.6.2}/docs/Makefile +0 -0
  14. {python_terminusgps-20.6.1 → python_terminusgps-20.6.2}/docs/make.bat +0 -0
  15. {python_terminusgps-20.6.1 → python_terminusgps-20.6.2}/docs/source/authorizenet/auth.rst +0 -0
  16. {python_terminusgps-20.6.1 → python_terminusgps-20.6.2}/docs/source/authorizenet/index.rst +0 -0
  17. {python_terminusgps-20.6.1 → python_terminusgps-20.6.2}/docs/source/authorizenet/profiles.rst +0 -0
  18. {python_terminusgps-20.6.1 → python_terminusgps-20.6.2}/docs/source/aws/index.rst +0 -0
  19. {python_terminusgps-20.6.1 → python_terminusgps-20.6.2}/docs/source/aws/secrets.rst +0 -0
  20. {python_terminusgps-20.6.1/docs/source/wialon → python_terminusgps-20.6.2/docs/source}/settings.rst +0 -0
  21. {python_terminusgps-20.6.1 → python_terminusgps-20.6.2}/docs/source/twilio/caller.rst +0 -0
  22. {python_terminusgps-20.6.1 → python_terminusgps-20.6.2}/docs/source/twilio/index.rst +0 -0
  23. {python_terminusgps-20.6.1 → python_terminusgps-20.6.2}/docs/source/wialon/constants.rst +0 -0
  24. {python_terminusgps-20.6.1 → python_terminusgps-20.6.2}/docs/source/wialon/errors.rst +0 -0
  25. {python_terminusgps-20.6.1 → python_terminusgps-20.6.2}/docs/source/wialon/flags.rst +0 -0
  26. {python_terminusgps-20.6.1 → python_terminusgps-20.6.2}/docs/source/wialon/items.rst +0 -0
  27. {python_terminusgps-20.6.1 → python_terminusgps-20.6.2}/docs/source/wialon/session.rst +0 -0
  28. {python_terminusgps-20.6.1 → python_terminusgps-20.6.2}/docs/source/wialon/utils.rst +0 -0
  29. {python_terminusgps-20.6.1 → python_terminusgps-20.6.2}/terminusgps/__init__.py +0 -0
  30. {python_terminusgps-20.6.1 → python_terminusgps-20.6.2}/terminusgps/authorizenet/__init__.py +0 -0
  31. {python_terminusgps-20.6.1 → python_terminusgps-20.6.2}/terminusgps/authorizenet/auth.py +0 -0
  32. {python_terminusgps-20.6.1 → python_terminusgps-20.6.2}/terminusgps/authorizenet/profiles/__init__.py +0 -0
  33. {python_terminusgps-20.6.1 → python_terminusgps-20.6.2}/terminusgps/authorizenet/profiles/addresses.py +0 -0
  34. {python_terminusgps-20.6.1 → python_terminusgps-20.6.2}/terminusgps/authorizenet/profiles/base.py +0 -0
  35. {python_terminusgps-20.6.1 → python_terminusgps-20.6.2}/terminusgps/authorizenet/profiles/customers.py +0 -0
  36. {python_terminusgps-20.6.1 → python_terminusgps-20.6.2}/terminusgps/authorizenet/profiles/payments.py +0 -0
  37. {python_terminusgps-20.6.1 → python_terminusgps-20.6.2}/terminusgps/authorizenet/subscriptions.py +0 -0
  38. {python_terminusgps-20.6.1 → python_terminusgps-20.6.2}/terminusgps/aws/__init__.py +0 -0
  39. {python_terminusgps-20.6.1 → python_terminusgps-20.6.2}/terminusgps/aws/secrets.py +0 -0
  40. {python_terminusgps-20.6.1 → python_terminusgps-20.6.2}/terminusgps/aws/ses.py +0 -0
  41. {python_terminusgps-20.6.1 → python_terminusgps-20.6.2}/terminusgps/settings.py +0 -0
  42. {python_terminusgps-20.6.1 → python_terminusgps-20.6.2}/terminusgps/twilio/__init__.py +0 -0
  43. {python_terminusgps-20.6.1 → python_terminusgps-20.6.2}/terminusgps/twilio/caller.py +0 -0
  44. {python_terminusgps-20.6.1 → python_terminusgps-20.6.2}/terminusgps/wialon/__init__.py +0 -0
  45. {python_terminusgps-20.6.1 → python_terminusgps-20.6.2}/terminusgps/wialon/constants.py +0 -0
  46. {python_terminusgps-20.6.1 → python_terminusgps-20.6.2}/terminusgps/wialon/flags.py +0 -0
  47. {python_terminusgps-20.6.1 → python_terminusgps-20.6.2}/terminusgps/wialon/items/__init__.py +0 -0
  48. {python_terminusgps-20.6.1 → python_terminusgps-20.6.2}/terminusgps/wialon/items/base.py +0 -0
  49. {python_terminusgps-20.6.1 → python_terminusgps-20.6.2}/terminusgps/wialon/items/geofence.py +0 -0
  50. {python_terminusgps-20.6.1 → python_terminusgps-20.6.2}/terminusgps/wialon/items/notification.py +0 -0
  51. {python_terminusgps-20.6.1 → python_terminusgps-20.6.2}/terminusgps/wialon/items/resource.py +0 -0
  52. {python_terminusgps-20.6.1 → python_terminusgps-20.6.2}/terminusgps/wialon/items/retranslator.py +0 -0
  53. {python_terminusgps-20.6.1 → python_terminusgps-20.6.2}/terminusgps/wialon/items/route.py +0 -0
  54. {python_terminusgps-20.6.1 → python_terminusgps-20.6.2}/terminusgps/wialon/items/unit.py +0 -0
  55. {python_terminusgps-20.6.1 → python_terminusgps-20.6.2}/terminusgps/wialon/items/unit_group.py +0 -0
  56. {python_terminusgps-20.6.1 → python_terminusgps-20.6.2}/terminusgps/wialon/items/user.py +0 -0
  57. {python_terminusgps-20.6.1 → python_terminusgps-20.6.2}/terminusgps/wialon/logger.py +0 -0
  58. {python_terminusgps-20.6.1 → python_terminusgps-20.6.2}/terminusgps/wialon/session.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: python-terminusgps
3
- Version: 20.6.1
3
+ Version: 20.6.2
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
@@ -16,6 +16,5 @@ Requires-Dist: argparse>=1.4.0
16
16
  Requires-Dist: authorizenet>=1.1.5
17
17
  Requires-Dist: boto3>=1.34.144
18
18
  Requires-Dist: django>=5.1.5
19
- Requires-Dist: lxml==4.9.4
20
19
  Requires-Dist: python-wialon>=1.2.4
21
20
  Requires-Dist: twilio>=9.4.5
@@ -10,7 +10,7 @@ from sphinxawesome_theme.postprocess import Icons
10
10
  project = "python-terminusgps"
11
11
  copyright = "2025, Terminus GPS, LLC"
12
12
  author = "Terminus GPS, LLC"
13
- release = "20.5.2"
13
+ release = "20.6.1"
14
14
 
15
15
  # -- General configuration ---------------------------------------------------
16
16
  # https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration
@@ -27,6 +27,7 @@ In Python, all subpackages are nested within :py:mod:`terminusgps`:
27
27
  :maxdepth: 2
28
28
  :caption: Contents:
29
29
 
30
+ settings.rst
30
31
  authorizenet/index.rst
31
32
  aws/index.rst
32
33
  twilio/index.rst
@@ -2,34 +2,44 @@ Usage Examples
2
2
  ==============
3
3
 
4
4
  ===============================
5
- Create a new unit and rename it
5
+ Create a new user and rename it
6
6
  ===============================
7
7
 
8
- 1. Import :py:obj:`~terminusgps.wialon.session.WialonSession` and :py:obj:`~terminusgps.wialon.items.unit.WialonUnit`.
8
+ ----------------------------------------------------------------------------------------------------------------------
9
+ 1. Import :py:obj:`~terminusgps.wialon.session.WialonSession` and :py:obj:`~terminusgps.wialon.items.user.WialonUser`.
10
+ ----------------------------------------------------------------------------------------------------------------------
9
11
 
10
12
  Let's also import :py:obj:`~terminusgps.wialon.utils.generate_wialon_password` so we don't have to come up with a valid Wialon password ourselves.
11
13
 
12
14
  .. code:: python
13
15
 
14
16
  from terminusgps.wialon.session import WialonSession
15
- from terminusgps.wialon.items import WialonUnit
17
+ from terminusgps.wialon.items import WialonUser
16
18
  from terminusgps.wialon.utils import generate_wialon_password
17
19
 
18
- 2. Open the session in a context manager and instantiate a unit.
20
+ ----------------------------------------------------------------
21
+ 2. Open the session in a context manager and instantiate a user.
22
+ ----------------------------------------------------------------
23
+
24
+ When creating a new Wialon object, you *must* pass :py:obj:`None` as the ``id`` parameter.
25
+
26
+ It is recommended to only use keyword arguments when instantiating a :py:obj:`~terminusgps.wialon.items.base.WialonBase` object.
19
27
 
20
28
  .. code:: python
21
29
 
22
30
  with WialonSession(token="my_wialon_api_token") as session:
23
- unit = WialonUnit(
31
+ user = WialonUser(
24
32
  id=None,
25
33
  session=session,
26
- creator_id="123",
34
+ creator_id="27884511", # Admin user id
27
35
  name="test_user",
28
36
  password=generate_wialon_password(32)
29
37
  )
30
- print(f"{unit.name = }") # unit.name = "test_user"
38
+ print(f"{user.name = }") # user.name = "test_user"
31
39
 
32
- 3. Within the context manager, :py:obj:`~terminusgps.wialon.items.WialonUnit` methods can be executed.
40
+ -----------------------------------------------------------------------------------------------------------
41
+ 3. Within the context manager, :py:meth:`~terminusgps.wialon.items.base.WialonBase.rename` can be executed.
42
+ -----------------------------------------------------------------------------------------------------------
33
43
 
34
44
  .. code:: python
35
45
 
@@ -37,6 +47,7 @@ Let's also import :py:obj:`~terminusgps.wialon.utils.generate_wialon_password` s
37
47
  ...
38
48
 
39
49
  unit.rename("super_test_user")
50
+ print(f"{user.name = }") # user.name = "super_test_user"
40
51
  # Session is logged out after exiting scope
41
52
 
42
53
  -----------------
@@ -64,14 +75,18 @@ Full code example
64
75
  Create an account and migrate a unit into it
65
76
  ============================================
66
77
 
78
+ ------------------------------------------------------------------------------------------------------------------------------------------------
67
79
  1. Import :py:obj:`~terminusgps.wialon.session.WialonSession`, :py:mod:`~terminusgps.wialon.items`, and :py:mod:`~terminusgps.wialon.constants`.
80
+ ------------------------------------------------------------------------------------------------------------------------------------------------
68
81
 
69
82
  .. code:: python
70
83
 
71
84
  from terminusgps.wialon.session import WialonSession
72
85
  from terminusgps.wialon import items, constants
73
86
 
87
+ --------------------------
74
88
  2. Create an account user.
89
+ --------------------------
75
90
 
76
91
  .. code:: python
77
92
 
@@ -84,7 +99,9 @@ Create an account and migrate a unit into it
84
99
  password="super_secure_password1!",
85
100
  )
86
101
 
102
+ --------------------------------------------
87
103
  3. Create a resource using the account user.
104
+ --------------------------------------------
88
105
 
89
106
  .. code:: python
90
107
 
@@ -97,7 +114,9 @@ Create an account and migrate a unit into it
97
114
  name="account_resource",
98
115
  )
99
116
 
117
+ ------------------------------------------------------------------
100
118
  4. Retrieve a :py:obj:`~terminusgps.wialon.items.unit.WialonUnit`.
119
+ ------------------------------------------------------------------
101
120
 
102
121
  .. code:: python
103
122
 
@@ -105,7 +124,9 @@ Create an account and migrate a unit into it
105
124
  ...
106
125
  unit = items.WialonUnit(id="12345678", session=session)
107
126
 
127
+ ------------------------------------------------
108
128
  5. Grant the account user migration permissions.
129
+ ------------------------------------------------
109
130
 
110
131
  .. code:: python
111
132
 
@@ -113,7 +134,9 @@ Create an account and migrate a unit into it
113
134
  ...
114
135
  account_user.grant_access(unit, access_mask=constants.ACCESSMASK_UNIT_MIGRATION)
115
136
 
137
+ --------------------------------------------------------
116
138
  6. Transform the resource into an account and enable it.
139
+ --------------------------------------------------------
117
140
 
118
141
  .. code:: python
119
142
 
@@ -122,7 +145,9 @@ Create an account and migrate a unit into it
122
145
  account_resource.create_account("terminusgps_ext_hist")
123
146
  account_resource.enable()
124
147
 
148
+ -------------------------------------
125
149
  7. Migrate the unit into the account.
150
+ -------------------------------------
126
151
 
127
152
  .. code:: python
128
153
 
@@ -15,5 +15,4 @@ Wialon API
15
15
  flags.rst
16
16
  items.rst
17
17
  session.rst
18
- settings.rst
19
18
  utils.rst
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "python-terminusgps"
3
- version = "20.6.1"
3
+ version = "20.6.2"
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" } ]
@@ -17,7 +17,6 @@ dependencies = [
17
17
  "authorizenet>=1.1.5",
18
18
  "boto3>=1.34.144",
19
19
  "django>=5.1.5",
20
- "lxml==4.9.4",
21
20
  "python-wialon>=1.2.4",
22
21
  "twilio>=9.4.5",
23
22
  ]
@@ -1,6 +1,5 @@
1
1
  import secrets
2
2
  import string
3
- import warnings
4
3
  import typing
5
4
 
6
5
  from terminusgps.wialon import items, flags
@@ -556,14 +556,13 @@ wheels = [
556
556
 
557
557
  [[package]]
558
558
  name = "python-terminusgps"
559
- version = "20.6.1"
559
+ version = "20.6.2"
560
560
  source = { editable = "." }
561
561
  dependencies = [
562
562
  { name = "argparse" },
563
563
  { name = "authorizenet" },
564
564
  { name = "boto3" },
565
565
  { name = "django" },
566
- { name = "lxml" },
567
566
  { name = "python-wialon" },
568
567
  { name = "twilio" },
569
568
  ]
@@ -581,7 +580,6 @@ requires-dist = [
581
580
  { name = "authorizenet", specifier = ">=1.1.5" },
582
581
  { name = "boto3", specifier = ">=1.34.144" },
583
582
  { name = "django", specifier = ">=5.1.5" },
584
- { name = "lxml", specifier = "==4.9.4" },
585
583
  { name = "python-wialon", specifier = ">=1.2.4" },
586
584
  { name = "twilio", specifier = ">=9.4.5" },
587
585
  ]