python-terminusgps 20.5.3__tar.gz → 20.6.1__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 (60) hide show
  1. {python_terminusgps-20.5.3 → python_terminusgps-20.6.1}/PKG-INFO +1 -1
  2. {python_terminusgps-20.5.3 → python_terminusgps-20.6.1}/docs/source/conf.py +3 -0
  3. python_terminusgps-20.6.1/docs/source/wialon/constants.rst +8 -0
  4. {python_terminusgps-20.5.3 → python_terminusgps-20.6.1}/docs/source/wialon/examples.rst +1 -1
  5. {python_terminusgps-20.5.3 → python_terminusgps-20.6.1}/docs/source/wialon/items.rst +7 -6
  6. {python_terminusgps-20.5.3 → python_terminusgps-20.6.1}/docs/source/wialon/session.rst +2 -0
  7. {python_terminusgps-20.5.3 → python_terminusgps-20.6.1}/docs/source/wialon/utils.rst +0 -1
  8. {python_terminusgps-20.5.3 → python_terminusgps-20.6.1}/pyproject.toml +2 -1
  9. {python_terminusgps-20.5.3 → python_terminusgps-20.6.1}/terminusgps/wialon/constants.py +3 -0
  10. {python_terminusgps-20.5.3 → python_terminusgps-20.6.1}/terminusgps/wialon/session.py +2 -0
  11. {python_terminusgps-20.5.3 → python_terminusgps-20.6.1}/terminusgps/wialon/utils.py +0 -23
  12. {python_terminusgps-20.5.3 → python_terminusgps-20.6.1}/uv.lock +26 -1
  13. python_terminusgps-20.5.3/docs/requirements.txt +0 -53
  14. python_terminusgps-20.5.3/docs/source/wialon/constants.rst +0 -19
  15. {python_terminusgps-20.5.3 → python_terminusgps-20.6.1}/.gitignore +0 -0
  16. {python_terminusgps-20.5.3 → python_terminusgps-20.6.1}/.readthedocs.yaml +0 -0
  17. {python_terminusgps-20.5.3 → python_terminusgps-20.6.1}/COPYING +0 -0
  18. {python_terminusgps-20.5.3 → python_terminusgps-20.6.1}/README.md +0 -0
  19. {python_terminusgps-20.5.3 → python_terminusgps-20.6.1}/docs/Makefile +0 -0
  20. {python_terminusgps-20.5.3 → python_terminusgps-20.6.1}/docs/make.bat +0 -0
  21. {python_terminusgps-20.5.3 → python_terminusgps-20.6.1}/docs/source/authorizenet/auth.rst +0 -0
  22. {python_terminusgps-20.5.3 → python_terminusgps-20.6.1}/docs/source/authorizenet/index.rst +0 -0
  23. {python_terminusgps-20.5.3 → python_terminusgps-20.6.1}/docs/source/authorizenet/profiles.rst +0 -0
  24. {python_terminusgps-20.5.3 → python_terminusgps-20.6.1}/docs/source/aws/index.rst +0 -0
  25. {python_terminusgps-20.5.3 → python_terminusgps-20.6.1}/docs/source/aws/secrets.rst +0 -0
  26. {python_terminusgps-20.5.3 → python_terminusgps-20.6.1}/docs/source/index.rst +0 -0
  27. {python_terminusgps-20.5.3 → python_terminusgps-20.6.1}/docs/source/twilio/caller.rst +0 -0
  28. {python_terminusgps-20.5.3 → python_terminusgps-20.6.1}/docs/source/twilio/index.rst +0 -0
  29. {python_terminusgps-20.5.3 → python_terminusgps-20.6.1}/docs/source/wialon/errors.rst +0 -0
  30. {python_terminusgps-20.5.3 → python_terminusgps-20.6.1}/docs/source/wialon/flags.rst +0 -0
  31. {python_terminusgps-20.5.3 → python_terminusgps-20.6.1}/docs/source/wialon/index.rst +0 -0
  32. {python_terminusgps-20.5.3 → python_terminusgps-20.6.1}/docs/source/wialon/settings.rst +0 -0
  33. {python_terminusgps-20.5.3 → python_terminusgps-20.6.1}/terminusgps/__init__.py +0 -0
  34. {python_terminusgps-20.5.3 → python_terminusgps-20.6.1}/terminusgps/authorizenet/__init__.py +0 -0
  35. {python_terminusgps-20.5.3 → python_terminusgps-20.6.1}/terminusgps/authorizenet/auth.py +0 -0
  36. {python_terminusgps-20.5.3 → python_terminusgps-20.6.1}/terminusgps/authorizenet/profiles/__init__.py +0 -0
  37. {python_terminusgps-20.5.3 → python_terminusgps-20.6.1}/terminusgps/authorizenet/profiles/addresses.py +0 -0
  38. {python_terminusgps-20.5.3 → python_terminusgps-20.6.1}/terminusgps/authorizenet/profiles/base.py +0 -0
  39. {python_terminusgps-20.5.3 → python_terminusgps-20.6.1}/terminusgps/authorizenet/profiles/customers.py +0 -0
  40. {python_terminusgps-20.5.3 → python_terminusgps-20.6.1}/terminusgps/authorizenet/profiles/payments.py +0 -0
  41. {python_terminusgps-20.5.3 → python_terminusgps-20.6.1}/terminusgps/authorizenet/subscriptions.py +0 -0
  42. {python_terminusgps-20.5.3 → python_terminusgps-20.6.1}/terminusgps/aws/__init__.py +0 -0
  43. {python_terminusgps-20.5.3 → python_terminusgps-20.6.1}/terminusgps/aws/secrets.py +0 -0
  44. {python_terminusgps-20.5.3 → python_terminusgps-20.6.1}/terminusgps/aws/ses.py +0 -0
  45. {python_terminusgps-20.5.3 → python_terminusgps-20.6.1}/terminusgps/settings.py +0 -0
  46. {python_terminusgps-20.5.3 → python_terminusgps-20.6.1}/terminusgps/twilio/__init__.py +0 -0
  47. {python_terminusgps-20.5.3 → python_terminusgps-20.6.1}/terminusgps/twilio/caller.py +0 -0
  48. {python_terminusgps-20.5.3 → python_terminusgps-20.6.1}/terminusgps/wialon/__init__.py +0 -0
  49. {python_terminusgps-20.5.3 → python_terminusgps-20.6.1}/terminusgps/wialon/flags.py +0 -0
  50. {python_terminusgps-20.5.3 → python_terminusgps-20.6.1}/terminusgps/wialon/items/__init__.py +0 -0
  51. {python_terminusgps-20.5.3 → python_terminusgps-20.6.1}/terminusgps/wialon/items/base.py +0 -0
  52. {python_terminusgps-20.5.3 → python_terminusgps-20.6.1}/terminusgps/wialon/items/geofence.py +0 -0
  53. {python_terminusgps-20.5.3 → python_terminusgps-20.6.1}/terminusgps/wialon/items/notification.py +0 -0
  54. {python_terminusgps-20.5.3 → python_terminusgps-20.6.1}/terminusgps/wialon/items/resource.py +0 -0
  55. {python_terminusgps-20.5.3 → python_terminusgps-20.6.1}/terminusgps/wialon/items/retranslator.py +0 -0
  56. {python_terminusgps-20.5.3 → python_terminusgps-20.6.1}/terminusgps/wialon/items/route.py +0 -0
  57. {python_terminusgps-20.5.3 → python_terminusgps-20.6.1}/terminusgps/wialon/items/unit.py +0 -0
  58. {python_terminusgps-20.5.3 → python_terminusgps-20.6.1}/terminusgps/wialon/items/unit_group.py +0 -0
  59. {python_terminusgps-20.5.3 → python_terminusgps-20.6.1}/terminusgps/wialon/items/user.py +0 -0
  60. {python_terminusgps-20.5.3 → python_terminusgps-20.6.1}/terminusgps/wialon/logger.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: python-terminusgps
