caronc / apprise

Apprise - Push Notifications that work with just about every platform!
https://hub.docker.com/r/caronc/apprise
BSD 2-Clause "Simplified" License
11.71k stars 410 forks source link

Load Notifications and Emoji Engine on Demand #1020

Closed caronc closed 9 months ago

caronc commented 9 months ago

Description:

Related issue (if applicable): n/a

This is a massive re-factor of how notifications are loaded into memory. It also refactors the way the Emoji engine is loaded (saving on memory when it's not needed).

After this PR, notifications are no longer loaded on the import apprise command. Instead leveraging a new library, they are only imported on demand.

Breaking Changes

Those using the library as it was intended will not see any breakage at all.

Checklist

codecov-commenter commented 9 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Comparison is base (cda6925) 99.55% compared to head (b421dfd) 99.27%. Report is 2 commits behind head on master.

:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #1020 +/- ## ========================================== - Coverage 99.55% 99.27% -0.28% ========================================== Files 130 136 +6 Lines 17281 17657 +376 Branches 3523 3603 +80 ========================================== + Hits 17204 17529 +325 - Misses 68 119 +51 Partials 9 9 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.