python-terminusgps 1.1.0__tar.gz → 1.1.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.
Files changed (27) hide show
  1. {python_terminusgps-1.1.0 → python_terminusgps-1.1.2}/PKG-INFO +3 -2
  2. {python_terminusgps-1.1.0 → python_terminusgps-1.1.2}/pyproject.toml +3 -2
  3. {python_terminusgps-1.1.0 → python_terminusgps-1.1.2}/requirements.txt +25 -1
  4. python_terminusgps-1.1.2/terminusgps/authorizenet/auth.py +15 -0
  5. {python_terminusgps-1.1.0 → python_terminusgps-1.1.2}/uv.lock +45 -2
  6. python_terminusgps-1.1.0/terminusgps/authorizenet/auth.py +0 -14
  7. {python_terminusgps-1.1.0 → python_terminusgps-1.1.2}/.gitignore +0 -0
  8. {python_terminusgps-1.1.0 → python_terminusgps-1.1.2}/COPYING +0 -0
  9. {python_terminusgps-1.1.0 → python_terminusgps-1.1.2}/README.md +0 -0
  10. {python_terminusgps-1.1.0 → python_terminusgps-1.1.2}/terminusgps/__init__.py +0 -0
  11. {python_terminusgps-1.1.0 → python_terminusgps-1.1.2}/terminusgps/authorizenet/__init__.py +0 -0
  12. {python_terminusgps-1.1.0 → python_terminusgps-1.1.2}/terminusgps/aws/__init__.py +0 -0
  13. {python_terminusgps-1.1.0 → python_terminusgps-1.1.2}/terminusgps/aws/secrets.py +0 -0
  14. {python_terminusgps-1.1.0 → python_terminusgps-1.1.2}/terminusgps/wialon/__init__.py +0 -0
  15. {python_terminusgps-1.1.0 → python_terminusgps-1.1.2}/terminusgps/wialon/constants.py +0 -0
  16. {python_terminusgps-1.1.0 → python_terminusgps-1.1.2}/terminusgps/wialon/errors.py +0 -0
  17. {python_terminusgps-1.1.0 → python_terminusgps-1.1.2}/terminusgps/wialon/flags.py +0 -0
  18. {python_terminusgps-1.1.0 → python_terminusgps-1.1.2}/terminusgps/wialon/items/__init__.py +0 -0
  19. {python_terminusgps-1.1.0 → python_terminusgps-1.1.2}/terminusgps/wialon/items/base.py +0 -0
  20. {python_terminusgps-1.1.0 → python_terminusgps-1.1.2}/terminusgps/wialon/items/resource.py +0 -0
  21. {python_terminusgps-1.1.0 → python_terminusgps-1.1.2}/terminusgps/wialon/items/retranslator.py +0 -0
  22. {python_terminusgps-1.1.0 → python_terminusgps-1.1.2}/terminusgps/wialon/items/route.py +0 -0
  23. {python_terminusgps-1.1.0 → python_terminusgps-1.1.2}/terminusgps/wialon/items/unit.py +0 -0
  24. {python_terminusgps-1.1.0 → python_terminusgps-1.1.2}/terminusgps/wialon/items/unit_group.py +0 -0
  25. {python_terminusgps-1.1.0 → python_terminusgps-1.1.2}/terminusgps/wialon/items/user.py +0 -0
  26. {python_terminusgps-1.1.0 → python_terminusgps-1.1.2}/terminusgps/wialon/session.py +0 -0
  27. {python_terminusgps-1.1.0 → python_terminusgps-1.1.2}/terminusgps/wialon/utils.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: python-terminusgps
3
- Version: 1.1.0
3
+ Version: 1.1.2
4
4
  Summary: Provides abstractions/utilities for working with Wialon API, Authorize.NET API, AWS API, and more.
5
5
  Author-email: Blake Nall <blake@terminusgps.com>
6
6
  Classifier: License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)
@@ -11,5 +11,6 @@ Classifier: Programming Language :: Python :: 3.13
11
11
  Requires-Python: >=3.12
12
12
  Requires-Dist: argparse>=1.4.0
13
13
  Requires-Dist: authorizenet>=1.1.5
14
- Requires-Dist: boto3>=1.35.80
14
+ Requires-Dist: boto3>=1.34.144
15
+ Requires-Dist: django>=5.1.4
15
16
  Requires-Dist: python-wialon>=1.2.4
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "python-terminusgps"
3
- version = "1.1.0"
3
+ version = "1.1.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" } ]
@@ -15,7 +15,8 @@ requires-python = ">=3.12"
15
15
  dependencies = [
16
16
  "argparse>=1.4.0",
17
17
  "authorizenet>=1.1.5",
18
- "boto3>=1.35.80",
18
+ "boto3>=1.34.144",
19
+ "django>=5.1.4",
19
20
  "python-wialon>=1.2.4",
20
21
  ]
21
22
 