3
- Version: 20.5.3
3
+ Version: 20.6.1
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,7 @@ release = "20.5.2"
16
16
  # https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration
17
17
 
18
18
  extensions = [
19
+ "autoclasstoc",
19
20
  "sphinx.ext.autodoc",
20
21
  "sphinx.ext.autosummary",
21
22
  "sphinx.ext.intersphinx",
@@ -40,4 +41,6 @@ exclude_patterns = []
40
41
 
41
42
  html_theme = "sphinxawesome_theme"
42
43
  html_permalinks_icon = Icons.permalinks_icon
44
+ pygments_style = "sas"
45
+ pygments_style_dark = "lightbulb"
43
46
  html_static_path = ["_static"]
@@ -0,0 +1,8 @@
1
+ Constants
2
+ =========
3
+
4
+ .. currentmodule:: terminusgps.wialon.constants
5
+
6
+ .. autodata:: ACCESSMASK_RESOURCE_BASIC
7
+ .. autodata:: ACCESSMASK_UNIT_BASIC
8
+ .. autodata:: ACCESSMASK_UNIT_MIGRATION
@@ -5,7 +5,7 @@ Usage Examples
5
5
  Create a new unit and rename it
6
6
  ===============================
7
7
 
8
- 1. Import :py:obj:`~terminusgps.wialon.session.WialonSession` and :py:obj:`~terminusgps.wialon.items.WialonUnit`.
8
+ 1. Import :py:obj:`~terminusgps.wialon.session.WialonSession` and :py:obj:`~terminusgps.wialon.items.unit.WialonUnit`.
9
9
 
10
10
  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
11
 
@@ -3,27 +3,28 @@ Items
3
3
 
4
4
  .. autoclass:: terminusgps.wialon.items.base.WialonBase
5
5
  :members:
6
-
7
- .. autoclass:: terminusgps.wialon.items.geofence.WialonGeofence
8
- :members:
9
-
10
- .. autoclass:: terminusgps.wialon.items.notification.WialonNotification
11
- :members:
6
+ :autoclasstoc:
12
7
 
13
8
  .. autoclass:: terminusgps.wialon.items.resource.WialonResource
14
9
  :members:
10
+ :autoclasstoc:
15
11
 
16
12
  .. autoclass:: terminusgps.wialon.items.retranslator.WialonRetranslator
17
13
  :members:
14
+ :autoclasstoc:
18
15
 
19
16
  .. autoclass:: terminusgps.wialon.items.route.WialonRoute
20
17
  :members:
18
+ :autoclasstoc:
21
19
 
22
20
  .. autoclass:: terminusgps.wialon.items.unit.WialonUnit
23
21
  :members:
22
+ :autoclasstoc:
24
23
 
25
24
  .. autoclass:: terminusgps.wialon.items.unit_group.WialonUnitGroup
26
25
  :members:
26
+ :autoclasstoc:
27
27
 
28
28
  .. autoclass:: terminusgps.wialon.items.user.WialonUser
29
29
  :members:
30
+ :autoclasstoc:
@@ -4,9 +4,11 @@ Wialon API Sessions
4
4
  .. autoclass:: terminusgps.wialon.session.WialonSession
5
5
  :members:
6
6
  :class-doc-from: init
7
+ :autoclasstoc:
7
8
 
8
9
  .. autoclass:: terminusgps.wialon.session.WialonSessionManager
9
10
  :members:
11
+ :autoclasstoc:
10
12
 
11
13
 
12
14
  =====
@@ -7,7 +7,6 @@ Functions
7
7
 
8
8
  .. automodule:: terminusgps.wialon.utils
9
9
  :members:
10
- :exclude-members: gen_wialon_password
11
10
 
12
11
  =====
13
12
  Usage
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "python-terminusgps"
3
- version = "20.5.3"
3
+ version = "20.6.1"
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" } ]
@@ -69,6 +69,7 @@ skip-magic-trailing-comma = true
69
69
 
70
70
  [dependency-groups]
71
71
  dev = [
72
+ "autoclasstoc>=1.7.0",
72
73
  "sphinx>=8.1.3",
73
74
  "sphinxawesome-theme>=5.3.2",
74
75
  ]
@@ -17,6 +17,7 @@ ACCESSMASK_RESOURCE_BASIC: int = sum(
17
17
  flags.ACCESSFLAG_RESOURCE_VIEW_TRAILERS,
18
18
  ]
19
19
  )
