Browse Source

Refactor: Python Module Naming & Namespace Harmonization (#1119)

pull/1120/head
Chris Caron 7 months ago committed by GitHub
parent
commit
b8da1334ab
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 21
      apprise/__init__.py
  2. 14
      apprise/apprise.py
  3. 0
      apprise/apprise.pyi
  4. 6
      apprise/apprise_attachment.py
  5. 0
      apprise/apprise_attachment.pyi
  6. 4
      apprise/apprise_config.py
  7. 0
      apprise/apprise_config.pyi
  8. 2
      apprise/asset.py
  9. 0
      apprise/asset.pyi
  10. 5
      apprise/attachment/__init__.py
  11. 4
      apprise/attachment/base.py
  12. 0
      apprise/attachment/base.pyi
  13. 4
      apprise/attachment/file.py
  14. 6
      apprise/attachment/http.py
  15. 5
      apprise/config/__init__.py
  16. 8
      apprise/config/base.py
  17. 0
      apprise/config/base.pyi
  18. 4
      apprise/config/file.py
  19. 6
      apprise/config/http.py
  20. 4
      apprise/config/memory.py
  21. 2
      apprise/conversion.py
  22. 4
      apprise/decorators/base.py
  23. 2
      apprise/decorators/notify.py
  24. 0
      apprise/locale.py
  25. 83
      apprise/manager.py
  26. 5
      apprise/manager_attachment.py
  27. 5
      apprise/manager_config.py
  28. 6
      apprise/manager_plugins.py
  29. 8
      apprise/plugins/__init__.py
  30. 6
      apprise/plugins/apprise_api.py
  31. 6
      apprise/plugins/aprs.py
  32. 6
      apprise/plugins/bark.py
  33. 6
      apprise/plugins/base.py
  34. 0
      apprise/plugins/base.pyi
  35. 6
      apprise/plugins/boxcar.py
  36. 6
      apprise/plugins/bulksms.py
  37. 6
      apprise/plugins/bulkvs.py
  38. 6
      apprise/plugins/burstsms.py
  39. 4
      apprise/plugins/chantify.py
  40. 6
      apprise/plugins/clicksend.py
  41. 6
      apprise/plugins/custom_form.py
  42. 6
      apprise/plugins/custom_json.py
  43. 6
      apprise/plugins/custom_xml.py
  44. 4
      apprise/plugins/d7networks.py
  45. 6
      apprise/plugins/dapnet.py
  46. 4
      apprise/plugins/dbus.py
  47. 6
      apprise/plugins/dingtalk.py
  48. 6
      apprise/plugins/discord.py
  49. 6
      apprise/plugins/email.py
  50. 6
      apprise/plugins/emby.py
  51. 6
      apprise/plugins/enigma2.py
  52. 6
      apprise/plugins/fcm/__init__.py
  53. 2
      apprise/plugins/fcm/color.py
  54. 0
      apprise/plugins/fcm/common.py
  55. 0
      apprise/plugins/fcm/oauth.py
  56. 0
      apprise/plugins/fcm/priority.py
  57. 4
      apprise/plugins/feishu.py
  58. 4
      apprise/plugins/flock.py
  59. 4
      apprise/plugins/freemobile.py
  60. 4
      apprise/plugins/gnome.py
  61. 4
      apprise/plugins/google_chat.py
  62. 4
      apprise/plugins/gotify.py
  63. 6
      apprise/plugins/growl.py
  64. 5
      apprise/plugins/guilded.py
  65. 6
      apprise/plugins/home_assistant.py
  66. 4
      apprise/plugins/httpsms.py
  67. 4
      apprise/plugins/ifttt.py
  68. 4
      apprise/plugins/join.py
  69. 4
      apprise/plugins/kavenegar.py
  70. 4
      apprise/plugins/kumulos.py
  71. 4
      apprise/plugins/lametric.py
  72. 6
      apprise/plugins/line.py
  73. 6
      apprise/plugins/lunasea.py
  74. 4
      apprise/plugins/macosx.py
  75. 4
      apprise/plugins/mailgun.py
  76. 8
      apprise/plugins/mastodon.py
  77. 6
      apprise/plugins/matrix.py
  78. 4
      apprise/plugins/mattermost.py
  79. 4
      apprise/plugins/messagebird.py
  80. 4
      apprise/plugins/misskey.py
  81. 6
      apprise/plugins/mqtt.py
  82. 4
      apprise/plugins/msg91.py
  83. 6
      apprise/plugins/msteams.py
  84. 6
      apprise/plugins/nextcloud.py
  85. 6
      apprise/plugins/nextcloudtalk.py
  86. 6
      apprise/plugins/notica.py
  87. 4
      apprise/plugins/notifiarr.py
  88. 4
      apprise/plugins/notifico.py
  89. 8
      apprise/plugins/ntfy.py
  90. 6
      apprise/plugins/office365.py
  91. 4
      apprise/plugins/one_signal.py
  92. 4
      apprise/plugins/opsgenie.py
  93. 6
      apprise/plugins/pagerduty.py
  94. 4
      apprise/plugins/pagertree.py
  95. 4
      apprise/plugins/parseplatform.py
  96. 4
      apprise/plugins/popcorn_notify.py
  97. 4
      apprise/plugins/prowl.py
  98. 6
      apprise/plugins/pushbullet.py
  99. 4
      apprise/plugins/pushdeer.py
  100. 6
      apprise/plugins/pushed.py
  101. Some files were not shown because too many files have changed in this diff Show More

21
apprise/__init__.py

@ -49,16 +49,17 @@ from .common import CONTENT_INCLUDE_MODES
from .common import ContentLocation
from .common import CONTENT_LOCATIONS
from .URLBase import URLBase
from .URLBase import PrivacyMode
from .plugins.NotifyBase import NotifyBase
from .config.ConfigBase import ConfigBase
from .attachment.AttachBase import AttachBase
from .url import URLBase
from .url import PrivacyMode
from .plugins.base import NotifyBase
from .config.base import ConfigBase
from .attachment.base import AttachBase
from .Apprise import Apprise
from .AppriseAsset import AppriseAsset
from .AppriseConfig import AppriseConfig
from .AppriseAttachment import AppriseAttachment
from .apprise import Apprise
from .locale import AppriseLocale
from .asset import AppriseAsset
from .apprise_config import AppriseConfig
from .apprise_attachment import AppriseAttachment
from . import decorators
@ -73,7 +74,7 @@ logging.getLogger(__name__).addHandler(logging.NullHandler())
__all__ = [
# Core
'Apprise', 'AppriseAsset', 'AppriseConfig', 'AppriseAttachment', 'URLBase',
'NotifyBase', 'ConfigBase', 'AttachBase',
'NotifyBase', 'ConfigBase', 'AttachBase', 'AppriseLocale',
# Reference
'NotifyType', 'NotifyImageSize', 'NotifyFormat', 'OverflowMode',

14
apprise/Apprise.py → apprise/apprise.py

@ -33,18 +33,18 @@ from itertools import chain
from . import common
from .conversion import convert_between
from .utils import is_exclusive_match
from .NotificationManager import NotificationManager
from .manager_plugins import NotificationManager
from .utils import parse_list
from .utils import parse_urls
from .utils import cwe312_url
from .emojis import apply_emojis
from .logger import logger
from .AppriseAsset import AppriseAsset
from .AppriseConfig import AppriseConfig
from .AppriseAttachment import AppriseAttachment
from .AppriseLocale import AppriseLocale
from .config.ConfigBase import ConfigBase
from .plugins.NotifyBase import NotifyBase
from .asset import AppriseAsset
from .apprise_config import AppriseConfig
from .apprise_attachment import AppriseAttachment
from .locale import AppriseLocale
from .config.base import ConfigBase
from .plugins.base import NotifyBase
from . import plugins
from . import __version__

0
apprise/Apprise.pyi → apprise/apprise.pyi

6
apprise/AppriseAttachment.py → apprise/apprise_attachment.py

@ -27,9 +27,9 @@
# POSSIBILITY OF SUCH DAMAGE.
from . import URLBase
from .attachment.AttachBase import AttachBase
from .AppriseAsset import AppriseAsset
from .AttachmentManager import AttachmentManager
from .attachment.base import AttachBase
from .asset import AppriseAsset
from .manager_attachment import AttachmentManager
from .logger import logger
from .common import ContentLocation
from .common import CONTENT_LOCATIONS

0
apprise/AppriseAttachment.pyi → apprise/apprise_attachment.pyi

4
apprise/AppriseConfig.py → apprise/apprise_config.py

@ -28,9 +28,9 @@
from . import ConfigBase
from . import CONFIG_FORMATS
from .ConfigurationManager import ConfigurationManager
from .manager_config import ConfigurationManager
from . import URLBase
from .AppriseAsset import AppriseAsset
from .asset import AppriseAsset
from . import common
from .utils import GET_SCHEMA_RE
from .utils import parse_list

0
apprise/AppriseConfig.pyi → apprise/apprise_config.pyi

2
apprise/AppriseAsset.py → apprise/asset.py

@ -33,7 +33,7 @@ from os.path import dirname
from os.path import isfile
from os.path import abspath
from .common import NotifyType
from .NotificationManager import NotificationManager
from .manager_plugins import NotificationManager
# Grant access to our Notification Manager Singleton

0
apprise/AppriseAsset.pyi → apprise/asset.pyi

5
apprise/attachment/__init__.py

@ -27,8 +27,8 @@
# POSSIBILITY OF SUCH DAMAGE.
# Used for testing
from .AttachBase import AttachBase
from ..AttachmentManager import AttachmentManager
from .base import AttachBase
from ..manager_attachment import AttachmentManager
# Initalize our Attachment Manager Singleton
A_MGR = AttachmentManager()
@ -36,4 +36,5 @@ A_MGR = AttachmentManager()
__all__ = [
# Reference
'AttachBase',
'AttachmentManager',
]

4
apprise/attachment/AttachBase.py → apprise/attachment/base.py

@ -29,10 +29,10 @@
import os
import time
import mimetypes
from ..URLBase import URLBase
from ..url import URLBase
from ..utils import parse_bool
from ..common import ContentLocation
from ..AppriseLocale import gettext_lazy as _
from ..locale import gettext_lazy as _
class AttachBase(URLBase):

0
apprise/attachment/AttachBase.pyi → apprise/attachment/base.pyi

4
apprise/attachment/AttachFile.py → apprise/attachment/file.py

@ -28,9 +28,9 @@
import re
import os
from .AttachBase import AttachBase
from .base import AttachBase
from ..common import ContentLocation
from ..AppriseLocale import gettext_lazy as _
from ..locale import gettext_lazy as _
class AttachFile(AttachBase):

6
apprise/attachment/AttachHTTP.py → apprise/attachment/http.py

@ -31,10 +31,10 @@ import os
import requests
import threading
from tempfile import NamedTemporaryFile
from .AttachBase import AttachBase
from .base import AttachBase
from ..common import ContentLocation
from ..URLBase import PrivacyMode
from ..AppriseLocale import gettext_lazy as _
from ..url import PrivacyMode
from ..locale import gettext_lazy as _
class AttachHTTP(AttachBase):

5
apprise/config/__init__.py

@ -27,8 +27,8 @@
# POSSIBILITY OF SUCH DAMAGE.
# Used for testing
from .ConfigBase import ConfigBase
from ..ConfigurationManager import ConfigurationManager
from .base import ConfigBase
from ..manager_config import ConfigurationManager
# Initalize our Config Manager Singleton
C_MGR = ConfigurationManager()
@ -36,4 +36,5 @@ C_MGR = ConfigurationManager()
__all__ = [
# Reference
'ConfigBase',
'ConfigurationManager',
]

8
apprise/config/ConfigBase.py → apprise/config/base.py

@ -33,15 +33,15 @@ import time
from .. import plugins
from .. import common
from ..AppriseAsset import AppriseAsset
from ..URLBase import URLBase
from ..ConfigurationManager import ConfigurationManager
from ..asset import AppriseAsset
from ..url import URLBase
from ..utils import GET_SCHEMA_RE
from ..utils import parse_list
from ..utils import parse_bool
from ..utils import parse_urls
from ..utils import cwe312_url
from ..NotificationManager import NotificationManager
from ..manager_config import ConfigurationManager
from ..manager_plugins import NotificationManager
# Test whether token is valid or not
VALID_TOKEN = re.compile(

0
apprise/config/ConfigBase.pyi → apprise/config/base.pyi

4
apprise/config/ConfigFile.py → apprise/config/file.py

@ -28,10 +28,10 @@
import re
import os
from .ConfigBase import ConfigBase
from .base import ConfigBase
from ..common import ConfigFormat
from ..common import ContentIncludeMode
from ..AppriseLocale import gettext_lazy as _
from ..locale import gettext_lazy as _
class ConfigFile(ConfigBase):

6
apprise/config/ConfigHTTP.py → apprise/config/http.py

@ -28,11 +28,11 @@
import re
import requests
from .ConfigBase import ConfigBase
from .base import ConfigBase
from ..common import ConfigFormat
from ..common import ContentIncludeMode
from ..URLBase import PrivacyMode
from ..AppriseLocale import gettext_lazy as _
from ..url import PrivacyMode
from ..locale import gettext_lazy as _
# Support YAML formats
# text/yaml

4
apprise/config/ConfigMemory.py → apprise/config/memory.py

@ -26,8 +26,8 @@
# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
# POSSIBILITY OF SUCH DAMAGE.
from .ConfigBase import ConfigBase
from ..AppriseLocale import gettext_lazy as _
from .base import ConfigBase
from ..locale import gettext_lazy as _
class ConfigMemory(ConfigBase):

2
apprise/conversion.py

@ -29,7 +29,7 @@
import re
from markdown import markdown
from .common import NotifyFormat
from .URLBase import URLBase
from .url import URLBase
from html.parser import HTMLParser

4
apprise/decorators/CustomNotifyPlugin.py → apprise/decorators/base.py

@ -27,8 +27,8 @@
# POSSIBILITY OF SUCH DAMAGE.USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
# POSSIBILITY OF SUCH DAMAGE.
from ..plugins.NotifyBase import NotifyBase
from ..NotificationManager import NotificationManager
from ..plugins.base import NotifyBase
from ..manager_plugins import NotificationManager
from ..utils import URL_DETAILS_RE
from ..utils import parse_url
from ..utils import url_assembly

2
apprise/decorators/notify.py

@ -26,7 +26,7 @@
# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
# POSSIBILITY OF SUCH DAMAGE.
from .CustomNotifyPlugin import CustomNotifyPlugin
from .base import CustomNotifyPlugin
def notify(on, name=None):

0
apprise/AppriseLocale.py → apprise/locale.py

83
apprise/manager.py

@ -61,6 +61,9 @@ class PluginManager(metaclass=Singleton):
# The module path to scan
module_path = join(abspath(dirname(__file__)), _id)
# For filtering our result when scanning a module
module_filter_re = re.compile(r'^(?P<name>((?!_)[A-Za-z0-9]+))$')
# thread safe loading
_lock = threading.Lock()
@ -177,7 +180,7 @@ class PluginManager(metaclass=Singleton):
# The .py extension is optional as we support loading directories
# too
module_re = re.compile(
r'^(?P<name>' + self.fname_prefix + r'[a-z0-9]+)(\.py)?$',
r'^(?P<name>(?!base|_)[a-z0-9_]+)(\.py)?$',
re.I)
t_start = time.time()
@ -188,10 +191,6 @@ class PluginManager(metaclass=Singleton):
# keep going
continue
elif match.group('name') == f'{self.fname_prefix}Base':
# keep going
continue
# Store our notification/plugin name:
module_name = match.group('name')
module_pyname = '{}.{}'.format(module_name_prefix, module_name)
@ -216,7 +215,47 @@ class PluginManager(metaclass=Singleton):
# logging found in import_module and not needed here
continue
if not hasattr(module, module_name):
module_class = None
for m_class in [obj for obj in dir(module)
if self.module_filter_re.match(obj)]:
# Get our plugin
plugin = getattr(module, m_class)
if not hasattr(plugin, 'app_id'):
# Filter out non-notification modules
logger.trace(
"(%s) import failed; no app_id defined in %s",
self.name, m_class, os.path.join(module_path, f))
continue
# Add our plugin name to our module map
self._module_map[module_name] = {
'plugin': set([plugin]),
'module': module,
'path': '{}.{}'.format(
module_name_prefix, module_name),
'native': True,
}
fn = getattr(plugin, 'schemas', None)
schemas = set([]) if not callable(fn) else fn(plugin)
# map our schema to our plugin
for schema in schemas:
if schema in self._schema_map:
logger.error(
"{} schema ({}) mismatch detected - {} to {}"
.format(self.name, schema, self._schema_map,
plugin))
continue
# Assign plugin
self._schema_map[schema] = plugin
# Store our class
module_class = m_class
break
if not module_class:
# Not a library we can load as it doesn't follow the simple
# rule that the class must bear the same name as the
# notification file itself.
@ -226,38 +265,6 @@ class PluginManager(metaclass=Singleton):
self.name, module_name, os.path.join(module_path, f))
continue
# Get our plugin
plugin = getattr(module, module_name)
if not hasattr(plugin, 'app_id'):
# Filter out non-notification modules
logger.trace(
"(%s) import failed; no app_id defined in %s",
self.name, module_name, os.path.join(module_path, f))
continue
# Add our plugin name to our module map
self._module_map[module_name] = {
'plugin': set([plugin]),
'module': module,
'path': '{}.{}'.format(module_name_prefix, module_name),
'native': True,
}
fn = getattr(plugin, 'schemas', None)
schemas = set([]) if not callable(fn) else fn(plugin)
# map our schema to our plugin
for schema in schemas:
if schema in self._schema_map:
logger.error(
"{} schema ({}) mismatch detected - {} to {}"
.format(self.name, schema, self._schema_map,
plugin))
continue
# Assign plugin
self._schema_map[schema] = plugin
logger.trace(
'{} {} loaded in {:.6f}s'.format(
self.name, module_name, (time.time() - tl_start)))

5
apprise/AttachmentManager.py → apprise/manager_attachment.py

@ -26,6 +26,7 @@
# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
# POSSIBILITY OF SUCH DAMAGE.
import re
from os.path import dirname
from os.path import abspath
from os.path import join
@ -52,3 +53,7 @@ class AttachmentManager(PluginManager):
# The module path to scan
module_path = join(abspath(dirname(__file__)), _id)
# For filtering our result set
module_filter_re = re.compile(
r'^(?P<name>' + fname_prefix + r'(?!Base)[A-Za-z0-9]+)$')

5
apprise/ConfigurationManager.py → apprise/manager_config.py

@ -26,6 +26,7 @@
# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
# POSSIBILITY OF SUCH DAMAGE.
import re
from os.path import dirname
from os.path import abspath
from os.path import join
@ -52,3 +53,7 @@ class ConfigurationManager(PluginManager):
# The module path to scan
module_path = join(abspath(dirname(__file__)), _id)
# For filtering our result set
module_filter_re = re.compile(
r'^(?P<name>' + fname_prefix + r'(?!Base)[A-Za-z0-9]+)$')

6
apprise/NotificationManager.py → apprise/manager_plugins.py

@ -26,6 +26,7 @@
# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
# POSSIBILITY OF SUCH DAMAGE.
import re
from os.path import dirname
from os.path import abspath
from os.path import join
@ -52,3 +53,8 @@ class NotificationManager(PluginManager):
# The module path to scan
module_path = join(abspath(dirname(__file__)), _id)
# For filtering our result set
module_filter_re = re.compile(
r'^(?P<name>' + fname_prefix +
r'(?!Base|ImageSize|Type)[A-Za-z0-9]+)$')

8
apprise/plugins/__init__.py

@ -30,7 +30,7 @@ import os
import copy
# Used for testing
from .NotifyBase import NotifyBase
from .base import NotifyBase
from ..common import NotifyImageSize
from ..common import NOTIFY_IMAGE_SIZES
@ -40,9 +40,9 @@ from ..utils import parse_list
from ..utils import cwe312_url
from ..utils import GET_SCHEMA_RE
from ..logger import logger
from ..AppriseLocale import gettext_lazy as _
from ..AppriseLocale import LazyTranslation
from ..NotificationManager import NotificationManager
from ..locale import gettext_lazy as _
from ..locale import LazyTranslation
from ..manager_plugins import NotificationManager
# Grant access to our Notification Manager Singleton

6
apprise/plugins/NotifyAppriseAPI.py → apprise/plugins/apprise_api.py

@ -31,12 +31,12 @@ import requests
from json import dumps
import base64
from .NotifyBase import NotifyBase
from ..URLBase import PrivacyMode
from .base import NotifyBase
from ..url import PrivacyMode
from ..common import NotifyType
from ..utils import parse_list
from ..utils import validate_regex
from ..AppriseLocale import gettext_lazy as _
from ..locale import gettext_lazy as _
class AppriseAPIMethod:

6
apprise/plugins/NotifyAprs.py → apprise/plugins/aprs.py

@ -70,9 +70,9 @@
import socket
import sys
from itertools import chain
from .NotifyBase import NotifyBase
from ..AppriseLocale import gettext_lazy as _
from ..URLBase import PrivacyMode
from .base import NotifyBase
from ..locale import gettext_lazy as _
from ..url import PrivacyMode
from ..common import NotifyType
from ..utils import is_call_sign
from ..utils import parse_call_sign

6
apprise/plugins/NotifyBark.py → apprise/plugins/bark.py

@ -32,13 +32,13 @@
import requests
import json
from .NotifyBase import NotifyBase
from ..URLBase import PrivacyMode
from .base import NotifyBase
from ..url import PrivacyMode
from ..common import NotifyImageSize
from ..common import NotifyType
from ..utils import parse_list
from ..utils import parse_bool
from ..AppriseLocale import gettext_lazy as _
from ..locale import gettext_lazy as _
# Sounds generated off of: https://github.com/Finb/Bark/tree/master/Sounds

6
apprise/plugins/NotifyBase.py → apprise/plugins/base.py

@ -30,7 +30,7 @@ import asyncio
import re
from functools import partial
from ..URLBase import URLBase
from ..url import URLBase
from ..common import NotifyType
from ..utils import parse_bool
from ..common import NOTIFY_TYPES
@ -38,8 +38,8 @@ from ..common import NotifyFormat
from ..common import NOTIFY_FORMATS
from ..common import OverflowMode
from ..common import OVERFLOW_MODES
from ..AppriseLocale import gettext_lazy as _
from ..AppriseAttachment import AppriseAttachment
from ..locale import gettext_lazy as _
from ..apprise_attachment import AppriseAttachment
class NotifyBase(URLBase):

0
apprise/plugins/NotifyBase.pyi → apprise/plugins/base.pyi

6
apprise/plugins/NotifyBoxcar.py → apprise/plugins/boxcar.py

@ -35,14 +35,14 @@ from hashlib import sha1
from itertools import chain
from urllib.parse import urlparse
from .NotifyBase import NotifyBase
from ..URLBase import PrivacyMode
from .base import NotifyBase
from ..url import PrivacyMode
from ..utils import parse_bool
from ..utils import parse_list
from ..utils import validate_regex
from ..common import NotifyType
from ..common import NotifyImageSize
from ..AppriseLocale import gettext_lazy as _
from ..locale import gettext_lazy as _
# Default to sending to all devices if nothing is specified
DEFAULT_TAG = '@all'

6
apprise/plugins/NotifyBulkSMS.py → apprise/plugins/bulksms.py

@ -36,13 +36,13 @@ import re
import requests
import json
from itertools import chain
from .NotifyBase import NotifyBase
from ..URLBase import PrivacyMode
from .base import NotifyBase
from ..url import PrivacyMode
from ..common import NotifyType
from ..utils import is_phone_no
from ..utils import parse_phone_no
from ..utils import parse_bool
from ..AppriseLocale import gettext_lazy as _
from ..locale import gettext_lazy as _
IS_GROUP_RE = re.compile(

6
apprise/plugins/NotifyBulkVS.py → apprise/plugins/bulkvs.py

@ -35,13 +35,13 @@
# Messaging/post_messageSend
import requests
import json
from .NotifyBase import NotifyBase
from ..URLBase import PrivacyMode
from .base import NotifyBase
from ..url import PrivacyMode
from ..common import NotifyType
from ..utils import is_phone_no
from ..utils import parse_phone_no
from ..utils import parse_bool
from ..AppriseLocale import gettext_lazy as _
from ..locale import gettext_lazy as _
class NotifyBulkVS(NotifyBase):

6
apprise/plugins/NotifyBurstSMS.py → apprise/plugins/burstsms.py

@ -33,14 +33,14 @@
#
import requests
from .NotifyBase import NotifyBase
from ..URLBase import PrivacyMode
from .base import NotifyBase
from ..url import PrivacyMode
from ..common import NotifyType
from ..utils import is_phone_no
from ..utils import parse_phone_no
from ..utils import parse_bool
from ..utils import validate_regex
from ..AppriseLocale import gettext_lazy as _
from ..locale import gettext_lazy as _
class BurstSMSCountryCode:

4
apprise/plugins/NotifyChantify.py → apprise/plugins/chantify.py

@ -35,10 +35,10 @@
import requests
from .NotifyBase import NotifyBase
from .base import NotifyBase
from ..common import NotifyType
from ..utils import validate_regex
from ..AppriseLocale import gettext_lazy as _
from ..locale import gettext_lazy as _
class NotifyChantify(NotifyBase):

6
apprise/plugins/NotifyClickSend.py → apprise/plugins/clicksend.py

@ -43,13 +43,13 @@ import requests
from json import dumps
from base64 import b64encode
from .NotifyBase import NotifyBase
from ..URLBase import PrivacyMode
from .base import NotifyBase
from ..url import PrivacyMode
from ..common import NotifyType
from ..utils import is_phone_no
from ..utils import parse_phone_no
from ..utils import parse_bool
from ..AppriseLocale import gettext_lazy as _
from ..locale import gettext_lazy as _
# Extend HTTP Error Messages
CLICKSEND_HTTP_ERROR_MAP = {

6
apprise/plugins/NotifyForm.py → apprise/plugins/custom_form.py

@ -29,11 +29,11 @@
import re
import requests
from .NotifyBase import NotifyBase
from ..URLBase import PrivacyMode
from .base import NotifyBase
from ..url import PrivacyMode
from ..common import NotifyImageSize
from ..common import NotifyType
from ..AppriseLocale import gettext_lazy as _
from ..locale import gettext_lazy as _
class FORMPayloadField:

6
apprise/plugins/NotifyJSON.py → apprise/plugins/custom_json.py

@ -30,11 +30,11 @@ import requests
import base64
from json import dumps
from .NotifyBase import NotifyBase
from ..URLBase import PrivacyMode
from .base import NotifyBase
from ..url import PrivacyMode
from ..common import NotifyImageSize
from ..common import NotifyType
from ..AppriseLocale import gettext_lazy as _
from ..locale import gettext_lazy as _
class JSONPayloadField:

6
apprise/plugins/NotifyXML.py → apprise/plugins/custom_xml.py

@ -30,11 +30,11 @@ import re
import requests
import base64
from .NotifyBase import NotifyBase
from ..URLBase import PrivacyMode
from .base import NotifyBase
from ..url import PrivacyMode
from ..common import NotifyImageSize
from ..common import NotifyType
from ..AppriseLocale import gettext_lazy as _
from ..locale import gettext_lazy as _
class XMLPayloadField:

4
apprise/plugins/NotifyD7Networks.py → apprise/plugins/d7networks.py

@ -39,13 +39,13 @@ import requests
from json import dumps
from json import loads
from .NotifyBase import NotifyBase
from .base import NotifyBase
from ..common import NotifyType
from ..utils import is_phone_no
from ..utils import parse_phone_no
from ..utils import validate_regex
from ..utils import parse_bool
from ..AppriseLocale import gettext_lazy as _
from ..locale import gettext_lazy as _
# Extend HTTP Error Messages
D7NETWORKS_HTTP_ERROR_MAP = {

6
apprise/plugins/NotifyDapnet.py → apprise/plugins/dapnet.py

@ -51,9 +51,9 @@ from json import dumps
import requests
from requests.auth import HTTPBasicAuth
from .NotifyBase import NotifyBase
from ..AppriseLocale import gettext_lazy as _
from ..URLBase import PrivacyMode
from .base import NotifyBase
from ..locale import gettext_lazy as _
from ..url import PrivacyMode
from ..common import NotifyType
from ..utils import is_call_sign
from ..utils import parse_call_sign

4
apprise/plugins/NotifyDBus.py → apprise/plugins/dbus.py

@ -27,11 +27,11 @@
# POSSIBILITY OF SUCH DAMAGE.
import sys
from .NotifyBase import NotifyBase
from .base import NotifyBase
from ..common import NotifyImageSize
from ..common import NotifyType
from ..utils import parse_bool
from ..AppriseLocale import gettext_lazy as _
from ..locale import gettext_lazy as _
# Default our global support flag
NOTIFY_DBUS_SUPPORT_ENABLED = False

6
apprise/plugins/NotifyDingTalk.py → apprise/plugins/dingtalk.py

@ -34,13 +34,13 @@ import base64
import requests
from json import dumps
from .NotifyBase import NotifyBase
from ..URLBase import PrivacyMode
from .base import NotifyBase
from ..url import PrivacyMode
from ..common import NotifyFormat
from ..common import NotifyType
from ..utils import parse_list
from ..utils import validate_regex
from ..AppriseLocale import gettext_lazy as _
from ..locale import gettext_lazy as _
# Register at https://dingtalk.com
# - Download their PC based software as it is the only way you can create

6
apprise/plugins/NotifyDiscord.py → apprise/plugins/discord.py

@ -50,14 +50,14 @@ from datetime import timedelta
from datetime import datetime
from datetime import timezone
from .NotifyBase import NotifyBase
from .base import NotifyBase
from ..common import NotifyImageSize
from ..common import NotifyFormat
from ..common import NotifyType
from ..utils import parse_bool
from ..utils import validate_regex
from ..AppriseLocale import gettext_lazy as _
from ..attachment.AttachBase import AttachBase
from ..locale import gettext_lazy as _
from ..attachment.base import AttachBase
# Used to detect user/role IDs

6
apprise/plugins/NotifyEmail.py → apprise/plugins/email.py

@ -41,12 +41,12 @@ from socket import error as SocketError
from datetime import datetime
from datetime import timezone
from .NotifyBase import NotifyBase
from ..URLBase import PrivacyMode
from .base import NotifyBase
from ..url import PrivacyMode
from ..common import NotifyFormat, NotifyType
from ..conversion import convert_between
from ..utils import is_ipaddr, is_email, parse_emails, is_hostname
from ..AppriseLocale import gettext_lazy as _
from ..locale import gettext_lazy as _
from ..logger import logger
# Globally Default encoding mode set to Quoted Printable.

6
apprise/plugins/NotifyEmby.py → apprise/plugins/emby.py

@ -34,12 +34,12 @@ import hashlib
from json import dumps
from json import loads
from .NotifyBase import NotifyBase
from ..URLBase import PrivacyMode
from .base import NotifyBase
from ..url import PrivacyMode
from ..utils import parse_bool
from ..common import NotifyType
from .. import __version__ as VERSION
from ..AppriseLocale import gettext_lazy as _
from ..locale import gettext_lazy as _
class NotifyEmby(NotifyBase):

6
apprise/plugins/NotifyEnigma2.py → apprise/plugins/enigma2.py

@ -37,10 +37,10 @@
import requests
from json import loads
from .NotifyBase import NotifyBase
from ..URLBase import PrivacyMode
from .base import NotifyBase
from ..url import PrivacyMode
from ..common import NotifyType
from ..AppriseLocale import gettext_lazy as _
from ..locale import gettext_lazy as _
class Enigma2MessageType:

6
apprise/plugins/NotifyFCM/__init__.py → apprise/plugins/fcm/__init__.py

@ -50,15 +50,15 @@
# You will need this in order to send an apprise messag
import requests
from json import dumps
from ..NotifyBase import NotifyBase
from ..base import NotifyBase
from ...common import NotifyType
from ...utils import validate_regex
from ...utils import parse_list
from ...utils import parse_bool
from ...utils import dict_full_update
from ...common import NotifyImageSize
from ...AppriseAttachment import AppriseAttachment
from ...AppriseLocale import gettext_lazy as _
from ...apprise_attachment import AppriseAttachment
from ...locale import gettext_lazy as _
from .common import (FCMMode, FCM_MODES)
from .priority import (FCM_PRIORITIES, FCMPriorityManager)
from .color import FCMColorManager

2
apprise/plugins/NotifyFCM/color.py → apprise/plugins/fcm/color.py

@ -36,7 +36,7 @@
import re
from ...utils import parse_bool
from ...common import NotifyType
from ...AppriseAsset import AppriseAsset
from ...asset import AppriseAsset
class FCMColorManager:

0
apprise/plugins/NotifyFCM/common.py → apprise/plugins/fcm/common.py

0
apprise/plugins/NotifyFCM/oauth.py → apprise/plugins/fcm/oauth.py

0
apprise/plugins/NotifyFCM/priority.py → apprise/plugins/fcm/priority.py

4
apprise/plugins/NotifyFeishu.py → apprise/plugins/feishu.py

@ -36,10 +36,10 @@
import requests
from json import dumps
from .NotifyBase import NotifyBase
from .base import NotifyBase
from ..common import NotifyType
from ..utils import validate_regex
from ..AppriseLocale import gettext_lazy as _
from ..locale import gettext_lazy as _
class NotifyFeishu(NotifyBase):

4
apprise/plugins/NotifyFlock.py → apprise/plugins/flock.py

@ -44,14 +44,14 @@ import re
import requests
from json import dumps
from .NotifyBase import NotifyBase
from .base import NotifyBase
from ..common import NotifyType
from ..common import NotifyFormat
from ..common import NotifyImageSize
from ..utils import parse_list
from ..utils import parse_bool
from ..utils import validate_regex
from ..AppriseLocale import gettext_lazy as _
from ..locale import gettext_lazy as _
# Extend HTTP Error Messages

4
apprise/plugins/NotifyFreeMobile.py → apprise/plugins/freemobile.py

@ -36,9 +36,9 @@
import requests
from json import dumps
from .NotifyBase import NotifyBase
from .base import NotifyBase
from ..common import NotifyType
from ..AppriseLocale import gettext_lazy as _
from ..locale import gettext_lazy as _
class NotifyFreeMobile(NotifyBase):

4
apprise/plugins/NotifyGnome.py → apprise/plugins/gnome.py

@ -26,11 +26,11 @@
# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
# POSSIBILITY OF SUCH DAMAGE.
from .NotifyBase import NotifyBase
from .base import NotifyBase
from ..common import NotifyImageSize
from ..common import NotifyType
from ..utils import parse_bool
from ..AppriseLocale import gettext_lazy as _
from ..locale import gettext_lazy as _
# Default our global support flag
NOTIFY_GNOME_SUPPORT_ENABLED = False

4
apprise/plugins/NotifyGoogleChat.py → apprise/plugins/google_chat.py

@ -58,11 +58,11 @@ import re
import requests
from json import dumps
from .NotifyBase import NotifyBase
from .base import NotifyBase
from ..common import NotifyFormat
from ..common import NotifyType
from ..utils import validate_regex
from ..AppriseLocale import gettext_lazy as _
from ..locale import gettext_lazy as _
class NotifyGoogleChat(NotifyBase):

4
apprise/plugins/NotifyGotify.py → apprise/plugins/gotify.py

@ -34,10 +34,10 @@
import requests
from json import dumps
from .NotifyBase import NotifyBase
from .base import NotifyBase
from ..common import NotifyType, NotifyFormat
from ..utils import validate_regex
from ..AppriseLocale import gettext_lazy as _
from ..locale import gettext_lazy as _
# Priorities

6
apprise/plugins/NotifyGrowl.py → apprise/plugins/growl.py

@ -26,12 +26,12 @@
# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
# POSSIBILITY OF SUCH DAMAGE.
from .NotifyBase import NotifyBase
from ..URLBase import PrivacyMode
from .base import NotifyBase
from ..url import PrivacyMode
from ..common import NotifyImageSize
from ..common import NotifyType
from ..utils import parse_bool
from ..AppriseLocale import gettext_lazy as _
from ..locale import gettext_lazy as _
# Default our global support flag
NOTIFY_GROWL_SUPPORT_ENABLED = False

5
apprise/plugins/NotifyGuilded.py → apprise/plugins/guilded.py

@ -45,10 +45,11 @@
#
import re
from .NotifyDiscord import NotifyDiscord
# Import namespace so the class won't conflict with the actual Notify object
from . import discord
class NotifyGuilded(NotifyDiscord):
class NotifyGuilded(discord.NotifyDiscord):
"""
A wrapper to Guilded Notifications

6
apprise/plugins/NotifyHomeAssistant.py → apprise/plugins/home_assistant.py

@ -34,11 +34,11 @@ from json import dumps
from uuid import uuid4
from .NotifyBase import NotifyBase
from ..URLBase import PrivacyMode
from .base import NotifyBase
from ..url import PrivacyMode
from ..common import NotifyType
from ..utils import validate_regex
from ..AppriseLocale import gettext_lazy as _
from ..locale import gettext_lazy as _
class NotifyHomeAssistant(NotifyBase):

4
apprise/plugins/NotifyHttpSMS.py → apprise/plugins/httpsms.py

@ -31,12 +31,12 @@
# https://httpsms.com
import requests
import json
from .NotifyBase import NotifyBase
from .base import NotifyBase
from ..common import NotifyType
from ..utils import is_phone_no
from ..utils import parse_phone_no
from ..utils import validate_regex
from ..AppriseLocale import gettext_lazy as _
from ..locale import gettext_lazy as _
class NotifyHttpSMS(NotifyBase):

4
apprise/plugins/NotifyIFTTT.py → apprise/plugins/ifttt.py

@ -44,11 +44,11 @@ import re
import requests
from json import dumps
from .NotifyBase import NotifyBase
from .base import NotifyBase
from ..common import NotifyType
from ..utils import parse_list
from ..utils import validate_regex
from ..AppriseLocale import gettext_lazy as _
from ..locale import gettext_lazy as _
class NotifyIFTTT(NotifyBase):

4
apprise/plugins/NotifyJoin.py → apprise/plugins/join.py

@ -39,13 +39,13 @@
import re
import requests
from .NotifyBase import NotifyBase
from .base import NotifyBase
from ..common import NotifyImageSize
from ..common import NotifyType
from ..utils import parse_list
from ..utils import parse_bool
from ..utils import validate_regex
from ..AppriseLocale import gettext_lazy as _
from ..locale import gettext_lazy as _
# Extend HTTP Error Messages
JOIN_HTTP_ERROR_MAP = {

4
apprise/plugins/NotifyKavenegar.py → apprise/plugins/kavenegar.py

@ -38,12 +38,12 @@
import requests
from json import loads
from .NotifyBase import NotifyBase
from .base import NotifyBase
from ..common import NotifyType
from ..utils import is_phone_no
from ..utils import parse_phone_no
from ..utils import validate_regex
from ..AppriseLocale import gettext_lazy as _
from ..locale import gettext_lazy as _
# Extend HTTP Error Messages
# Based on https://kavenegar.com/rest.html

4
apprise/plugins/NotifyKumulos.py → apprise/plugins/kumulos.py

@ -39,10 +39,10 @@
import requests
from json import dumps
from .NotifyBase import NotifyBase
from .base import NotifyBase
from ..common import NotifyType
from ..utils import validate_regex
from ..AppriseLocale import gettext_lazy as _
from ..locale import gettext_lazy as _
# Extend HTTP Error Messages
KUMULOS_HTTP_ERROR_MAP = {

4
apprise/plugins/NotifyLametric.py → apprise/plugins/lametric.py

@ -90,10 +90,10 @@
import re
import requests
from json import dumps
from .NotifyBase import NotifyBase
from .base import NotifyBase
from ..common import NotifyType
from ..utils import validate_regex
from ..AppriseLocale import gettext_lazy as _
from ..locale import gettext_lazy as _
from ..utils import is_hostname
from ..utils import is_ipaddr

6
apprise/plugins/NotifyLine.py → apprise/plugins/line.py

@ -33,14 +33,14 @@ import requests
import re
from json import dumps
from .NotifyBase import NotifyBase
from ..URLBase import PrivacyMode
from .base import NotifyBase
from ..url import PrivacyMode
from ..common import NotifyType
from ..common import NotifyImageSize
from ..utils import validate_regex
from ..utils import parse_list
from ..utils import parse_bool
from ..AppriseLocale import gettext_lazy as _
from ..locale import gettext_lazy as _
# Used to break path apart into list of streams

6
apprise/plugins/NotifyLunaSea.py → apprise/plugins/lunasea.py

@ -33,15 +33,15 @@ import re
import requests
from json import dumps
from .NotifyBase import NotifyBase
from .base import NotifyBase
from ..common import NotifyType
from ..common import NotifyImageSize
from ..utils import parse_list
from ..utils import is_hostname
from ..utils import is_ipaddr
from ..utils import parse_bool
from ..AppriseLocale import gettext_lazy as _
from ..URLBase import PrivacyMode
from ..locale import gettext_lazy as _
from ..url import PrivacyMode
class LunaSeaMode:

4
apprise/plugins/NotifyMacOSX.py → apprise/plugins/macosx.py

@ -30,11 +30,11 @@ import platform
import subprocess
import os
from .NotifyBase import NotifyBase
from .base import NotifyBase
from ..common import NotifyImageSize
from ..common import NotifyType
from ..utils import parse_bool
from ..AppriseLocale import gettext_lazy as _
from ..locale import gettext_lazy as _
# Default our global support flag
NOTIFY_MACOSX_SUPPORT_ENABLED = False

4
apprise/plugins/NotifyMailgun.py → apprise/plugins/mailgun.py

@ -56,7 +56,7 @@
#
import requests
from email.utils import formataddr
from .NotifyBase import NotifyBase
from .base import NotifyBase
from ..common import NotifyType
from ..common import NotifyFormat
from ..utils import parse_emails
@ -64,7 +64,7 @@ from ..utils import parse_bool
from ..utils import is_email
from ..utils import validate_regex
from ..logger import logger
from ..AppriseLocale import gettext_lazy as _
from ..locale import gettext_lazy as _
# Provide some known codes Mailgun uses and what they translate to:
# Based on https://documentation.mailgun.com/en/latest/api-intro.html#errors

8
apprise/plugins/NotifyMastodon.py → apprise/plugins/mastodon.py

@ -33,16 +33,16 @@ from json import dumps, loads
from datetime import datetime
from datetime import timezone
from .NotifyBase import NotifyBase
from ..URLBase import PrivacyMode
from .base import NotifyBase
from ..url import PrivacyMode
from ..common import NotifyImageSize
from ..common import NotifyFormat
from ..common import NotifyType
from ..utils import parse_list
from ..utils import parse_bool
from ..utils import validate_regex
from ..AppriseLocale import gettext_lazy as _
from ..attachment.AttachBase import AttachBase
from ..locale import gettext_lazy as _
from ..attachment.base import AttachBase
# Accept:
# - @username

6
apprise/plugins/NotifyMatrix.py → apprise/plugins/matrix.py

@ -37,8 +37,8 @@ from json import dumps
from json import loads
from time import time
from .NotifyBase import NotifyBase
from ..URLBase import PrivacyMode
from .base import NotifyBase
from ..url import PrivacyMode
from ..common import NotifyType
from ..common import NotifyImageSize
from ..common import NotifyFormat
@ -46,7 +46,7 @@ from ..utils import parse_bool
from ..utils import parse_list
from ..utils import is_hostname
from ..utils import validate_regex
from ..AppriseLocale import gettext_lazy as _
from ..locale import gettext_lazy as _
# Define default path
MATRIX_V1_WEBHOOK_PATH = '/api/v1/matrix/hook'

4
apprise/plugins/NotifyMattermost.py → apprise/plugins/mattermost.py

@ -39,13 +39,13 @@
import requests
from json import dumps
from .NotifyBase import NotifyBase
from .base import NotifyBase
from ..common import NotifyImageSize
from ..common import NotifyType
from ..utils import parse_bool
from ..utils import parse_list
from ..utils import validate_regex
from ..AppriseLocale import gettext_lazy as _
from ..locale import gettext_lazy as _
# Some Reference Locations:
# - https://docs.mattermost.com/developer/webhooks-incoming.html

4
apprise/plugins/NotifyMessageBird.py → apprise/plugins/messagebird.py

@ -34,12 +34,12 @@
import requests
from .NotifyBase import NotifyBase
from .base import NotifyBase
from ..common import NotifyType
from ..utils import is_phone_no
from ..utils import parse_phone_no
from ..utils import validate_regex
from ..AppriseLocale import gettext_lazy as _
from ..locale import gettext_lazy as _
class NotifyMessageBird(NotifyBase):

4
apprise/plugins/NotifyMisskey.py → apprise/plugins/misskey.py

@ -47,10 +47,10 @@
import requests
from json import dumps
from .NotifyBase import NotifyBase
from .base import NotifyBase
from ..common import NotifyType
from ..utils import validate_regex
from ..AppriseLocale import gettext_lazy as _
from ..locale import gettext_lazy as _
class MisskeyVisibility:

6
apprise/plugins/NotifyMQTT.py → apprise/plugins/mqtt.py

@ -38,12 +38,12 @@ import re
from time import sleep
from datetime import datetime
from os.path import isfile
from .NotifyBase import NotifyBase
from ..URLBase import PrivacyMode
from .base import NotifyBase
from ..url import PrivacyMode
from ..common import NotifyType
from ..utils import parse_list
from ..utils import parse_bool
from ..AppriseLocale import gettext_lazy as _
from ..locale import gettext_lazy as _
# Default our global support flag
NOTIFY_MQTT_SUPPORT_ENABLED = False

4
apprise/plugins/NotifyMSG91.py → apprise/plugins/msg91.py

@ -38,12 +38,12 @@
import re
import requests
from json import dumps
from .NotifyBase import NotifyBase
from .base import NotifyBase
from ..common import NotifyType
from ..utils import is_phone_no
from ..utils import parse_phone_no, parse_bool
from ..utils import validate_regex
from ..AppriseLocale import gettext_lazy as _
from ..locale import gettext_lazy as _
class MSG91PayloadField:

6
apprise/plugins/NotifyMSTeams.py → apprise/plugins/msteams.py

@ -81,7 +81,7 @@ import requests
import json
from json.decoder import JSONDecodeError
from .NotifyBase import NotifyBase
from .base import NotifyBase
from ..common import NotifyImageSize
from ..common import NotifyType
from ..common import NotifyFormat
@ -89,8 +89,8 @@ from ..utils import parse_bool
from ..utils import validate_regex
from ..utils import apply_template
from ..utils import TemplateType
from ..AppriseAttachment import AppriseAttachment
from ..AppriseLocale import gettext_lazy as _
from ..apprise_attachment import AppriseAttachment
from ..locale import gettext_lazy as _
class NotifyMSTeams(NotifyBase):

6
apprise/plugins/NotifyNextcloud.py → apprise/plugins/nextcloud.py

@ -28,11 +28,11 @@
import requests
from .NotifyBase import NotifyBase
from ..URLBase import PrivacyMode
from .base import NotifyBase
from ..url import PrivacyMode
from ..common import NotifyType
from ..utils import parse_list
from ..AppriseLocale import gettext_lazy as _
from ..locale import gettext_lazy as _
class NotifyNextcloud(NotifyBase):

6
apprise/plugins/NotifyNextcloudTalk.py → apprise/plugins/nextcloudtalk.py

@ -29,11 +29,11 @@
import requests
from json import dumps
from .NotifyBase import NotifyBase
from ..URLBase import PrivacyMode
from .base import NotifyBase
from ..url import PrivacyMode
from ..common import NotifyType
from ..utils import parse_list
from ..AppriseLocale import gettext_lazy as _
from ..locale import gettext_lazy as _
class NotifyNextcloudTalk(NotifyBase):

6
apprise/plugins/NotifyNotica.py → apprise/plugins/notica.py

@ -43,11 +43,11 @@
import re
import requests
from .NotifyBase import NotifyBase
from ..URLBase import PrivacyMode
from .base import NotifyBase
from ..url import PrivacyMode
from ..common import NotifyType
from ..utils import validate_regex
from ..AppriseLocale import gettext_lazy as _
from ..locale import gettext_lazy as _
class NoticaMode:

4
apprise/plugins/NotifyNotifiarr.py → apprise/plugins/notifiarr.py

@ -31,9 +31,9 @@ import requests
from json import dumps
from itertools import chain
from .NotifyBase import NotifyBase
from .base import NotifyBase
from ..common import NotifyType
from ..AppriseLocale import gettext_lazy as _
from ..locale import gettext_lazy as _
from ..common import NotifyImageSize
from ..utils import parse_list, parse_bool
from ..utils import validate_regex

4
apprise/plugins/NotifyNotifico.py → apprise/plugins/notifico.py

@ -44,11 +44,11 @@
import re
import requests
from .NotifyBase import NotifyBase
from .base import NotifyBase
from ..common import NotifyType
from ..utils import parse_bool
from ..utils import validate_regex
from ..AppriseLocale import gettext_lazy as _
from ..locale import gettext_lazy as _
class NotificoFormat:

8
apprise/plugins/NotifyNtfy.py → apprise/plugins/ntfy.py

@ -41,18 +41,18 @@ from json import loads
from json import dumps
from os.path import basename
from .NotifyBase import NotifyBase
from .base import NotifyBase
from ..common import NotifyFormat
from ..common import NotifyType
from ..common import NotifyImageSize
from ..AppriseLocale import gettext_lazy as _
from ..locale import gettext_lazy as _
from ..utils import parse_list
from ..utils import parse_bool
from ..utils import is_hostname
from ..utils import is_ipaddr
from ..utils import validate_regex
from ..URLBase import PrivacyMode
from ..attachment.AttachBase import AttachBase
from ..url import PrivacyMode
from ..attachment.base import AttachBase
class NtfyMode:

6
apprise/plugins/NotifyOffice365.py → apprise/plugins/office365.py

@ -64,14 +64,14 @@ from datetime import datetime
from datetime import timedelta
from json import loads
from json import dumps
from .NotifyBase import NotifyBase
from ..URLBase import PrivacyMode
from .base import NotifyBase
from ..url import PrivacyMode
from ..common import NotifyFormat
from ..common import NotifyType
from ..utils import is_email
from ..utils import parse_emails
from ..utils import validate_regex
from ..AppriseLocale import gettext_lazy as _
from ..locale import gettext_lazy as _
class NotifyOffice365(NotifyBase):

4
apprise/plugins/NotifyOneSignal.py → apprise/plugins/one_signal.py

@ -37,14 +37,14 @@ import requests
from json import dumps
from itertools import chain
from .NotifyBase import NotifyBase
from .base import NotifyBase
from ..common import NotifyType
from ..common import NotifyImageSize
from ..utils import validate_regex
from ..utils import parse_list
from ..utils import parse_bool
from ..utils import is_email
from ..AppriseLocale import gettext_lazy as _
from ..locale import gettext_lazy as _
class OneSignalCategory:

4
apprise/plugins/NotifyOpsgenie.py → apprise/plugins/opsgenie.py

@ -49,13 +49,13 @@
import requests
from json import dumps
from .NotifyBase import NotifyBase
from .base import NotifyBase
from ..common import NotifyType
from ..utils import validate_regex
from ..utils import is_uuid
from ..utils import parse_list
from ..utils import parse_bool
from ..AppriseLocale import gettext_lazy as _
from ..locale import gettext_lazy as _
class OpsgenieCategory(NotifyBase):

6
apprise/plugins/NotifyPagerDuty.py → apprise/plugins/pagerduty.py

@ -34,13 +34,13 @@
import requests
from json import dumps
from .NotifyBase import NotifyBase
from ..URLBase import PrivacyMode
from .base import NotifyBase
from ..url import PrivacyMode
from ..common import NotifyType
from ..common import NotifyImageSize
from ..utils import validate_regex
from ..utils import parse_bool
from ..AppriseLocale import gettext_lazy as _
from ..locale import gettext_lazy as _
class PagerDutySeverity:

4
apprise/plugins/NotifyPagerTree.py → apprise/plugins/pagertree.py

@ -31,11 +31,11 @@ from json import dumps
from uuid import uuid4
from .NotifyBase import NotifyBase
from .base import NotifyBase
from ..common import NotifyType
from ..utils import parse_list
from ..utils import validate_regex
from ..AppriseLocale import gettext_lazy as _
from ..locale import gettext_lazy as _
# Actions

4
apprise/plugins/NotifyParsePlatform.py → apprise/plugins/parseplatform.py

@ -30,10 +30,10 @@ import re
import requests
from json import dumps
from .NotifyBase import NotifyBase
from .base import NotifyBase
from ..common import NotifyType
from ..utils import validate_regex
from ..AppriseLocale import gettext_lazy as _
from ..locale import gettext_lazy as _
# Used to break path apart into list of targets
TARGET_LIST_DELIM = re.compile(r'[ \t\r\n,\\/]+')

4
apprise/plugins/NotifyPopcornNotify.py → apprise/plugins/popcorn_notify.py

@ -28,14 +28,14 @@
import requests
from .NotifyBase import NotifyBase
from .base import NotifyBase
from ..common import NotifyType
from ..utils import is_email
from ..utils import is_phone_no
from ..utils import parse_list
from ..utils import parse_bool
from ..utils import validate_regex
from ..AppriseLocale import gettext_lazy as _
from ..locale import gettext_lazy as _
class NotifyPopcornNotify(NotifyBase):

4
apprise/plugins/NotifyProwl.py → apprise/plugins/prowl.py

@ -28,10 +28,10 @@
import requests
from .NotifyBase import NotifyBase
from .base import NotifyBase
from ..common import NotifyType
from ..utils import validate_regex
from ..AppriseLocale import gettext_lazy as _
from ..locale import gettext_lazy as _
# Priorities

6
apprise/plugins/NotifyPushBullet.py → apprise/plugins/pushbullet.py

@ -30,13 +30,13 @@ import requests
from json import dumps
from json import loads
from .NotifyBase import NotifyBase
from .base import NotifyBase
from ..utils import is_email
from ..common import NotifyType
from ..utils import parse_list
from ..utils import validate_regex
from ..AppriseLocale import gettext_lazy as _
from ..attachment.AttachBase import AttachBase
from ..locale import gettext_lazy as _
from ..attachment.base import AttachBase
# Flag used as a placeholder to sending to all devices
PUSHBULLET_SEND_TO_ALL = 'ALL_DEVICES'

4
apprise/plugins/NotifyPushDeer.py → apprise/plugins/pushdeer.py

@ -29,9 +29,9 @@
import requests
from ..common import NotifyType
from .NotifyBase import NotifyBase
from .base import NotifyBase
from ..utils import validate_regex
from ..AppriseLocale import gettext_lazy as _
from ..locale import gettext_lazy as _
# Syntax:
# schan://{key}/

6
apprise/plugins/NotifyPushed.py → apprise/plugins/pushed.py

@ -31,12 +31,12 @@ import requests
from json import dumps
from itertools import chain
from .NotifyBase import NotifyBase
from ..URLBase import PrivacyMode
from .base import NotifyBase
from ..url import PrivacyMode
from ..common import NotifyType
from ..utils import parse_list
from ..utils import validate_regex
from ..AppriseLocale import gettext_lazy as _
from ..locale import gettext_lazy as _
# Used to detect and parse channels
IS_CHANNEL = re.compile(r'^#?(?P<name>[A-Za-z0-9]+)$')

Some files were not shown because too many files have changed in this diff Show More

Loading…
Cancel
Save