Skip to main content

LINE notifier for our laser machines

Project description

Notifier

Notifierは、UI通知を管理するためのPythonパッケージです。

インストール

まずはパッケージをインストールします。

pip install LINE-Notifier-YuuoS

使い方

Notifierクラス

notifier.pyファイルには、通知機能を実行するためのNotifierクラスが含まれています。以下は使用例です。

from line_notifier.notifier import Notifier

notifier = Notifier()
success = notifier.run_notifier("Laser Machine", "加工が終わったよ")

if success:
    print("通知が送信されました")
else:
    print("通知の送信に失敗しました")

Appクラス

ui_manager.pywファイルには、通知設定を管理するためのAppクラスが含まれています。以下は使用例です。

import tkinter as tk
from notifier.line_notifier.ui_manager import App

root = tk.Tk()
app = App(root)
root.mainloop()

テスト

テストはunittestを使用して実行します。以下のコマンドでテストを実行できます。

python -m unittest discover -s src/test

ファイル構成

notifier/
├── notifier/
│   ├── __init__.py
│   ├── line_notifier/
│   │   ├── __init__.py
│   │   ├── notification_setting.txt
│   │   ├── notifier.py
│   │   ├── tokens.txt
│   │   ├── ui_manager.pyw
├── test/
│   ├── __init__.py
│   ├── test_ui_manager.py
├── setup.py
├── requirements.txt
└── README.md

ライセンス

このプロジェクトはMITライセンスの下でライセンスされています。

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

line_notifier_yuuos-1.1.0.tar.gz (9.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

LINE_Notifier_YuuoS-1.1.0-py3-none-any.whl (9.4 kB view details)

Uploaded Python 3

File details

Details for the file line_notifier_yuuos-1.1.0.tar.gz.

File metadata

  • Download URL: line_notifier_yuuos-1.1.0.tar.gz
  • Upload date:
  • Size: 9.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.9.13

File hashes

Hashes for line_notifier_yuuos-1.1.0.tar.gz
Algorithm Hash digest
SHA256 8c8ce17b00ae82b7441ddfe13731c004cacef018ed787d1f8cdbe85e67cf2846
MD5 7a76f93867c508a52f6c858c61af7c19
BLAKE2b-256 6da2ec57c6a13056f0c87dea8c1241bd1984c291f07bfaf6f54e8dc5ee0bd2c9

See more details on using hashes here.

File details

Details for the file LINE_Notifier_YuuoS-1.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for LINE_Notifier_YuuoS-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4d47c2d8497f7e4df6e75fe0f1851dace25f624a759d5aafcc690a321a5aa616
MD5 ed68140be8979a2d10eb1967522fce18
BLAKE2b-256 be7f17b086165c86be5ef6ae90badaf77d4a7a64a019f8589aca68a9ec5c4b6c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page