20
+ """Basic resource permissions"""
20
21
 
21
22
  ACCESSMASK_UNIT_BASIC: int = sum(
22
23
  [
@@ -35,6 +36,7 @@ ACCESSMASK_UNIT_BASIC: int = sum(
35
36
  flags.ACCESSFLAG_UNIT_EXPORT_MESSAGES,
36
37
  ]
37
38
  )
39
+ """Basic unit permissions"""
38
40
 
39
41
  ACCESSMASK_UNIT_MIGRATION: int = sum(
40
42
  [
@@ -45,3 +47,4 @@ ACCESSMASK_UNIT_MIGRATION: int = sum(
45
47
  flags.ACCESSFLAG_VIEW_ITEM_BASIC,
46
48
  ]
47
49
  )
50
+ """Unit migration permissions"""
@@ -101,11 +101,13 @@ class WialonSession:
101
101
  ).get_logger()
102
102
 
103
103
  def __enter__(self) -> "WialonSession":
104
+ """Logs into the Wialon API using a token set in :py:meth:`__init__`."""
104
105
  assert self.token, "Wialon API token was not set"
105
106
  self.login(self.token)
106
107
  return self
107
108
 
108
109
  def __exit__(self, *args, **kwargs) -> None:
110
+ """Logs out of the session by calling :py:meth:`logout`."""
109
111
  self.logout()
110
112
 
111
113
  @property
@@ -172,26 +172,3 @@ def generate_wialon_password(length: int = 32) -> str:
172
172
  ):
