python-terminusgps 47.1.3__py3-none-any.whl → 47.2.0__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.
- {python_terminusgps-47.1.3.dist-info → python_terminusgps-47.2.0.dist-info}/METADATA +1 -1
- {python_terminusgps-47.1.3.dist-info → python_terminusgps-47.2.0.dist-info}/RECORD +5 -5
- terminusgps/validators.py +10 -0
- {python_terminusgps-47.1.3.dist-info → python_terminusgps-47.2.0.dist-info}/WHEEL +0 -0
- {python_terminusgps-47.1.3.dist-info → python_terminusgps-47.2.0.dist-info}/licenses/COPYING +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: python-terminusgps
|
|
3
|
-
Version: 47.
|
|
3
|
+
Version: 47.2.0
|
|
4
4
|
Summary: Provides abstractions/utilities for working with Wialon API, Authorize.NET API, AWS API, and more.
|
|
5
5
|
Project-URL: Documentation, https://terminusgps.github.io/python-terminusgps
|
|
6
6
|
Project-URL: Repository, https://github.com/terminusgps/python-terminusgps
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
terminusgps/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
2
2
|
terminusgps/default_settings.py,sha256=XuAoAf8V91nxI7NxXbgEGmuzLMybiEnR4Tep_xbhuGM,584
|
|
3
3
|
terminusgps/mixins.py,sha256=Q9ZJuzpk3d9lDnlVA8ZTVvnZWxB13p08EQ8yVJcztn4,1034
|
|
4
|
-
terminusgps/validators.py,sha256=
|
|
4
|
+
terminusgps/validators.py,sha256=ZO3ychuBfpGTLsXFU_PFVMkMOyE1fJIsQh2hYsGDjKM,9508
|
|
5
5
|
terminusgps/authorizenet/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
6
6
|
terminusgps/authorizenet/constants.py,sha256=nz3XX2jp9icsJhbSTKi9X-TQDr6jrs35opSWpYuwePc,2757
|
|
7
7
|
terminusgps/authorizenet/service.py,sha256=jjYo1vLgTZSXVNeBY6uKSma94AgEj3Q5xOAT5wUB6ko,4260
|
|
@@ -26,7 +26,7 @@ terminusgps/wialon/items/route.py,sha256=9hmRBEFRJF3lKukv_y3blZxqxv75YgFCcRALrU6
|
|
|
26
26
|
terminusgps/wialon/items/unit.py,sha256=B5iuGEghu89SL8KzYLUytYNRa8cogsVtf-bJ_RybPTA,5522
|
|
27
27
|
terminusgps/wialon/items/unit_group.py,sha256=MIR0x5IlTjcnwx8Y9wXLNTql-wwVVj7NCe7dL2vOw4c,2131
|
|
28
28
|
terminusgps/wialon/items/user.py,sha256=CRSICiJ-qzybEO_gXuKyzW5oa2RQeIp0SzX9ARcdME4,5151
|
|
29
|
-
python_terminusgps-47.
|
|
30
|
-
python_terminusgps-47.
|
|
31
|
-
python_terminusgps-47.
|
|
32
|
-
python_terminusgps-47.
|
|
29
|
+
python_terminusgps-47.2.0.dist-info/METADATA,sha256=veoG4d_SMj3UvLulHNO5-j7nMVzmBJA5Gtd4Df_ia2w,938
|
|
30
|
+
python_terminusgps-47.2.0.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
31
|
+
python_terminusgps-47.2.0.dist-info/licenses/COPYING,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
|
|
32
|
+
python_terminusgps-47.2.0.dist-info/RECORD,,
|
terminusgps/validators.py
CHANGED
|
@@ -7,6 +7,16 @@ from django.utils.translation import gettext_lazy as _
|
|
|
7
7
|
VALID_COUNTRY_CODES = ("+1", "+52")
|
|
8
8
|
|
|
9
9
|
|
|
10
|
+
def validate_is_digit(value: str) -> None:
|
|
11
|
+
"""Raises :py:exc:`django.core.exceptions.ValidationError` if the value contained non-digit characters."""
|
|
12
|
+
if not value.isdigit():
|
|
13
|
+
raise ValidationError(
|
|
14
|
+
_("Value can only contain digits, got '%(value)s'."),
|
|
15
|
+
code="invalid",
|
|
16
|
+
params={"value": value},
|
|
17
|
+
)
|
|
18
|
+
|
|
19
|
+
|
|
10
20
|
def validate_e164_phone_number(value: str) -> None:
|
|
11
21
|
"""
|
|
12
22
|
Raises :py:exc:`~django.core.exceptions.ValidationError` if the value is not a valid `E.164 <https://en.wikipedia.org/wiki/E.164>`_ formatted phone number.
|
|
File without changes
|
{python_terminusgps-47.1.3.dist-info → python_terminusgps-47.2.0.dist-info}/licenses/COPYING
RENAMED
|
File without changes
|