manager classes accessible from apprise base

This commit is contained in:
Chris Caron 2024-05-19 15:25:01 -04:00
parent e98f65790c
commit 286a4374c0
13 changed files with 22 additions and 17 deletions

View File

@ -60,7 +60,9 @@ from .locale import AppriseLocale
from .asset import AppriseAsset
from .apprise_config import AppriseConfig
from .apprise_attachment import AppriseAttachment
from .manager_attachment import AttachmentManager
from .manager_config import ConfigurationManager
from .manager_plugins import NotificationManager
from . import decorators
# Inherit our logging with our additional entries added to it
@ -84,6 +86,9 @@ __all__ = [
'ContentLocation', 'CONTENT_LOCATIONS',
'PrivacyMode',
# Managers
'NotificationManager', 'ConfigurationManager', 'AttachmentManager',
# Decorator
'decorators',

View File

@ -31,9 +31,9 @@ import os
import pytest
from apprise.manager_plugins import NotificationManager
from apprise.manager_config import ConfigurationManager
from apprise.manager_attachment import AttachmentManager
from apprise import NotificationManager
from apprise import ConfigurationManager
from apprise import AttachmentManager
sys.path.append(os.path.join(os.path.dirname(__file__), 'helpers'))

View File

@ -28,8 +28,8 @@
from itertools import chain
from importlib import import_module, reload
from apprise.manager_plugins import NotificationManager
from apprise.manager_attachment import AttachmentManager
from apprise import NotificationManager
from apprise import AttachmentManager
import sys
import re

View File

@ -51,7 +51,7 @@ from apprise import PrivacyMode
from apprise.locale import LazyTranslation
from apprise.locale import gettext_lazy as _
from apprise.manager_plugins import NotificationManager
from apprise import NotificationManager
from apprise.utils import parse_list
from helpers import OuterEventLoop
import inspect

View File

@ -35,7 +35,7 @@ from os.path import join
from os.path import dirname
from inspect import cleandoc
from apprise import Apprise, AppriseAsset
from apprise.manager_attachment import AttachmentManager
from apprise import AttachmentManager
from apprise.apprise_attachment import AppriseAttachment
from apprise.attachment import AttachBase
from apprise.common import ContentLocation

View File

@ -36,7 +36,7 @@ from os.path import dirname
from os.path import join
from apprise import cli
from apprise import NotifyBase
from apprise.manager_plugins import NotificationManager
from apprise import NotificationManager
from click.testing import CliRunner
from apprise.utils import environ
from apprise.locale import gettext_lazy as _

View File

@ -37,8 +37,8 @@ from apprise import AppriseConfig
from apprise import AppriseAsset
from apprise.config import ConfigBase
from apprise.plugins import NotifyBase
from apprise.manager_plugins import NotificationManager
from apprise.manager_config import ConfigurationManager
from apprise import NotificationManager
from apprise import ConfigurationManager
from apprise.config.file import ConfigFile

View File

@ -33,7 +33,7 @@ from inspect import cleandoc
from urllib.parse import unquote
from apprise import utils
from apprise.manager_plugins import NotificationManager
from apprise import NotificationManager
# Disable logging for a cleaner testing output
import logging

View File

@ -31,7 +31,7 @@ import pytest
from apprise import Apprise
from apprise import NotifyBase
from apprise import NotifyFormat
from apprise.manager_plugins import NotificationManager
from apprise import NotificationManager
# Disable logging for a cleaner testing output
import logging

View File

@ -36,7 +36,7 @@ from os.path import dirname
from os.path import getsize
from apprise.attachment.http import AttachHTTP
from apprise import Apprise, AppriseAttachment
from apprise.manager_plugins import NotificationManager
from apprise import NotificationManager
from apprise.plugins import NotifyBase
from apprise.common import ContentLocation

View File

@ -34,7 +34,7 @@ import requests
from apprise.common import ConfigFormat
from apprise.config.http import ConfigHTTP
from apprise.plugins import NotifyBase
from apprise.manager_plugins import NotificationManager
from apprise import NotificationManager
# Disable logging for a cleaner testing output
import logging

View File

@ -35,7 +35,7 @@ from apprise import AppriseConfig
from apprise import AppriseAsset
from apprise import AppriseAttachment
from apprise import common
from apprise.manager_plugins import NotificationManager
from apprise import NotificationManager
# Disable logging for a cleaner testing output
import logging

View File

@ -33,7 +33,7 @@ import threading
from inspect import cleandoc
from apprise import Apprise
from apprise.manager_plugins import NotificationManager
from apprise import NotificationManager
from apprise.plugins import NotifyBase
# Disable logging for a cleaner testing output