ExceptNotifier.pycore package
Submodules
ExceptNotifier.pycore.beep_notifier module
- exception ExceptNotifier.pycore.beep_notifier.ExceptBeep(*args: object)
Bases:
BaseExceptionOverride excepthook to send error message to beep.
- Parameters:
etype (_type_) – Error Type
value (_type_) – Error Value
tb (_type_) – Traceback Information
- static beep(sec=1, freq=1000) None
Make beep sound
- Parameters:
sec (int, optional) – beep duration, defaults to 1
freq (int, optional) – beep fequency, defaults to 1000
- class ExceptNotifier.pycore.beep_notifier.SendBeep
Bases:
objectSend beep
- class ExceptNotifier.pycore.beep_notifier.SuccessBeep
Bases:
objectSuccess beep
ExceptNotifier.pycore.chime_notifier module
- exception ExceptNotifier.pycore.chime_notifier.ExceptChime(*args: object)
Bases:
BaseExceptionOverride excepthook to send error message to AWS Chime.
- Parameters:
etype (_type_) – Error Type
value (_type_) – Error Value
tb (_type_) – Traceback Information
- static send_chime_msg(_CHIME_WEBHOOK_URL: str, msg: str) dict
Send message to chat room through chime app’s webhook url.
- Parameters:
_CHIME_WEBHOOK_URL (str) – Webhook url from chime app
msg (str) – Message text
- Returns:
Response according to REST API request
- Return type:
dict
- class ExceptNotifier.pycore.chime_notifier.SendChime
Bases:
objectSending message to AWS Chime
- class ExceptNotifier.pycore.chime_notifier.SuccessChime
Bases:
objectSending success message to AWS Chime
ExceptNotifier.pycore.desktop_notifier module
- exception ExceptNotifier.pycore.desktop_notifier.ExceptDesktop(*args: object)
Bases:
BaseExceptionOverride excepthook to send error message to Desktop.
- Parameters:
etype (_type_) – Error Type
value (_type_) – Error Value
tb (_type_) – Traceback Information
- static send_desktop_msg(title_msg: str, body_msg: str, DISP_TIME=5) None
Sending notification to desktop
- Parameters:
title_msg (str) – Title of message
body_msg (str) – Body of message
DISP_TIME (int, optional) – Time duration, defaults to 5
- class ExceptNotifier.pycore.desktop_notifier.SendDesktop
Bases:
objectSending message to Desktop
- class ExceptNotifier.pycore.desktop_notifier.SuccessDesktop
Bases:
objectSending success message to Desktop
ExceptNotifier.pycore.discord_notifier module
- exception ExceptNotifier.pycore.discord_notifier.ExceptDiscord(*args: object)
Bases:
BaseExceptionOverride excepthook to send error message to Discord.
- Parameters:
etype (_type_) – Error Type
value (_type_) – Error Value
tb (_type_) – Traceback Information
- static send_discord_msg(_DISCORD_WEBHOOK_URL: str, msg: str) dict
Send message to chat room through discord app’s webhook url.
- Parameters:
_DISCORD_WEBHOOK_URL (str) – Webhook url from discord app
msg (str) – Message text
- Returns:
Response according to REST API request
- Return type:
dict
- class ExceptNotifier.pycore.discord_notifier.SendDiscord
Bases:
objectSending message to Discord
- class ExceptNotifier.pycore.discord_notifier.SuccessDiscord
Bases:
objectSending success message to Discord
ExceptNotifier.pycore.kakao_notifier module
- exception ExceptNotifier.pycore.kakao_notifier.ExceptKakao(*args: object)
Bases:
BaseExceptionOverride excepthook to send error message to Kakaotalk.
- Parameters:
etype (_type_) – Error Type
value (_type_) – Error Value
tb (_type_) – Traceback Information
- static send_kakao_msg(_KAKAO_TOKEN_PATH: str, msg: str) dict
Send message to chat room through kakaotalk app’s REST API.
- Parameters:
_KAKAO_TOKEN_PATH (str) – Kakaotalk token path
msg (str) – Message text
- Returns:
Response according to REST API request
- Return type:
dict
- class ExceptNotifier.pycore.kakao_notifier.SendKakao
Bases:
objectSending message to Kakaotalk
- class ExceptNotifier.pycore.kakao_notifier.SuccessKakao
Bases:
objectSending success message to Kakaotalk
ExceptNotifier.pycore.line_notifier module
- exception ExceptNotifier.pycore.line_notifier.ExceptLine(*args: object)
Bases:
BaseExceptionOverride excepthook to send error message to Line.
- Parameters:
etype (_type_) – Error Type
value (_type_) – Error Value
tb (_type_) – Traceback Information
- static send_line_msg(_LINE_NOTIFY_API_TOKEN: str, msg: str) dict
Send message to chat room through Line app’s REST API.
- Parameters:
_LINE_NOTIFY_API_TOKEN (str) – Line notify API token
msg (str) – Message text
- Returns:
Response according to REST API request
- Return type:
dict
- class ExceptNotifier.pycore.line_notifier.SendLine
Bases:
objectSending success message to Line
- class ExceptNotifier.pycore.line_notifier.SuccessLine
Bases:
objectSending success message to Line
ExceptNotifier.pycore.mail_notifier module
- exception ExceptNotifier.pycore.mail_notifier.ExceptMail(*args: object)
Bases:
BaseExceptionOverride excepthook to send error message to Gmail.
- Parameters:
etype (_type_) – Error Type
value (_type_) – Error Value
tb (_type_) – Traceback Information
- static send_gmail_msg(from_email_addr: str, to_email_addr: str, from_email_app_password: str, subject_msg: str, body_msg: str) dict
Send mail through gmail smtp server
- Parameters:
from_email_addr (str) – Gmail address who send message
to_email_addr (str) – Gmail address who receive message
from_email_app_password (str) – Google app password
subject_msg (str) – Mail title
body_msg (str) – Mail body
- Returns:
Response according to sending request
- Return type:
dict
- class ExceptNotifier.pycore.mail_notifier.SendMail
Bases:
objectSending message to Gmail
- class ExceptNotifier.pycore.mail_notifier.SuccessMail
Bases:
objectSending success message to Gmail
ExceptNotifier.pycore.slack_notifier module
- exception ExceptNotifier.pycore.slack_notifier.ExceptSlack(*args: object)
Bases:
BaseExceptionOverride excepthook to send error message to Slack.
- Parameters:
etype (_type_) – Error Type
value (_type_) – Error Value
tb (_type_) – Traceback Information
- static send_slack_msg(_SLACK_WEBHOOK_URL: str, msg: str) dict
Send message to chat room through slack app’s api.
- Parameters:
_SLACK_WEBHOOK_URL (str) – _SLACK_WEBHOOK_URL from slack app
msg (str) – Message text
- Returns:
Response according to REST API request
- Return type:
dict
- class ExceptNotifier.pycore.slack_notifier.SendSlack
Bases:
objectSending message to Slack
- class ExceptNotifier.pycore.slack_notifier.SuccessSlack
Bases:
objectSending success message to Slack
ExceptNotifier.pycore.sms_notifier module
- exception ExceptNotifier.pycore.sms_notifier.ExceptSMS(*args: object)
Bases:
BaseExceptionOverride excepthook to send error message to SMS.
- Parameters:
etype (_type_) – Error Type
value (_type_) – Error Value
tb (_type_) – Traceback Information
- static send_sms_msg(_TWILIO_SID: str, _TWILIO_TOKEN: str, _SENDER_PHONE_NUMBER: str, _RECIPIENT_PHONE_NUMBER: str, msg: str) dict
Send SMS through twilio platform. https://www.twilio.com/en-us
- Parameters:
_TWILIO_SID (str) – Twilio personal _TWILIO_SID
_TWILIO_TOKEN (str) – Twilio personal _TWILIO_TOKEN
_SENDER_PHONE_NUMBER (str) – Sender phone number
_RECIPIENT_PHONE_NUMBER (str) – Recipient phone number
msg (str) – SMS content
- Returns:
Response dict
- Return type:
dict
- class ExceptNotifier.pycore.sms_notifier.SendSMS
Bases:
objectSending message to SMS
- class ExceptNotifier.pycore.sms_notifier.SuccessSMS
Bases:
objectSending success message to SMS
ExceptNotifier.pycore.teams_notifier module
- exception ExceptNotifier.pycore.teams_notifier.ExceptTeams(*args: object)
Bases:
BaseExceptionOverride excepthook to send error message to Microsoft Teams.
- Parameters:
etype (_type_) – Error Type
value (_type_) – Error Value
tb (_type_) – Traceback Information
- static send_teams_msg(_TEAMS_WEBHOOK_URL, msg)
Send message to chat room through microsoft teams app’s webhook url.
- Parameters:
_TEAMS_WEBHOOK_URL (str) – _TEAMS_WEBHOOK_URL from teams app
msg (str) – Message text
- Returns:
Response according to REST API request
- Return type:
dict
- class ExceptNotifier.pycore.teams_notifier.SendTeams
Bases:
objectSending message to microsoft teams
- class ExceptNotifier.pycore.teams_notifier.SuccessTeams
Bases:
objectSending success message to microsoft teams
ExceptNotifier.pycore.telegram_notifier module
- exception ExceptNotifier.pycore.telegram_notifier.ExceptTelegram(*args: object)
Bases:
BaseExceptionOverride excepthook to send error message to Telegram.
- Parameters:
etype (_type_) – Error Type
value (_type_) – Error Value
tb (_type_) – Traceback Information
- static send_telegram_msg(_TELEGRAM_TOKEN: str, msg: str) dict
Send message via telegram bot.
- Parameters:
_TELEGRAM_TOKEN (str) – Telegram secure bot Token
msg (str) – Message content
- Returns:
Response dict
- Return type:
dict
- class ExceptNotifier.pycore.telegram_notifier.SendTelegram
Bases:
objectSending message to telegram
- class ExceptNotifier.pycore.telegram_notifier.SuccessTelegram
Bases:
objectSending success message to telegram
ExceptNotifier.pycore.wechat_notifier module
- exception ExceptNotifier.pycore.wechat_notifier.ExceptWechat(*args: object)
Bases:
BaseExceptionOverride excepthook to send error message to Wechat.
- Parameters:
etype (_type_) – Error Type
value (_type_) – Error Value
tb (_type_) – Traceback Information
- static send_wechat_msg(_WECHAT_WEBHOOK_URL: str, msg: str) None
Send message to wechat.
- Parameters:
_WECHAT_WEBHOOK_URL (str) – Wechat Webhook URL https://work.weixin.qq.com/api/doc/90000/90136/91770
msg (str) – Message to send
- class ExceptNotifier.pycore.wechat_notifier.SendWechat
Bases:
objectSending message to wechat
- class ExceptNotifier.pycore.wechat_notifier.SuccessWechat
Bases:
objectSending success message to wechat
Module contents
- exception ExceptNotifier.pycore.ExceptBeep(*args: object)
Bases:
BaseExceptionOverride excepthook to send error message to beep.
- Parameters:
etype (_type_) – Error Type
value (_type_) – Error Value
tb (_type_) – Traceback Information
- static beep(sec=1, freq=1000) None
Make beep sound
- Parameters:
sec (int, optional) – beep duration, defaults to 1
freq (int, optional) – beep fequency, defaults to 1000
- exception ExceptNotifier.pycore.ExceptChime(*args: object)
Bases:
BaseExceptionOverride excepthook to send error message to AWS Chime.
- Parameters:
etype (_type_) – Error Type
value (_type_) – Error Value
tb (_type_) – Traceback Information
- static send_chime_msg(_CHIME_WEBHOOK_URL: str, msg: str) dict
Send message to chat room through chime app’s webhook url.
- Parameters:
_CHIME_WEBHOOK_URL (str) – Webhook url from chime app
msg (str) – Message text
- Returns:
Response according to REST API request
- Return type:
dict
- exception ExceptNotifier.pycore.ExceptDesktop(*args: object)
Bases:
BaseExceptionOverride excepthook to send error message to Desktop.
- Parameters:
etype (_type_) – Error Type
value (_type_) – Error Value
tb (_type_) – Traceback Information
- static send_desktop_msg(title_msg: str, body_msg: str, DISP_TIME=5) None
Sending notification to desktop
- Parameters:
title_msg (str) – Title of message
body_msg (str) – Body of message
DISP_TIME (int, optional) – Time duration, defaults to 5
- exception ExceptNotifier.pycore.ExceptDiscord(*args: object)
Bases:
BaseExceptionOverride excepthook to send error message to Discord.
- Parameters:
etype (_type_) – Error Type
value (_type_) – Error Value
tb (_type_) – Traceback Information
- static send_discord_msg(_DISCORD_WEBHOOK_URL: str, msg: str) dict
Send message to chat room through discord app’s webhook url.
- Parameters:
_DISCORD_WEBHOOK_URL (str) – Webhook url from discord app
msg (str) – Message text
- Returns:
Response according to REST API request
- Return type:
dict
- exception ExceptNotifier.pycore.ExceptKakao(*args: object)
Bases:
BaseExceptionOverride excepthook to send error message to Kakaotalk.
- Parameters:
etype (_type_) – Error Type
value (_type_) – Error Value
tb (_type_) – Traceback Information
- static send_kakao_msg(_KAKAO_TOKEN_PATH: str, msg: str) dict
Send message to chat room through kakaotalk app’s REST API.
- Parameters:
_KAKAO_TOKEN_PATH (str) – Kakaotalk token path
msg (str) – Message text
- Returns:
Response according to REST API request
- Return type:
dict
- exception ExceptNotifier.pycore.ExceptLine(*args: object)
Bases:
BaseExceptionOverride excepthook to send error message to Line.
- Parameters:
etype (_type_) – Error Type
value (_type_) – Error Value
tb (_type_) – Traceback Information
- static send_line_msg(_LINE_NOTIFY_API_TOKEN: str, msg: str) dict
Send message to chat room through Line app’s REST API.
- Parameters:
_LINE_NOTIFY_API_TOKEN (str) – Line notify API token
msg (str) – Message text
- Returns:
Response according to REST API request
- Return type:
dict
- exception ExceptNotifier.pycore.ExceptMail(*args: object)
Bases:
BaseExceptionOverride excepthook to send error message to Gmail.
- Parameters:
etype (_type_) – Error Type
value (_type_) – Error Value
tb (_type_) – Traceback Information
- static send_gmail_msg(from_email_addr: str, to_email_addr: str, from_email_app_password: str, subject_msg: str, body_msg: str) dict
Send mail through gmail smtp server
- Parameters:
from_email_addr (str) – Gmail address who send message
to_email_addr (str) – Gmail address who receive message
from_email_app_password (str) – Google app password
subject_msg (str) – Mail title
body_msg (str) – Mail body
- Returns:
Response according to sending request
- Return type:
dict
- exception ExceptNotifier.pycore.ExceptSMS(*args: object)
Bases:
BaseExceptionOverride excepthook to send error message to SMS.
- Parameters:
etype (_type_) – Error Type
value (_type_) – Error Value
tb (_type_) – Traceback Information
- static send_sms_msg(_TWILIO_SID: str, _TWILIO_TOKEN: str, _SENDER_PHONE_NUMBER: str, _RECIPIENT_PHONE_NUMBER: str, msg: str) dict
Send SMS through twilio platform. https://www.twilio.com/en-us
- Parameters:
_TWILIO_SID (str) – Twilio personal _TWILIO_SID
_TWILIO_TOKEN (str) – Twilio personal _TWILIO_TOKEN
_SENDER_PHONE_NUMBER (str) – Sender phone number
_RECIPIENT_PHONE_NUMBER (str) – Recipient phone number
msg (str) – SMS content
- Returns:
Response dict
- Return type:
dict
- exception ExceptNotifier.pycore.ExceptSlack(*args: object)
Bases:
BaseExceptionOverride excepthook to send error message to Slack.
- Parameters:
etype (_type_) – Error Type
value (_type_) – Error Value
tb (_type_) – Traceback Information
- static send_slack_msg(_SLACK_WEBHOOK_URL: str, msg: str) dict
Send message to chat room through slack app’s api.
- Parameters:
_SLACK_WEBHOOK_URL (str) – _SLACK_WEBHOOK_URL from slack app
msg (str) – Message text
- Returns:
Response according to REST API request
- Return type:
dict
- exception ExceptNotifier.pycore.ExceptTeams(*args: object)
Bases:
BaseExceptionOverride excepthook to send error message to Microsoft Teams.
- Parameters:
etype (_type_) – Error Type
value (_type_) – Error Value
tb (_type_) – Traceback Information
- static send_teams_msg(_TEAMS_WEBHOOK_URL, msg)
Send message to chat room through microsoft teams app’s webhook url.
- Parameters:
_TEAMS_WEBHOOK_URL (str) – _TEAMS_WEBHOOK_URL from teams app
msg (str) – Message text
- Returns:
Response according to REST API request
- Return type:
dict
- exception ExceptNotifier.pycore.ExceptTelegram(*args: object)
Bases:
BaseExceptionOverride excepthook to send error message to Telegram.
- Parameters:
etype (_type_) – Error Type
value (_type_) – Error Value
tb (_type_) – Traceback Information
- static send_telegram_msg(_TELEGRAM_TOKEN: str, msg: str) dict
Send message via telegram bot.
- Parameters:
_TELEGRAM_TOKEN (str) – Telegram secure bot Token
msg (str) – Message content
- Returns:
Response dict
- Return type:
dict
- exception ExceptNotifier.pycore.ExceptWechat(*args: object)
Bases:
BaseExceptionOverride excepthook to send error message to Wechat.
- Parameters:
etype (_type_) – Error Type
value (_type_) – Error Value
tb (_type_) – Traceback Information
- static send_wechat_msg(_WECHAT_WEBHOOK_URL: str, msg: str) None
Send message to wechat.
- Parameters:
_WECHAT_WEBHOOK_URL (str) – Wechat Webhook URL https://work.weixin.qq.com/api/doc/90000/90136/91770
msg (str) – Message to send
- class ExceptNotifier.pycore.SendBeep
Bases:
objectSend beep
- class ExceptNotifier.pycore.SendChime
Bases:
objectSending message to AWS Chime
- class ExceptNotifier.pycore.SendDesktop
Bases:
objectSending message to Desktop
- class ExceptNotifier.pycore.SendDiscord
Bases:
objectSending message to Discord
- class ExceptNotifier.pycore.SendKakao
Bases:
objectSending message to Kakaotalk
- class ExceptNotifier.pycore.SendLine
Bases:
objectSending success message to Line
- class ExceptNotifier.pycore.SendMail
Bases:
objectSending message to Gmail
- class ExceptNotifier.pycore.SendSMS
Bases:
objectSending message to SMS
- class ExceptNotifier.pycore.SendSlack
Bases:
objectSending message to Slack
- class ExceptNotifier.pycore.SendTeams
Bases:
objectSending message to microsoft teams
- class ExceptNotifier.pycore.SendTelegram
Bases:
objectSending message to telegram
- class ExceptNotifier.pycore.SendWechat
Bases:
objectSending message to wechat
- class ExceptNotifier.pycore.SuccessBeep
Bases:
objectSuccess beep
- class ExceptNotifier.pycore.SuccessChime
Bases:
objectSending success message to AWS Chime
- class ExceptNotifier.pycore.SuccessDesktop
Bases:
objectSending success message to Desktop
- class ExceptNotifier.pycore.SuccessDiscord
Bases:
objectSending success message to Discord
- class ExceptNotifier.pycore.SuccessKakao
Bases:
objectSending success message to Kakaotalk
- class ExceptNotifier.pycore.SuccessLine
Bases:
objectSending success message to Line
- class ExceptNotifier.pycore.SuccessMail
Bases:
objectSending success message to Gmail
- class ExceptNotifier.pycore.SuccessSMS
Bases:
objectSending success message to SMS
- class ExceptNotifier.pycore.SuccessSlack
Bases:
objectSending success message to Slack
- class ExceptNotifier.pycore.SuccessTeams
Bases:
objectSending success message to microsoft teams
- class ExceptNotifier.pycore.SuccessTelegram
Bases:
objectSending success message to telegram
- class ExceptNotifier.pycore.SuccessWechat
Bases:
objectSending success message to wechat