173
173
  break
174
174
  return password
175
-
176
-
177
- def gen_wialon_password(length: int = 32) -> str:
178
- """
179
- DEPRECATED: Use :py:func:`~terminusgps.wialon.utils.generate_wialon_password` instead.
180
-
181
- Generates a Wialon compliant password of random characters.
182
-
183
- Password length can be between ``8`` and ``64`` characters.
184
-
185
- :param length: Length of the generated password. Default is ``32``.
186
- :type length: :py:obj:`int`
187
- :raises ValueError: If the provided length is invalid.
188
- :returns: A Wialon compliant password.
189
- :rtype: :py:obj:`str`
190
-
191
- """
192
- warnings.warn(
193
- "gen_wialon_password is deprecated and will be removed in a future version. Use generate_wialon_password instead.",
194
- DeprecationWarning,
195
- stacklevel=2,
196
- )
197
- return generate_wialon_password(length)
@@ -130,6 +130,20 @@ dependencies = [
130
130
  ]
131
131
  sdist = { url = "https://files.pythonhosted.org/packages/2d/9a/61c151f508a9b32014b622c9c65b614c7c32068201eee1d93c93010558bc/authorizenet-1.1.5.tar.gz", hash = "sha256:ba8b538028201c01d7ed097ea0842f7732c220472006d105b4a6b948ddcaf4dc", size = 158959 }
132
132
 
133
+ [[package]]
134
+ name = "autoclasstoc"
135
+ version = "1.7.0"
136
+ source = { registry = "https://pypi.org/simple" }
137
+ dependencies = [
138
+ { name = "docutils" },
139
+ { name = "more-itertools" },
140
+ { name = "sphinx" },
141
+ ]
142
+ sdist = { url = "https://files.pythonhosted.org/packages/87/9f/e3ef0f487fb0ced67f5f527cc0b528a8607f1d2eefb77ff4f06316178e87/autoclasstoc-1.7.0.tar.gz", hash = "sha256:93a604be070a1f0ab19b0a0dd9d03d3fb16377da8a7a49ed8919692ef882775a", size = 11193 }
143
+ wheels = [
144
+ { url = "https://files.pythonhosted.org/packages/73/46/a8f6be3b9f410949be16ca33ca5ac533398de705327d156446d298631f64/autoclasstoc-1.7.0-py3-none-any.whl", hash = "sha256:00d7f8450d9fb043a500a0ac5fe9cda3699d51d68211f183178734f14df526ec", size = 12247 },
145
+ ]
146
+
133
147
  [[package]]
134
148
  name = "babel"
135
149
  version = "2.17.0"
@@ -396,6 +410,15 @@ wheels = [
396
410
  { url = "https://files.pythonhosted.org/packages/4f/65/6079a46068dfceaeabb5dcad6d674f5f5c61a6fa5673746f42a9f4c233b3/MarkupSafe-3.0.2-cp313-cp313t-win_amd64.whl", hash = "sha256:e444a31f8db13eb18ada366ab3cf45fd4b31e4db1236a4448f68778c1d1a5a2f", size = 15739 },
397
411
  ]
398
412
 
