|
|
|
@ -6,18 +6,21 @@
|
|
|
|
|
# |
|
|
|
|
# This file is part of apprise. |
|
|
|
|
# |
|
|
|
|
# apprise is free software: you can redistribute it and/or modify |
|
|
|
|
# it under the terms of the GNU General Public License as published by |
|
|
|
|
# the Free Software Foundation, either version 2 of the License, or |
|
|
|
|
# This program is free software; you can redistribute it and/or modify it |
|
|
|
|
# under the terms of the GNU Lesser General Public License as published by |
|
|
|
|
# the Free Software Foundation; either version 3 of the License, or |
|
|
|
|
# (at your option) any later version. |
|
|
|
|
# |
|
|
|
|
# apprise is distributed in the hope that it will be useful, |
|
|
|
|
# This program is distributed in the hope that it will be useful, |
|
|
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
|
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
|
|
|
# GNU General Public License for more details. |
|
|
|
|
# |
|
|
|
|
# You should have received a copy of the GNU General Public License |
|
|
|
|
# along with apprise. If not, see <http://www.gnu.org/licenses/>. |
|
|
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
|
|
|
# GNU Lesser General Public License for more details. |
|
|
|
|
|
|
|
|
|
__title__ = 'apprise' |
|
|
|
|
__version__ = '0.0.2' |
|
|
|
|
__author__ = 'Chris Caron <lead2gold@gmail.com>' |
|
|
|
|
__license__ = 'GPLv3' |
|
|
|
|
__copywrite__ = 'Copyright 2017 Chris Caron <lead2gold@gmail.com>' |
|
|
|
|
|
|
|
|
|
from .common import NotifyType |
|
|
|
|
from .common import NOTIFY_TYPES |
|
|
|
@ -28,8 +31,16 @@ from .plugins.NotifyBase import NotifyFormat
|
|
|
|
|
from .Apprise import Apprise |
|
|
|
|
from .AppriseAsset import AppriseAsset |
|
|
|
|
|
|
|
|
|
__version__ = '0.0.1' |
|
|
|
|
__author__ = 'Chris Caron <lead2gold@gmail.com>' |
|
|
|
|
# Set default logging handler to avoid "No handler found" warnings. |
|
|
|
|
import logging |
|
|
|
|
try: # Python 2.7+ |
|
|
|
|
from logging import NullHandler |
|
|
|
|
except ImportError: |
|
|
|
|
class NullHandler(logging.Handler): |
|
|
|
|
def emit(self, record): |
|
|
|
|
pass |
|
|
|
|
|
|
|
|
|
logging.getLogger(__name__).addHandler(NullHandler()) |
|
|
|
|
|
|
|
|
|
__all__ = [ |
|
|
|
|
# Core |
|
|
|
|