@@ -2,25 +2,49 @@
2
2
  # uv pip compile pyproject.toml -o requirements.txt
3
3
  argparse==1.4.0
4
4
  # via python-terminusgps (pyproject.toml)
5
+ asgiref==3.8.1
6
+ # via django
5
7
  authorizenet==1.1.5
6
8
  # via python-terminusgps (pyproject.toml)
9
+ boto3==1.35.80
10
+ # via python-terminusgps (pyproject.toml)
11
+ botocore==1.35.80
12
+ # via
13
+ # boto3
14
+ # s3transfer
7
15
  certifi==2024.8.30
8
16
  # via requests
9
17
  charset-normalizer==3.4.0
10
18
  # via requests
19
+ django==5.1.4
20
+ # via python-terminusgps (pyproject.toml)
11
21
  future==1.0.0
12
22
  # via python-wialon
13
23
  idna==3.10
14
24
  # via requests
25
+ jmespath==1.0.1
26
+ # via
27
+ # boto3
28
+ # botocore
15
29
  lxml==4.9.4
16
30
  # via authorizenet
31
+ python-dateutil==2.9.0.post0
32
+ # via botocore
17
33
  python-wialon==1.2.4
18
34
  # via python-terminusgps (pyproject.toml)
19
35
  pyxb-x==1.2.6.2
20
36
  # via authorizenet
21
37
  requests==2.32.3
22
38
  # via authorizenet
39
+ s3transfer==0.10.4
40
+ # via boto3
23
41
  simplejson==3.19.3
24
42
  # via python-wialon
43
+ six==1.17.0
44
+ # via python-dateutil
45
+ sqlparse==0.5.3
46
+ # via django
25
47
  urllib3==2.2.3
26
- # via requests
48
+ # via
49
+ # botocore
50
+ # requests
@@ -0,0 +1,15 @@
1
+ from authorizenet.apicontractsv1 import merchantAuthenticationType
2
+ from authorizenet.constants import constants
3
+
4
+ from django.conf import settings
5
+
6
+
7
+ def get_merchant_auth() -> merchantAuthenticationType:
8
+ return merchantAuthenticationType(
9
+ name=settings.MERCHANT_AUTH_LOGIN_ID,
10
+ transactionKey=settings.MERCHANT_AUTH_TRANSACTION_KEY,
11
+ )
12
+
13
+
14
+ def get_environment() -> str:
15
+ return constants.SANDBOX if settings.DEBUG else constants.PRODUCTION
@@ -10,6 +10,15 @@ wheels = [
10
10
  { url = "https://files.pythonhosted.org/packages/f2/94/3af39d34be01a24a6e65433d19e107099374224905f1e0cc6bbe1fd22a2f/argparse-1.4.0-py2.py3-none-any.whl", hash = "sha256:c31647edb69fd3d465a847ea3157d37bed1f95f19760b11a47aa91c04b666314", size = 23000 },
11
11
  ]
12
12
 
13
+ [[package]]
14
+ name = "asgiref"
15
+ version = "3.8.1"
16
+ source = { registry = "https://pypi.org/simple" }
17
+ sdist = { url = "https://files.pythonhosted.org/packages/29/38/b3395cc9ad1b56d2ddac9970bc8f4141312dbaec28bc7c218b0dfafd0f42/asgiref-3.8.1.tar.gz", hash = "sha256:c343bd80a0bec947a9860adb4c432ffa7db769836c64238fc34bdc3fec84d590", size = 35186 }
18
+ wheels = [
19
+ { url = "https://files.pythonhosted.org/packages/39/e3/893e8757be2612e6c266d9bb58ad2e3651524b5b40cf56761e985a28b13e/asgiref-3.8.1-py3-none-any.whl", hash = "sha256:3e1e3ecc849832fe52ccf2cb6686b7a55f82bb1d6aee72a58826471390335e47", size = 23828 },
20
+ ]
21
+
13
22
  [[package]]
14
23
  name = "authorizenet"
15
24
  version = "1.1.5"
@@ -97,6 +106,20 @@ wheels = [
97
106
  { url = "https://files.pythonhosted.org/packages/bf/9b/08c0432272d77b04803958a4598a51e2a4b51c06640af8b8f0f908c18bf2/charset_normalizer-3.4.0-py3-none-any.whl", hash = "sha256:fe9f97feb71aa9896b81973a7bbada8c49501dc73e58a10fcef6663af95e5079", size = 49446 },
98
107
  ]
99
108
 