413
+ [[package]]
414
+ name = "more-itertools"
415
+ version = "10.6.0"
416
+ source = { registry = "https://pypi.org/simple" }
417
+ sdist = { url = "https://files.pythonhosted.org/packages/88/3b/7fa1fe835e2e93fd6d7b52b2f95ae810cf5ba133e1845f726f5a992d62c2/more-itertools-10.6.0.tar.gz", hash = "sha256:2cd7fad1009c31cc9fb6a035108509e6547547a7a738374f10bd49a09eb3ee3b", size = 125009 }
418
+ wheels = [
419
+ { url = "https://files.pythonhosted.org/packages/23/62/0fe302c6d1be1c777cab0616e6302478251dfbf9055ad426f5d0def75c89/more_itertools-10.6.0-py3-none-any.whl", hash = "sha256:6eb054cb4b6db1473f6e15fcc676a08e4732548acd47c708f0e179c2c7c01e89", size = 63038 },
420
+ ]
421
+
399
422
  [[package]]
400
423
  name = "multidict"
401
424
  version = "6.1.0"
@@ -533,7 +556,7 @@ wheels = [
533
556
 
534
557
  [[package]]
535
558
  name = "python-terminusgps"
536
- version = "20.5.3"
559
+ version = "20.6.1"
537
560
  source = { editable = "." }
538
561
  dependencies = [
539
562
  { name = "argparse" },
@@ -547,6 +570,7 @@ dependencies = [
547
570
 
548
571
  [package.dev-dependencies]
549
572
  dev = [
573
+ { name = "autoclasstoc" },
550
574
  { name = "sphinx" },
551
575
  { name = "sphinxawesome-theme" },
552
576
  ]
@@ -564,6 +588,7 @@ requires-dist = [
564
588
 
565
589
  [package.metadata.requires-dev]
566
590
  dev = [
591
+ { name = "autoclasstoc", specifier = ">=1.7.0" },
567
592
  { name = "sphinx", specifier = ">=8.1.3" },
568
593
  { name = "sphinxawesome-theme", specifier = ">=5.3.2" },
569
594
  ]
@@ -1,53 +0,0 @@
1
- aiohappyeyeballs==2.4.6
2
- aiohttp==3.11.12
3
- aiohttp-retry==2.9.1
4
- aiosignal==1.3.2
5
- alabaster==1.0.0
6
- argparse==1.4.0
7
- asgiref==3.8.1
8
- attrs==25.1.0
9
- authorizenet==1.1.5
10
- babel==2.17.0
11
- beautifulsoup4==4.13.3
12
- boto3==1.36.23
13
- botocore==1.36.23
14
- certifi==2025.1.31
15
- charset-normalizer==3.4.1
16
- django==5.1.6
17
- docutils==0.21.2
18
- frozenlist==1.5.0
19
- future==1.0.0
20
- idna==3.10
21
- imagesize==1.4.1
22
- jinja2==3.1.5
23
- jmespath==1.0.1
24
- lxml==4.9.4
25
- markupsafe==3.0.2
26
- multidict==6.1.0
27
- packaging==24.2
28
- propcache==0.2.1
29
- pygments==2.19.1
30
- pyjwt==2.10.1
31
- python-dateutil==2.9.0.post0
32
- python-wialon==1.2.4
33
- pyxb-x==1.2.6.3
34
- requests==2.32.3
35
- roman-numerals-py==3.0.0
36
- s3transfer==0.11.2
37
- simplejson==3.20.1
38
- six==1.17.0
39
- snowballstemmer==2.2.0
40
- soupsieve==2.6
41
- sphinx==8.2.0
42
- sphinxawesome-theme==5.3.2
43
- sphinxcontrib-applehelp==2.0.0
44
- sphinxcontrib-devhelp==2.0.0
45
- sphinxcontrib-htmlhelp==2.1.0
46
- sphinxcontrib-jsmath==1.0.1
47
- sphinxcontrib-qthelp==2.0.0
48
- sphinxcontrib-serializinghtml==2.0.0
49
- sqlparse==0.5.3
50
- twilio==9.4.5
51
- typing-extensions==4.12.2
52
- urllib3==2.3.0
53
- yarl==1.18.3
@@ -1,19 +0,0 @@
1
- Constants
2
- =========
3
-
4
- .. currentmodule:: terminusgps.wialon.constants
5
-
6
- .. py:data:: ACCESSMASK_RESOURCE_BASIC
7
-
8
- :type: :py:obj:`int`
9
- :value: ``17604054880353``
10
-
11
- .. py:data:: ACCESSMASK_UNIT_BASIC
12
-
13
- :type: :py:obj:`int`
14
- :value: ``3540009843``
15
-
16
- .. py:data:: ACCESSMASK_UNIT_MIGRATION
17
-
18
- :type: :py:obj:`int`
19
- :value: ``9437197``