|
1 | | -# -*- coding: utf-8 -*- |
2 | 1 | # BSD 2-Clause License |
3 | 2 | # |
4 | 3 | # Apprise - Push Notification Library. |
|
26 | 25 | # ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE |
27 | 26 | # POSSIBILITY OF SUCH DAMAGE. |
28 | 27 |
|
29 | | -__title__ = 'Apprise' |
30 | | -__version__ = '1.9.3' |
31 | | -__author__ = 'Chris Caron' |
32 | | -__license__ = 'BSD 2-Clause' |
33 | | -__copywrite__ = 'Copyright (C) 2025 Chris Caron <lead2gold@gmail.com>' |
34 | | -__email__ = 'lead2gold@gmail.com' |
35 | | -__status__ = 'Production' |
36 | | - |
37 | | -from .common import NotifyType |
38 | | -from .common import NOTIFY_TYPES |
39 | | -from .common import NotifyImageSize |
40 | | -from .common import NOTIFY_IMAGE_SIZES |
41 | | -from .common import NotifyFormat |
42 | | -from .common import NOTIFY_FORMATS |
43 | | -from .common import OverflowMode |
44 | | -from .common import OVERFLOW_MODES |
45 | | -from .common import ConfigFormat |
46 | | -from .common import CONFIG_FORMATS |
47 | | -from .common import ContentIncludeMode |
48 | | -from .common import CONTENT_INCLUDE_MODES |
49 | | -from .common import ContentLocation |
50 | | -from .common import CONTENT_LOCATIONS |
51 | | -from .common import PersistentStoreMode |
52 | | -from .common import PERSISTENT_STORE_MODES |
53 | | - |
54 | | -from .url import URLBase |
55 | | -from .url import PrivacyMode |
56 | | -from .plugins.base import NotifyBase |
57 | | -from .config.base import ConfigBase |
58 | | -from .attachment.base import AttachBase |
59 | | -from . import exception |
| 28 | +__title__ = "Apprise" |
| 29 | +__version__ = "1.9.3" |
| 30 | +__author__ = "Chris Caron" |
| 31 | +__license__ = "BSD 2-Clause" |
| 32 | +__copywrite__ = "Copyright (C) 2025 Chris Caron <lead2gold@gmail.com>" |
| 33 | +__email__ = "lead2gold@gmail.com" |
| 34 | +__status__ = "Production" |
60 | 35 |
|
| 36 | +from . import decorators, exception |
61 | 37 | from .apprise import Apprise |
62 | | -from .locale import AppriseLocale |
63 | | -from .asset import AppriseAsset |
64 | | -from .persistent_store import PersistentStore |
65 | | -from .apprise_config import AppriseConfig |
66 | 38 | from .apprise_attachment import AppriseAttachment |
| 39 | +from .apprise_config import AppriseConfig |
| 40 | +from .asset import AppriseAsset |
| 41 | +from .attachment.base import AttachBase |
| 42 | +from .common import ( |
| 43 | + CONFIG_FORMATS, |
| 44 | + CONTENT_INCLUDE_MODES, |
| 45 | + CONTENT_LOCATIONS, |
| 46 | + NOTIFY_FORMATS, |
| 47 | + NOTIFY_IMAGE_SIZES, |
| 48 | + NOTIFY_TYPES, |
| 49 | + OVERFLOW_MODES, |
| 50 | + PERSISTENT_STORE_MODES, |
| 51 | + ConfigFormat, |
| 52 | + ContentIncludeMode, |
| 53 | + ContentLocation, |
| 54 | + NotifyFormat, |
| 55 | + NotifyImageSize, |
| 56 | + NotifyType, |
| 57 | + OverflowMode, |
| 58 | + PersistentStoreMode, |
| 59 | +) |
| 60 | +from .config.base import ConfigBase |
| 61 | +from .locale import AppriseLocale |
| 62 | + |
| 63 | +# Inherit our logging with our additional entries added to it |
| 64 | +from .logger import LogCapture, logger, logging |
67 | 65 | from .manager_attachment import AttachmentManager |
68 | 66 | from .manager_config import ConfigurationManager |
69 | 67 | from .manager_plugins import NotificationManager |
70 | | -from . import decorators |
71 | | - |
72 | | -# Inherit our logging with our additional entries added to it |
73 | | -from .logger import logging |
74 | | -from .logger import logger |
75 | | -from .logger import LogCapture |
| 68 | +from .persistent_store import PersistentStore |
| 69 | +from .plugins.base import NotifyBase |
| 70 | +from .url import PrivacyMode, URLBase |
76 | 71 |
|
77 | 72 | # Set default logging handler to avoid "No handler found" warnings. |
78 | 73 | logging.getLogger(__name__).addHandler(logging.NullHandler()) |
79 | 74 |
|
80 | 75 | __all__ = [ |
| 76 | + "CONFIG_FORMATS", |
| 77 | + "CONTENT_INCLUDE_MODES", |
| 78 | + "CONTENT_LOCATIONS", |
| 79 | + "NOTIFY_FORMATS", |
| 80 | + "NOTIFY_IMAGE_SIZES", |
| 81 | + "NOTIFY_TYPES", |
| 82 | + "OVERFLOW_MODES", |
| 83 | + "PERSISTENT_STORE_MODES", |
81 | 84 | # Core |
82 | | - 'Apprise', 'AppriseAsset', 'AppriseConfig', 'AppriseAttachment', 'URLBase', |
83 | | - 'NotifyBase', 'ConfigBase', 'AttachBase', 'AppriseLocale', |
84 | | - 'PersistentStore', |
85 | | - |
86 | | - # Exceptions |
87 | | - 'exception', |
88 | | - |
89 | | - # Reference |
90 | | - 'NotifyType', 'NotifyImageSize', 'NotifyFormat', 'OverflowMode', |
91 | | - 'NOTIFY_TYPES', 'NOTIFY_IMAGE_SIZES', 'NOTIFY_FORMATS', 'OVERFLOW_MODES', |
92 | | - 'ConfigFormat', 'CONFIG_FORMATS', |
93 | | - 'ContentIncludeMode', 'CONTENT_INCLUDE_MODES', |
94 | | - 'ContentLocation', 'CONTENT_LOCATIONS', |
95 | | - 'PersistentStoreMode', 'PERSISTENT_STORE_MODES', |
96 | | - 'PrivacyMode', |
97 | | - |
| 85 | + "Apprise", |
| 86 | + "AppriseAsset", |
| 87 | + "AppriseAttachment", |
| 88 | + "AppriseConfig", |
| 89 | + "AppriseLocale", |
| 90 | + "AttachBase", |
| 91 | + "AttachmentManager", |
| 92 | + "ConfigBase", |
| 93 | + "ConfigFormat", |
| 94 | + "ConfigurationManager", |
| 95 | + "ContentIncludeMode", |
| 96 | + "ContentLocation", |
| 97 | + "LogCapture", |
98 | 98 | # Managers |
99 | | - 'NotificationManager', 'ConfigurationManager', 'AttachmentManager', |
100 | | - |
| 99 | + "NotificationManager", |
| 100 | + "NotifyBase", |
| 101 | + "NotifyFormat", |
| 102 | + "NotifyImageSize", |
| 103 | + # Reference |
| 104 | + "NotifyType", |
| 105 | + "OverflowMode", |
| 106 | + "PersistentStore", |
| 107 | + "PersistentStoreMode", |
| 108 | + "PrivacyMode", |
| 109 | + "URLBase", |
101 | 110 | # Decorator |
102 | | - 'decorators', |
103 | | - |
| 111 | + "decorators", |
| 112 | + # Exceptions |
| 113 | + "exception", |
104 | 114 | # Logging |
105 | | - 'logging', 'logger', 'LogCapture', |
| 115 | + "logger", |
| 116 | + "logging", |
106 | 117 | ] |
0 commit comments