python-terminusgps 37.7.4__py3-none-any.whl → 37.7.5__py3-none-any.whl

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.

@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: python-terminusgps
3
- Version: 37.7.4
3
+ Version: 37.7.5
4
4
  Summary: Provides abstractions/utilities for working with Wialon API, Authorize.NET API, AWS API, and more.
5
5
  Project-URL: Documentation, https://docs.terminusgps.com
6
6
  Project-URL: Repository, https://github.com/terminusgps/python-terminusgps
@@ -17,7 +17,7 @@ terminusgps/authorizenet/tests/test_profiles.py,sha256=MkpMSU9cgSeLy9bBuZdhdFiPx
17
17
  terminusgps/authorizenet/tests/test_utils.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
18
18
  terminusgps/aws/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
19
19
  terminusgps/aws/notifications.py,sha256=76YnACuVIMs5EujEATqcBf8HcCFxs2649fnLx9nSauc,11103
20
- terminusgps/aws/secrets.py,sha256=JmRJYg3gj3yXgANtUSRNamzg5dBrQvRmR5P-AWJRqD8,784
20
+ terminusgps/aws/secrets.py,sha256=lslbDOTa2pRQkShI3FN-urwJ1zevMSV01BI2IA5E9kQ,902
21
21
  terminusgps/aws/tests/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
22
22
  terminusgps/aws/tests/test_notifications.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
23
23
  terminusgps/aws/tests/test_secrets.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -30,7 +30,7 @@ terminusgps/django/forms/__init__.py,sha256=hh8Z9AC_u2m2bu3h6sdmPyndfQneCEVovENP
30
30
  terminusgps/django/forms/fields.py,sha256=BfuPzOZyGvWsEzONW2h4i01fhoL0IS0-gDdBKW4jHgI,2225
31
31
  terminusgps/django/forms/forms.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
32
32
  terminusgps/django/forms/renderer.py,sha256=QSLQ94Ff7ZaV1jD6wAL-ltvdKIblED8Wsv5EXvSbUJ4,394
33
- terminusgps/django/forms/widgets.py,sha256=PtMYh9vTtS62dXR7rZms8Mw_x1KkBjaMfpaTRwgy8wg,2093
33
+ terminusgps/django/forms/widgets.py,sha256=No4hPQ-BK5rrotaQ5iJEjWo8quYIPNf_1C2y4OAIxro,2037
34
34
  terminusgps/django/tests/test_forms.py,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
35
35
  terminusgps/django/tests/test_mixins.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
36
36
  terminusgps/django/tests/test_utils.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -51,7 +51,7 @@ terminusgps/wialon/items/route.py,sha256=2dEUK9o8nwutPE03W-5GUcZrjGvbwLoExVnFV9L
51
51
  terminusgps/wialon/items/unit.py,sha256=FsOQdCFJPiUp2OuCxzqYI_oEYBWcjgWxicYiNRFkGBM,12590
52
52
  terminusgps/wialon/items/unit_group.py,sha256=HhYMZ9b7UATXeEgHkXN9r5-M_w82fabjDYADCUwBtxQ,4442
53
53
  terminusgps/wialon/items/user.py,sha256=pR6OTrm6f7Zo0J8eLvKtWVsdhGi430OxMsMMthGh8YE,5382
54
- python_terminusgps-37.7.4.dist-info/METADATA,sha256=ItOj5i7UvoMJR1nlEQltMRKXXswnuvVsq7wdbeRU2TU,1329
55
- python_terminusgps-37.7.4.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
56
- python_terminusgps-37.7.4.dist-info/licenses/COPYING,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
57
- python_terminusgps-37.7.4.dist-info/RECORD,,
54
+ python_terminusgps-37.7.5.dist-info/METADATA,sha256=LGKHm3MmiBudpORlYBIQpkmhp9yGsyItu5mB9mJpi9s,1329
55
+ python_terminusgps-37.7.5.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
56
+ python_terminusgps-37.7.5.dist-info/licenses/COPYING,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
57
+ python_terminusgps-37.7.5.dist-info/RECORD,,
@@ -1,6 +1,7 @@
1
1
  import json
2
2
 
3
3
  import boto3
4
+ import botocore.exceptions
4
5
 
5
6
 
6
7
  def get_secret(name: str, region: str = "us-east-1") -> dict[str, str]:
@@ -18,7 +19,10 @@ def get_secret(name: str, region: str = "us-east-1") -> dict[str, str]:
18
19
  .. _secretsmanager: https://docs.aws.amazon.com/secretsmanager/
19
20
 
20
21
  """
21
- session = boto3.Session(profile_name="terminusgps-site-role")
22
- client = session.client(service_name="secretsmanager", region_name=region)
23
- secret = client.get_secret_value(**{"SecretId": name})["SecretString"]
24
- return json.loads(secret)
22
+ try:
23
+ session = boto3.Session(profile_name="terminusgps-site-role")
24
+ client = session.client(service_name="secretsmanager", region_name=region)
25
+ secret = client.get_secret_value(**{"SecretId": name})["SecretString"]
26
+ return json.loads(secret)
27
+ except botocore.exceptions.ProfileNotFound:
28
+ return {}
@@ -3,8 +3,6 @@ from django import forms
3
3
 
4
4
 
5
5
  class CaptchaWidget(forms.widgets.CheckboxInput):
6
- template_name = "terminusgps/widgets/captcha.html"
7
-
8
6
  def get_context(self, name, value, attrs):
9
7
  context = super().get_context(name, value, attrs)
10
8
  print(f"{context = }")