109
+ [[package]]
110
+ name = "django"
111
+ version = "5.1.4"
112
+ source = { registry = "https://pypi.org/simple" }
113
+ dependencies = [
114
+ { name = "asgiref" },
115
+ { name = "sqlparse" },
116
+ { name = "tzdata", marker = "sys_platform == 'win32'" },
117
+ ]
118
+ sdist = { url = "https://files.pythonhosted.org/packages/d3/e8/536555596dbb79f6e77418aeb40bdc1758c26725aba31919ba449e6d5e6a/Django-5.1.4.tar.gz", hash = "sha256:de450c09e91879fa5a307f696e57c851955c910a438a35e6b4c895e86bedc82a", size = 10716397 }
119
+ wheels = [
120
+ { url = "https://files.pythonhosted.org/packages/58/0b/8a4ab2c02982df4ed41e29f28f189459a7eba37899438e6bea7f39db793b/Django-5.1.4-py3-none-any.whl", hash = "sha256:236e023f021f5ce7dee5779de7b286565fdea5f4ab86bae5338e3f7b69896cf0", size = 8276471 },
121
+ ]
122
+
100
123
  [[package]]
101
124
  name = "future"
102
125
  version = "1.0.0"
@@ -153,12 +176,13 @@ wheels = [
153
176
 
154
177
  [[package]]
155
178
  name = "python-terminusgps"
156
- version = "1.1.0"
179
+ version = "1.1.1"
157
180
  source = { editable = "." }
158
181
  dependencies = [
159
182
  { name = "argparse" },
160
183
  { name = "authorizenet" },
161
184
  { name = "boto3" },
185
+ { name = "django" },
162
186
  { name = "python-wialon" },
163
187
  ]
164
188
 
@@ -166,7 +190,8 @@ dependencies = [
166
190
  requires-dist = [
167
191
  { name = "argparse", specifier = ">=1.4.0" },
168
192
  { name = "authorizenet", specifier = ">=1.1.5" },
169
- { name = "boto3", specifier = ">=1.35.80" },
193
+ { name = "boto3", specifier = ">=1.34.144" },
194
+ { name = "django", specifier = ">=5.1.4" },
170
195
  { name = "python-wialon", specifier = ">=1.2.4" },
171
196
  ]
172
197
 
@@ -263,6 +288,24 @@ wheels = [
263
288
  { url = "https://files.pythonhosted.org/packages/b7/ce/149a00dd41f10bc29e5921b496af8b574d8413afcd5e30dfa0ed46c2cc5e/six-1.17.0-py2.py3-none-any.whl", hash = "sha256:4721f391ed90541fddacab5acf947aa0d3dc7d27b2e1e8eda2be8970586c3274", size = 11050 },
264
289
  ]
265
290
 
291
+ [[package]]
292
+ name = "sqlparse"
293
+ version = "0.5.3"
294
+ source = { registry = "https://pypi.org/simple" }
295
+ sdist = { url = "https://files.pythonhosted.org/packages/e5/40/edede8dd6977b0d3da179a342c198ed100dd2aba4be081861ee5911e4da4/sqlparse-0.5.3.tar.gz", hash = "sha256:09f67787f56a0b16ecdbde1bfc7f5d9c3371ca683cfeaa8e6ff60b4807ec9272", size = 84999 }
296
+ wheels = [
297
+ { url = "https://files.pythonhosted.org/packages/a9/5c/bfd6bd0bf979426d405cc6e71eceb8701b148b16c21d2dc3c261efc61c7b/sqlparse-0.5.3-py3-none-any.whl", hash = "sha256:cf2196ed3418f3ba5de6af7e82c694a9fbdbfecccdfc72e281548517081f16ca", size = 44415 },
298
+ ]
299
+
300
+ [[package]]
301
+ name = "tzdata"
302
+ version = "2024.2"
303
+ source = { registry = "https://pypi.org/simple" }
304
+ sdist = { url = "https://files.pythonhosted.org/packages/e1/34/943888654477a574a86a98e9896bae89c7aa15078ec29f490fef2f1e5384/tzdata-2024.2.tar.gz", hash = "sha256:7d85cc416e9382e69095b7bdf4afd9e3880418a2413feec7069d533d6b4e31cc", size = 193282 }
305
+ wheels = [
306
+ { url = "https://files.pythonhosted.org/packages/a6/ab/7e5f53c3b9d14972843a647d8d7a853969a58aecc7559cb3267302c94774/tzdata-2024.2-py2.py3-none-any.whl", hash = "sha256:a48093786cdcde33cad18c2555e8532f34422074448fbc874186f0abd79565cd", size = 346586 },
307
+ ]
308
+
266
309
  [[package]]
267
310
  name = "urllib3"
268
311
  version = "2.2.3"
@@ -1,14 +0,0 @@
1
- from os import getenv
2
-
3
- from authorizenet.apicontractsv1 import merchantAuthenticationType
4
- from authorizenet.constants import constants
5
-
6
-
7
- def get_merchant_auth() -> merchantAuthenticationType:
8
- name: str = getenv("MERCHANT_AUTH_LOGIN_ID", "")
9
- transactionKey: str = getenv("MERCHANT_AUTH_TRANSACTION_KEY", "")
10
- return merchantAuthenticationType(name=name, transactionKey=transactionKey)
11
-
12
-
13
- def get_environment(debug: bool = False) -> str:
14
- return constants.SANDBOX if debug else constants.PRODUCTION