python-terminusgps 24.4.0__py3-none-any.whl → 24.5.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.
- {python_terminusgps-24.4.0.dist-info → python_terminusgps-24.5.0.dist-info}/METADATA +1 -1
- {python_terminusgps-24.4.0.dist-info → python_terminusgps-24.5.0.dist-info}/RECORD +5 -5
- terminusgps/twilio/caller.py +8 -3
- {python_terminusgps-24.4.0.dist-info → python_terminusgps-24.5.0.dist-info}/WHEEL +0 -0
- {python_terminusgps-24.4.0.dist-info → python_terminusgps-24.5.0.dist-info}/licenses/COPYING +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: python-terminusgps
|
|
3
|
-
Version: 24.
|
|
3
|
+
Version: 24.5.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://app.terminusgps.com/docs/apps/python-terminusgps/index.html
|
|
6
6
|
Project-URL: Repository, https://github.com/terminusgps/python-terminusgps
|
|
@@ -15,7 +15,7 @@ terminusgps/aws/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
|
15
15
|
terminusgps/aws/secrets.py,sha256=MxQEmmBLpMUQ2tYAsHdCYf-7RZ84LiogdKcTsACX5dw,361
|
|
16
16
|
terminusgps/aws/ses.py,sha256=sDca2GjMaZvUt3kUPtGCpcqHiOkij9lMV1ogZofgYUU,2372
|
|
17
17
|
terminusgps/twilio/__init__.py,sha256=dYo41F2jft_eHDWSUtSpKGSRG1bewq_qClqilUJZkYM,33
|
|
18
|
-
terminusgps/twilio/caller.py,sha256=
|
|
18
|
+
terminusgps/twilio/caller.py,sha256=HixmE5vquzsLpCwPvGOpiuYK2laqFA4x-qyJDblSQ40,2346
|
|
19
19
|
terminusgps/twilio/logger.py,sha256=qlbOUvqBt7dNUOQGgn_N8_nwiqo0ewbqP9VN4N7dCrM,968
|
|
20
20
|
terminusgps/wialon/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
21
21
|
terminusgps/wialon/constants.py,sha256=n1ux68oWYWnzeZdN811Iw_Lk78KBM0YMJMoonn67uZY,1723
|
|
@@ -31,7 +31,7 @@ terminusgps/wialon/items/route.py,sha256=PTJx1gmT_PGz7nlSSUS2VzjYD-aAuvkEOIdIFne
|
|
|
31
31
|
terminusgps/wialon/items/unit.py,sha256=K0kmzFEInR3dAQVtMUA6M7KNy7HlD5IKl7f7YElr2sQ,9116
|
|
32
32
|
terminusgps/wialon/items/unit_group.py,sha256=Stp-WfCGbOqcnxV6FU1AKtV7KIxIwCHa0NwhNJfgRoM,5032
|
|
33
33
|
terminusgps/wialon/items/user.py,sha256=INwAibQVmjNNelepQXMfDevgJqMvIjHHgEjAMLRvhB0,7082
|
|
34
|
-
python_terminusgps-24.
|
|
35
|
-
python_terminusgps-24.
|
|
36
|
-
python_terminusgps-24.
|
|
37
|
-
python_terminusgps-24.
|
|
34
|
+
python_terminusgps-24.5.0.dist-info/METADATA,sha256=uvI90bQIizyzMEx8hv5N22TwF20LkN7UOdAtSXOZSZk,946
|
|
35
|
+
python_terminusgps-24.5.0.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
36
|
+
python_terminusgps-24.5.0.dist-info/licenses/COPYING,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
|
|
37
|
+
python_terminusgps-24.5.0.dist-info/RECORD,,
|
terminusgps/twilio/caller.py
CHANGED
|
@@ -34,18 +34,20 @@ class TwilioCaller:
|
|
|
34
34
|
self.logger.debug(
|
|
35
35
|
f"Creating '{method}' notification targeting '{to_number}'..."
|
|
36
36
|
)
|
|
37
|
+
|
|
37
38
|
match method:
|
|
38
39
|
case "sms":
|
|
39
|
-
|
|
40
|
+
return asyncio.create_task(
|
|
40
41
|
self.create_sms(to_number=to_number, message=message)
|
|
41
42
|
)
|
|
42
43
|
case "call" | "phone":
|
|
43
|
-
|
|
44
|
+
return asyncio.create_task(
|
|
44
45
|
self.create_call(to_number=to_number, message=message)
|
|
45
46
|
)
|
|
47
|
+
case "log":
|
|
48
|
+
return asyncio.create_task(self.create_log(message=message))
|
|
46
49
|
case _:
|
|
47
50
|
raise ValueError(f"Unsupported TwilioCaller method '{method}'.")
|
|
48
|
-
return task
|
|
49
51
|
|
|
50
52
|
async def create_call(self, to_number: str, message: str) -> None:
|
|
51
53
|
await self.client.calls.create_async(
|
|
@@ -61,3 +63,6 @@ class TwilioCaller:
|
|
|
61
63
|
body=message,
|
|
62
64
|
messaging_service_sid=self.messaging_sid,
|
|
63
65
|
)
|
|
66
|
+
|
|
67
|
+
async def create_log(self, message: str) -> None:
|
|
68
|
+
self.logger.info(message)
|
|
File without changes
|
{python_terminusgps-24.4.0.dist-info → python_terminusgps-24.5.0.dist-info}/licenses/COPYING
RENAMED
|
File without changes
|