notify package
Submodules
notify.client module
Client-side notification API for compute hosts.
- class notify.client.NotifyClient(server_url: str | None = None, token: str | None = None, timeout: float | None = None)[ソース]
ベースクラス:
objectSmall HTTP client used from calculation scripts.
notify.install module
インストール済みの共有データからサンプルスクリプトを配置する。
notify.server module
REST notification server intended to run on the user's PC.
- class notify.server.NotifyConfig(token: str | None = None, backend: str | None = None, mail_client: str | None = None, mail_to: str | None = None, smtp_host: str | None = None, smtp_port: int | None = None, smtp_user: str | None = None, smtp_password: str | None = None)[ソース]
ベースクラス:
objectServer settings. Direct values take priority over environment variables.
- class notify.server.NotifyMessage(*, title: str, body: str = '')[ソース]
ベースクラス:
BaseModel- body: str
- model_config = {}
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- title: str
- notify.server.get_config() NotifyConfig[ソース]
- notify.server.main(config: NotifyConfig | None = None, host: str | None = None, port: int | None = None) None[ソース]
- notify.server.receive_notify(message: NotifyMessage, x_notify_token: str = Header()) Dict[str, Any][ソース]
- notify.server.send_by_mail_app(config: NotifyConfig, title: str, body: str) None[ソース]
- notify.server.send_by_mail_client(config: NotifyConfig, title: str, body: str) None[ソース]
- notify.server.send_by_outlook_app(config: NotifyConfig, title: str, body: str) None[ソース]
- notify.server.send_by_outlook_mac(config: NotifyConfig, title: str, body: str) None[ソース]
- notify.server.send_by_outlook_windows(config: NotifyConfig, title: str, body: str) None[ソース]
- notify.server.send_by_smtp(config: NotifyConfig, title: str, body: str) None[ソース]
- notify.server.send_notification(config: NotifyConfig, title: str, body: str) None[ソース]