python-terminusgps 20.6.0__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.
- {python_terminusgps-20.6.0 → python_terminusgps-20.6.2}/PKG-INFO +1 -2
- {python_terminusgps-20.6.0 → python_terminusgps-20.6.2}/docs/source/conf.py +1 -1
- {python_terminusgps-20.6.0 → python_terminusgps-20.6.2}/docs/source/index.rst +1 -0
- {python_terminusgps-20.6.0 → python_terminusgps-20.6.2}/docs/source/wialon/examples.rst +33 -8
- {python_terminusgps-20.6.0 → python_terminusgps-20.6.2}/docs/source/wialon/index.rst +0 -1
- {python_terminusgps-20.6.0 → python_terminusgps-20.6.2}/docs/source/wialon/utils.rst +0 -1
- {python_terminusgps-20.6.0 → python_terminusgps-20.6.2}/pyproject.toml +1 -2
- {python_terminusgps-20.6.0 → python_terminusgps-20.6.2}/terminusgps/wialon/utils.py +0 -1
- {python_terminusgps-20.6.0 → python_terminusgps-20.6.2}/uv.lock +1 -3
- python_terminusgps-20.6.0/docs/requirements.txt +0 -53
- {python_terminusgps-20.6.0 → python_terminusgps-20.6.2}/.gitignore +0 -0
- {python_terminusgps-20.6.0 → python_terminusgps-20.6.2}/.readthedocs.yaml +0 -0
- {python_terminusgps-20.6.0 → python_terminusgps-20.6.2}/COPYING +0 -0
- {python_terminusgps-20.6.0 → python_terminusgps-20.6.2}/README.md +0 -0
- {python_terminusgps-20.6.0 → python_terminusgps-20.6.2}/docs/Makefile +0 -0
- {python_terminusgps-20.6.0 → python_terminusgps-20.6.2}/docs/make.bat +0 -0
- {python_terminusgps-20.6.0 → python_terminusgps-20.6.2}/docs/source/authorizenet/auth.rst +0 -0
- {python_terminusgps-20.6.0 → python_terminusgps-20.6.2}/docs/source/authorizenet/index.rst +0 -0
- {python_terminusgps-20.6.0 → python_terminusgps-20.6.2}/docs/source/authorizenet/profiles.rst +0 -0
- {python_terminusgps-20.6.0 → python_terminusgps-20.6.2}/docs/source/aws/index.rst +0 -0
- {python_terminusgps-20.6.0 → python_terminusgps-20.6.2}/docs/source/aws/secrets.rst +0 -0
- {python_terminusgps-20.6.0/docs/source/wialon → python_terminusgps-20.6.2/docs/source}/settings.rst +0 -0
- {python_terminusgps-20.6.0 → python_terminusgps-20.6.2}/docs/source/twilio/caller.rst +0 -0
- {python_terminusgps-20.6.0 → python_terminusgps-20.6.2}/docs/source/twilio/index.rst +0 -0
- {python_terminusgps-20.6.0 → python_terminusgps-20.6.2}/docs/source/wialon/constants.rst +0 -0
- {python_terminusgps-20.6.0 → python_terminusgps-20.6.2}/docs/source/wialon/errors.rst +0 -0
- {python_terminusgps-20.6.0 → python_terminusgps-20.6.2}/docs/source/wialon/flags.rst +0 -0
- {python_terminusgps-20.6.0 → python_terminusgps-20.6.2}/docs/source/wialon/items.rst +0 -0
- {python_terminusgps-20.6.0 → python_terminusgps-20.6.2}/docs/source/wialon/session.rst +0 -0
- {python_terminusgps-20.6.0 → python_terminusgps-20.6.2}/terminusgps/__init__.py +0 -0
- {python_terminusgps-20.6.0 → python_terminusgps-20.6.2}/terminusgps/authorizenet/__init__.py +0 -0
- {python_terminusgps-20.6.0 → python_terminusgps-20.6.2}/terminusgps/authorizenet/auth.py +0 -0
- {python_terminusgps-20.6.0 → python_terminusgps-20.6.2}/terminusgps/authorizenet/profiles/__init__.py +0 -0
- {python_terminusgps-20.6.0 → python_terminusgps-20.6.2}/terminusgps/authorizenet/profiles/addresses.py +0 -0
- {python_terminusgps-20.6.0 → python_terminusgps-20.6.2}/terminusgps/authorizenet/profiles/base.py +0 -0
- {python_terminusgps-20.6.0 → python_terminusgps-20.6.2}/terminusgps/authorizenet/profiles/customers.py +0 -0
- {python_terminusgps-20.6.0 → python_terminusgps-20.6.2}/terminusgps/authorizenet/profiles/payments.py +0 -0
- {python_terminusgps-20.6.0 → python_terminusgps-20.6.2}/terminusgps/authorizenet/subscriptions.py +0 -0
- {python_terminusgps-20.6.0 → python_terminusgps-20.6.2}/terminusgps/aws/__init__.py +0 -0
- {python_terminusgps-20.6.0 → python_terminusgps-20.6.2}/terminusgps/aws/secrets.py +0 -0
- {python_terminusgps-20.6.0 → python_terminusgps-20.6.2}/terminusgps/aws/ses.py +0 -0
- {python_terminusgps-20.6.0 → python_terminusgps-20.6.2}/terminusgps/settings.py +0 -0
- {python_terminusgps-20.6.0 → python_terminusgps-20.6.2}/terminusgps/twilio/__init__.py +0 -0
- {python_terminusgps-20.6.0 → python_terminusgps-20.6.2}/terminusgps/twilio/caller.py +0 -0
- {python_terminusgps-20.6.0 → python_terminusgps-20.6.2}/terminusgps/wialon/__init__.py +0 -0
- {python_terminusgps-20.6.0 → python_terminusgps-20.6.2}/terminusgps/wialon/constants.py +0 -0
- {python_terminusgps-20.6.0 → python_terminusgps-20.6.2}/terminusgps/wialon/flags.py +0 -0
- {python_terminusgps-20.6.0 → python_terminusgps-20.6.2}/terminusgps/wialon/items/__init__.py +0 -0
- {python_terminusgps-20.6.0 → python_terminusgps-20.6.2}/terminusgps/wialon/items/base.py +0 -0
- {python_terminusgps-20.6.0 → python_terminusgps-20.6.2}/terminusgps/wialon/items/geofence.py +0 -0
- {python_terminusgps-20.6.0 → python_terminusgps-20.6.2}/terminusgps/wialon/items/notification.py +0 -0
- {python_terminusgps-20.6.0 → python_terminusgps-20.6.2}/terminusgps/wialon/items/resource.py +0 -0
- {python_terminusgps-20.6.0 → python_terminusgps-20.6.2}/terminusgps/wialon/items/retranslator.py +0 -0
- {python_terminusgps-20.6.0 → python_terminusgps-20.6.2}/terminusgps/wialon/items/route.py +0 -0
- {python_terminusgps-20.6.0 → python_terminusgps-20.6.2}/terminusgps/wialon/items/unit.py +0 -0
- {python_terminusgps-20.6.0 → python_terminusgps-20.6.2}/terminusgps/wialon/items/unit_group.py +0 -0
- {python_terminusgps-20.6.0 → python_terminusgps-20.6.2}/terminusgps/wialon/items/user.py +0 -0
- {python_terminusgps-20.6.0 → python_terminusgps-20.6.2}/terminusgps/wialon/logger.py +0 -0
- {python_terminusgps-20.6.0 → 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.
|
|
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.
|
|
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
|
|
@@ -2,34 +2,44 @@ Usage Examples
|
|
|
2
2
|
==============
|
|
3
3
|
|
|
4
4
|
===============================
|
|
5
|
-
Create a new
|
|
5
|
+
Create a new user and rename it
|
|
6
6
|
===============================
|
|
7
7
|
|
|
8
|
-
|
|
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
|
|
17
|
+
from terminusgps.wialon.items import WialonUser
|
|
16
18
|
from terminusgps.wialon.utils import generate_wialon_password
|
|
17
19
|
|
|
18
|
-
|
|
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
|
-
|
|
31
|
+
user = WialonUser(
|
|
24
32
|
id=None,
|
|
25
33
|
session=session,
|
|
26
|
-
creator_id="
|
|
34
|
+
creator_id="27884511", # Admin user id
|
|
27
35
|
name="test_user",
|
|
28
36
|
password=generate_wialon_password(32)
|
|
29
37
|
)
|
|
30
|
-
print(f"{
|
|
38
|
+
print(f"{user.name = }") # user.name = "test_user"
|
|
31
39
|
|
|
32
|
-
|
|
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
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "python-terminusgps"
|
|
3
|
-
version = "20.6.
|
|
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
|
]
|
|
@@ -556,14 +556,13 @@ wheels = [
|
|
|
556
556
|
|
|
557
557
|
[[package]]
|
|
558
558
|
name = "python-terminusgps"
|
|
559
|
-
version = "20.6.
|
|
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
|
]
|
|
@@ -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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{python_terminusgps-20.6.0 → python_terminusgps-20.6.2}/docs/source/authorizenet/profiles.rst
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{python_terminusgps-20.6.0/docs/source/wialon → python_terminusgps-20.6.2/docs/source}/settings.rst
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{python_terminusgps-20.6.0 → python_terminusgps-20.6.2}/terminusgps/authorizenet/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{python_terminusgps-20.6.0 → python_terminusgps-20.6.2}/terminusgps/authorizenet/profiles/base.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{python_terminusgps-20.6.0 → python_terminusgps-20.6.2}/terminusgps/authorizenet/subscriptions.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{python_terminusgps-20.6.0 → python_terminusgps-20.6.2}/terminusgps/wialon/items/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
{python_terminusgps-20.6.0 → python_terminusgps-20.6.2}/terminusgps/wialon/items/geofence.py
RENAMED
|
File without changes
|
{python_terminusgps-20.6.0 → python_terminusgps-20.6.2}/terminusgps/wialon/items/notification.py
RENAMED
|
File without changes
|
{python_terminusgps-20.6.0 → python_terminusgps-20.6.2}/terminusgps/wialon/items/resource.py
RENAMED
|
File without changes
|
{python_terminusgps-20.6.0 → python_terminusgps-20.6.2}/terminusgps/wialon/items/retranslator.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{python_terminusgps-20.6.0 → python_terminusgps-20.6.2}/terminusgps/wialon/items/unit_group.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|