Skip to content

Conversation

@tbowers7
Copy link
Member

Logging implemented (rather than just print to screen), but will print to stdout if no logger passed in.

Additional error catching for various situations seen during the routine running.

Documentation cleanup and some variable name changes for clarity.

	renamed:    johnnyfive/old_email.py -> ToyModels/old_email.py
	modified:   johnnyfive/gmail.py
	modified:   johnnyfive/utils.py
	modified:   johnnyfive/confluence.py
	modified:   johnnyfive/gmail.py
	modified:   johnnyfive/slack.py
	modified:   johnnyfive/utils.py
	modified:   setup.py
	modified:   johnnyfive/confluence.py
	modified:   johnnyfive/gmail.py
	modified:   johnnyfive/utils.py
@tbowers7 tbowers7 force-pushed the api_changes branch 5 times, most recently from 47184a2 to f4e8906 Compare November 30, 2022 00:44
	modified:   johnnyfive/confluence.py
	modified:   johnnyfive/gmail.py
	modified:   johnnyfive/slack.py
	modified:   johnnyfive/utils.py
tbowers7 added 6 commits June 19, 2023 17:52
	modified:   README.md
	modified:   johnnyfive/gmail.py
The `pkg_resources` package is being deprecated in favor of `importlib`
modules `resources` and `metadata`.  This commit updates this package
to be in line with this change.

	modified:   johnnyfive/confluence.py
	modified:   johnnyfive/gmail.py
	modified:   johnnyfive/utils.py
In the case where a GMAIL message has multiple "parts" (i.e., HTML,
images, etc.), the payload['body'] dictionary element is empty, and
what would be there is as a list in the 'parts' element.  In the simple
case where the GMAIL message is text only, there is only one part (as
is the case with relay DOL messages -- the test case when developing
this class).

This commit adds a check for the 'parts' dictionary element, and selects
the first PART, if such a list exists.  Otherwise, the usual behavior of
extracting the payload['body'] dictionary element holds.  This works
with the hand-delivered DOL messages of the past few days (the mail
relay is down due to IT issues), but no guarantee is made or implied
that this fix will be appropriate or work in all use cases of this
j5 class.

	modified:   johnnyfive/gmail.py
	modified:   johnnyfive/gmail.py
	modified:   johnnyfive/slack.py
	modified:   johnnyfive/utils.py
	new file:   pyproject.toml
	modified:   johnnyfive/__init__.py
	modified:   johnnyfive/classes.py
	modified:   johnnyfive/confluence.py
	modified:   johnnyfive/gmail.py
	modified:   johnnyfive/slack.py
	modified:   johnnyfive/utils.py
	modified:   johnnyfive/confluence.py
	modified:   johnnyfive/gmail.py
@tbowers7 tbowers7 force-pushed the api_changes branch 5 times, most recently from 208bd65 to e1b630b Compare February 18, 2025 22:58
	modified:   johnnyfive/gmail.py
	modified:   johnnyfive/utils.py
tbowers7 added 2 commits May 5, 2025 13:17
Add more exceptions to safely catch when connecting to a service.

	modified:   johnnyfive/utils.py
Was only using the configuration file bits, so just copied those over.

Don't need the large list of dependencies that ligmos has when using
just this library.

	modified:   johnnyfive/utils.py
	modified:   setup.py
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants