telert 0.2.3__tar.gz → 0.2.4__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.
- {telert-0.2.3/telert.egg-info → telert-0.2.4}/PKG-INFO +2 -2
- {telert-0.2.3 → telert-0.2.4}/README.md +1 -1
- {telert-0.2.3 → telert-0.2.4}/pyproject.toml +1 -1
- {telert-0.2.3 → telert-0.2.4}/telert/__init__.py +1 -1
- {telert-0.2.3 → telert-0.2.4}/telert/cli.py +3 -1
- {telert-0.2.3 → telert-0.2.4}/telert/messaging.py +12 -24
- {telert-0.2.3 → telert-0.2.4/telert.egg-info}/PKG-INFO +2 -2
- {telert-0.2.3 → telert-0.2.4}/LICENSE +0 -0
- {telert-0.2.3 → telert-0.2.4}/MANIFEST.in +0 -0
- {telert-0.2.3 → telert-0.2.4}/setup.cfg +0 -0
- {telert-0.2.3 → telert-0.2.4}/telert/api.py +0 -0
- {telert-0.2.3 → telert-0.2.4}/telert/data/notification-icon.png +0 -0
- {telert-0.2.3 → telert-0.2.4}/telert/data/notification.mp3 +0 -0
- {telert-0.2.3 → telert-0.2.4}/telert/monitoring/__init__.py +0 -0
- {telert-0.2.3 → telert-0.2.4}/telert/monitoring/activity_logs.py +0 -0
- {telert-0.2.3 → telert-0.2.4}/telert/monitoring/base.py +0 -0
- {telert-0.2.3 → telert-0.2.4}/telert/monitoring/cli.py +0 -0
- {telert-0.2.3 → telert-0.2.4}/telert/monitoring/cli_logs.py +0 -0
- {telert-0.2.3 → telert-0.2.4}/telert/monitoring/debug_logs.py +0 -0
- {telert-0.2.3 → telert-0.2.4}/telert/monitoring/log.py +0 -0
- {telert-0.2.3 → telert-0.2.4}/telert/monitoring/network.py +0 -0
- {telert-0.2.3 → telert-0.2.4}/telert/monitoring/process.py +0 -0
- {telert-0.2.3 → telert-0.2.4}/telert.egg-info/SOURCES.txt +0 -0
- {telert-0.2.3 → telert-0.2.4}/telert.egg-info/dependency_links.txt +0 -0
- {telert-0.2.3 → telert-0.2.4}/telert.egg-info/entry_points.txt +0 -0
- {telert-0.2.3 → telert-0.2.4}/telert.egg-info/requires.txt +0 -0
- {telert-0.2.3 → telert-0.2.4}/telert.egg-info/top_level.txt +0 -0
- {telert-0.2.3 → telert-0.2.4}/telert.png +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: telert
|
|
3
|
-
Version: 0.2.
|
|
3
|
+
Version: 0.2.4
|
|
4
4
|
Summary: Ultimate command monitoring & notification system: Telegram, Slack, Discord, Teams, Pushover, Email, desktop & more. Monitor Python code and CLI tasks with context managers, decorators, and webhooks.
|
|
5
5
|
Author-email: Mihir Khandekar <mihirkhandekar@gmail.com>
|
|
6
6
|
License-Expression: MIT
|
|
@@ -54,7 +54,7 @@ Dynamic: license-file
|
|
|
54
54
|
<img src="https://github.com/navig-me/telert/raw/main/telert.png" alt="telert logo" width="150">
|
|
55
55
|
</p>
|
|
56
56
|
|
|
57
|
-
**Version 0.2.
|
|
57
|
+
**Version 0.2.4**
|
|
58
58
|
|
|
59
59
|
[](https://pepy.tech/projects/telert)
|
|
60
60
|
[](https://github.com/navig-me/telert/stargazers)
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
<img src="https://github.com/navig-me/telert/raw/main/telert.png" alt="telert logo" width="150">
|
|
7
7
|
</p>
|
|
8
8
|
|
|
9
|
-
**Version 0.2.
|
|
9
|
+
**Version 0.2.4**
|
|
10
10
|
|
|
11
11
|
[](https://pepy.tech/projects/telert)
|
|
12
12
|
[](https://github.com/navig-me/telert/stargazers)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "telert"
|
|
3
|
-
version = "0.2.
|
|
3
|
+
version = "0.2.4"
|
|
4
4
|
description = "Ultimate command monitoring & notification system: Telegram, Slack, Discord, Teams, Pushover, Email, desktop & more. Monitor Python code and CLI tasks with context managers, decorators, and webhooks."
|
|
5
5
|
authors = [{name = "Mihir Khandekar", email = "mihirkhandekar@gmail.com"}]
|
|
6
6
|
license = "MIT"
|
|
@@ -919,7 +919,6 @@ def piped_mode():
|
|
|
919
919
|
|
|
920
920
|
def do_init(a):
|
|
921
921
|
"""Run the interactive configuration wizard."""
|
|
922
|
-
config = MessagingConfig()
|
|
923
922
|
|
|
924
923
|
print("\n🔔 Welcome to telert configuration wizard! 🔔")
|
|
925
924
|
print("This wizard will help you set up notification providers.\n")
|
|
@@ -1286,6 +1285,9 @@ def do_init(a):
|
|
|
1286
1285
|
except Exception as e:
|
|
1287
1286
|
print(f"❌ Failed to configure email: {str(e)}")
|
|
1288
1287
|
|
|
1288
|
+
# Reload configuration after provider setup to ensure we have the latest state
|
|
1289
|
+
config = MessagingConfig()
|
|
1290
|
+
|
|
1289
1291
|
# Set default providers if any were configured successfully
|
|
1290
1292
|
if selected_providers:
|
|
1291
1293
|
# Step 2: Set defaults and order
|
|
@@ -367,33 +367,21 @@ def prepare_telegram_html(message: str) -> str:
|
|
|
367
367
|
|
|
368
368
|
def prepare_telegram_plain_text(message: str) -> str:
|
|
369
369
|
"""
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
When
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
370
|
+
Return the message unchanged for plain-text Telegram delivery.
|
|
371
|
+
|
|
372
|
+
When *no* ``parse_mode`` is supplied the Telegram Bot API treats the text as
|
|
373
|
+
raw UTF-8. Therefore no additional character escaping is required – adding
|
|
374
|
+
back-slashes would make the message look cluttered (e.g. ``\(`` and
|
|
375
|
+
``\)``). We simply return the original message so that it appears exactly
|
|
376
|
+
as passed by the caller.
|
|
377
|
+
|
|
376
378
|
Args:
|
|
377
|
-
message: Message text
|
|
378
|
-
|
|
379
|
+
message: Message text to send as-is.
|
|
380
|
+
|
|
379
381
|
Returns:
|
|
380
|
-
|
|
382
|
+
The unmodified message string.
|
|
381
383
|
"""
|
|
382
|
-
|
|
383
|
-
return message
|
|
384
|
-
|
|
385
|
-
# Characters that need to be escaped in plain text to prevent API errors
|
|
386
|
-
# Based on Telegram Bot API documentation and common error patterns
|
|
387
|
-
special_chars = ['_', '*', '[', ']', '(', ')', '~', '`', '>', '#', '+', '-', '=', '|', '{', '}', '.', '!']
|
|
388
|
-
|
|
389
|
-
result = ""
|
|
390
|
-
for char in message:
|
|
391
|
-
if char in special_chars:
|
|
392
|
-
result += '\\' + char
|
|
393
|
-
else:
|
|
394
|
-
result += char
|
|
395
|
-
|
|
396
|
-
return result
|
|
384
|
+
return message
|
|
397
385
|
|
|
398
386
|
|
|
399
387
|
def prepare_telegram_markdown(message: str) -> str:
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: telert
|
|
3
|
-
Version: 0.2.
|
|
3
|
+
Version: 0.2.4
|
|
4
4
|
Summary: Ultimate command monitoring & notification system: Telegram, Slack, Discord, Teams, Pushover, Email, desktop & more. Monitor Python code and CLI tasks with context managers, decorators, and webhooks.
|
|
5
5
|
Author-email: Mihir Khandekar <mihirkhandekar@gmail.com>
|
|
6
6
|
License-Expression: MIT
|
|
@@ -54,7 +54,7 @@ Dynamic: license-file
|
|
|
54
54
|
<img src="https://github.com/navig-me/telert/raw/main/telert.png" alt="telert logo" width="150">
|
|
55
55
|
</p>
|
|
56
56
|
|
|
57
|
-
**Version 0.2.
|
|
57
|
+
**Version 0.2.4**
|
|
58
58
|
|
|
59
59
|
[](https://pepy.tech/projects/telert)
|
|
60
60
|
[](https://github.com/navig-me/telert/stargazers)
|
|
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
|
|
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
|
|
File without changes
|