PyEmailerAJM 1.9__tar.gz → 1.9.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.
- {pyemailerajm-1.9 → pyemailerajm-1.9.2}/PKG-INFO +2 -2
- pyemailerajm-1.9.2/PyEmailerAJM/_version.py +1 -0
- {pyemailerajm-1.9 → pyemailerajm-1.9.2}/PyEmailerAJM/continuous_monitor/backend/continuous_monitor_base.py +5 -3
- {pyemailerajm-1.9 → pyemailerajm-1.9.2}/PyEmailerAJM/msg/alert_messages.py +3 -2
- {pyemailerajm-1.9 → pyemailerajm-1.9.2}/PyEmailerAJM.egg-info/PKG-INFO +2 -2
- pyemailerajm-1.9/PyEmailerAJM/_version.py +0 -1
- {pyemailerajm-1.9 → pyemailerajm-1.9.2}/LICENSE.txt +0 -0
- {pyemailerajm-1.9 → pyemailerajm-1.9.2}/PyEmailerAJM/__init__.py +0 -0
- {pyemailerajm-1.9 → pyemailerajm-1.9.2}/PyEmailerAJM/backend/__init__.py +0 -0
- {pyemailerajm-1.9 → pyemailerajm-1.9.2}/PyEmailerAJM/backend/enums.py +0 -0
- {pyemailerajm-1.9 → pyemailerajm-1.9.2}/PyEmailerAJM/backend/errs.py +0 -0
- {pyemailerajm-1.9 → pyemailerajm-1.9.2}/PyEmailerAJM/backend/logger.py +0 -0
- {pyemailerajm-1.9 → pyemailerajm-1.9.2}/PyEmailerAJM/backend/the_sandman.py +0 -0
- {pyemailerajm-1.9 → pyemailerajm-1.9.2}/PyEmailerAJM/continuous_monitor/__init__.py +0 -0
- {pyemailerajm-1.9 → pyemailerajm-1.9.2}/PyEmailerAJM/continuous_monitor/backend/__init__.py +0 -0
- {pyemailerajm-1.9 → pyemailerajm-1.9.2}/PyEmailerAJM/continuous_monitor/backend/continuous_colorizer.py +0 -0
- {pyemailerajm-1.9 → pyemailerajm-1.9.2}/PyEmailerAJM/continuous_monitor/backend/email_state.py +0 -0
- {pyemailerajm-1.9 → pyemailerajm-1.9.2}/PyEmailerAJM/continuous_monitor/backend/snooze_tracking.py +0 -0
- {pyemailerajm-1.9 → pyemailerajm-1.9.2}/PyEmailerAJM/continuous_monitor/continuous_monitor.py +0 -0
- {pyemailerajm-1.9 → pyemailerajm-1.9.2}/PyEmailerAJM/continuous_monitor/continuous_monitor_alert_send.py +0 -0
- {pyemailerajm-1.9 → pyemailerajm-1.9.2}/PyEmailerAJM/msg/__init__.py +0 -0
- {pyemailerajm-1.9 → pyemailerajm-1.9.2}/PyEmailerAJM/msg/factory.py +0 -0
- {pyemailerajm-1.9 → pyemailerajm-1.9.2}/PyEmailerAJM/msg/msg.py +0 -0
- {pyemailerajm-1.9 → pyemailerajm-1.9.2}/PyEmailerAJM/py_emailer_ajm.py +0 -0
- {pyemailerajm-1.9 → pyemailerajm-1.9.2}/PyEmailerAJM/searchers/__init__.py +0 -0
- {pyemailerajm-1.9 → pyemailerajm-1.9.2}/PyEmailerAJM/searchers/factory.py +0 -0
- {pyemailerajm-1.9 → pyemailerajm-1.9.2}/PyEmailerAJM/searchers/searchers.py +0 -0
- {pyemailerajm-1.9 → pyemailerajm-1.9.2}/PyEmailerAJM.egg-info/SOURCES.txt +0 -0
- {pyemailerajm-1.9 → pyemailerajm-1.9.2}/PyEmailerAJM.egg-info/dependency_links.txt +0 -0
- {pyemailerajm-1.9 → pyemailerajm-1.9.2}/PyEmailerAJM.egg-info/requires.txt +0 -0
- {pyemailerajm-1.9 → pyemailerajm-1.9.2}/PyEmailerAJM.egg-info/top_level.txt +0 -0
- {pyemailerajm-1.9 → pyemailerajm-1.9.2}/README.md +0 -0
- {pyemailerajm-1.9 → pyemailerajm-1.9.2}/setup.cfg +0 -0
- {pyemailerajm-1.9 → pyemailerajm-1.9.2}/setup.py +0 -0
- {pyemailerajm-1.9 → pyemailerajm-1.9.2}/tests/test_PyEmailerAJM.py +0 -0
- {pyemailerajm-1.9 → pyemailerajm-1.9.2}/tests/test_continuous_monitor_base.py +0 -0
- {pyemailerajm-1.9 → pyemailerajm-1.9.2}/tests/test_email_signature.py +0 -0
- {pyemailerajm-1.9 → pyemailerajm-1.9.2}/tests/test_logger.py +0 -0
- {pyemailerajm-1.9 → pyemailerajm-1.9.2}/tests/test_msg_properties.py +0 -0
- {pyemailerajm-1.9 → pyemailerajm-1.9.2}/tests/test_searcher_factory.py +0 -0
- {pyemailerajm-1.9 → pyemailerajm-1.9.2}/tests/test_snooze_tracking.py +0 -0
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: PyEmailerAJM
|
|
3
|
-
Version: 1.9
|
|
3
|
+
Version: 1.9.2
|
|
4
4
|
Summary: Allows for automating sending Email with the Outlook Desktop client. Future releases will add more client support
|
|
5
5
|
Home-page: https://github.com/amcsparron2793-Water/PyEmailer
|
|
6
|
-
Download-URL: https://github.com/amcsparron2793-Water/PyEmailer/archive/refs/tags/1.9.tar.gz
|
|
6
|
+
Download-URL: https://github.com/amcsparron2793-Water/PyEmailer/archive/refs/tags/1.9.2.tar.gz
|
|
7
7
|
Author: Amcsparron
|
|
8
8
|
Author-email: amcsparron@albanyny.gov
|
|
9
9
|
License: MIT License
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = '1.9.2'
|
|
@@ -94,7 +94,9 @@ class ContinuousMonitorBase(PyEmailer, EmailState):
|
|
|
94
94
|
|
|
95
95
|
# Issue with PyEmailer 1.8.5 causes the base version to disable email handler
|
|
96
96
|
# (issue with check for setup_email_handler attr) - below is a functional work around
|
|
97
|
-
|
|
97
|
+
# TODO: allow the logger_class to be passed in as an arg
|
|
98
|
+
def email_handler_init(self, **kwargs):
|
|
99
|
+
logger_class = kwargs.get('logger_class', self.logger_class)
|
|
98
100
|
try:
|
|
99
101
|
if self.dev_mode:
|
|
100
102
|
self.logger.warning("email handler disabled for dev mode")
|
|
@@ -104,8 +106,8 @@ class ContinuousMonitorBase(PyEmailer, EmailState):
|
|
|
104
106
|
f"email handler not initialized because this is not a ContinuousMonitorAlertSend subclass"
|
|
105
107
|
)
|
|
106
108
|
else:
|
|
107
|
-
|
|
108
|
-
|
|
109
|
+
logger_class.setup_email_handler(email_msg=self.email,
|
|
110
|
+
logger_admins=self.__class__.ADMIN_EMAIL_LOGGER)
|
|
109
111
|
self.email = self.initialize_new_email()
|
|
110
112
|
self.logger.info("email handler initialized, initialized a new email object for use by monitor")
|
|
111
113
|
except AttributeError as e:
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
from datetime import datetime
|
|
2
|
+
from enum import Enum
|
|
2
3
|
from pathlib import Path
|
|
3
4
|
import inspect
|
|
4
5
|
|
|
@@ -120,10 +121,10 @@ class _AlertMsgBase(Msg, _AlertCheckMethods):
|
|
|
120
121
|
self.__class__.AlertMsgBaseCheckClsAttrs()
|
|
121
122
|
|
|
122
123
|
def __init_subclass__(cls, **kwargs):
|
|
123
|
-
if cls.ALERT_LEVEL and isinstance(cls.ALERT_LEVEL,
|
|
124
|
+
if cls.ALERT_LEVEL is not None and isinstance(cls.ALERT_LEVEL, Enum):
|
|
124
125
|
pass
|
|
125
126
|
else:
|
|
126
|
-
raise AttributeError('ALERT_LEVEL must be set to an AlertTypes value when using this class!')
|
|
127
|
+
raise AttributeError('ALERT_LEVEL must be set to an AlertTypes or other Enum value when using this class!')
|
|
127
128
|
|
|
128
129
|
@classmethod
|
|
129
130
|
def AlertMsgBaseCheckClsAttrs(cls):
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: PyEmailerAJM
|
|
3
|
-
Version: 1.9
|
|
3
|
+
Version: 1.9.2
|
|
4
4
|
Summary: Allows for automating sending Email with the Outlook Desktop client. Future releases will add more client support
|
|
5
5
|
Home-page: https://github.com/amcsparron2793-Water/PyEmailer
|
|
6
|
-
Download-URL: https://github.com/amcsparron2793-Water/PyEmailer/archive/refs/tags/1.9.tar.gz
|
|
6
|
+
Download-URL: https://github.com/amcsparron2793-Water/PyEmailer/archive/refs/tags/1.9.2.tar.gz
|
|
7
7
|
Author: Amcsparron
|
|
8
8
|
Author-email: amcsparron@albanyny.gov
|
|
9
9
|
License: MIT License
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
__version__ = '1.9'
|
|
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
|
{pyemailerajm-1.9 → pyemailerajm-1.9.2}/PyEmailerAJM/continuous_monitor/backend/email_state.py
RENAMED
|
File without changes
|
{pyemailerajm-1.9 → pyemailerajm-1.9.2}/PyEmailerAJM/continuous_monitor/backend/snooze_tracking.py
RENAMED
|
File without changes
|
{pyemailerajm-1.9 → pyemailerajm-1.9.2}/PyEmailerAJM/continuous_monitor/continuous_monitor.py
RENAMED
|
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
|
|
File without changes
|
|
File without changes
|