LINE notifier for our laser machines
Project description
Notifier
Notifierは、UI通知を管理するためのPythonパッケージです。
インストール
まず、必要な依存関係をインストールします。
pip install -r requirements.txt
次に、setup.pyを使用してパッケージをインストールします。
pip install .
使い方
Notifierクラス
notifier.pyファイルには、通知機能を実行するためのNotifierクラスが含まれています。以下は使用例です。
from notifier.line_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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file line_notifier_yuuos-1.0.7.tar.gz.
File metadata
- Download URL: line_notifier_yuuos-1.0.7.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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8f258ed6cd553259af8bab4c0cdc371c50b2c6f01383e3cbcb49a06a7efbb253
|
|
| MD5 |
acc734c665b2be264b13746dd5d916b6
|
|
| BLAKE2b-256 |
ea4e52c691b4de25f25581b025ef0ed5805f7f0fd56544e484d879c59d3b9e5c
|
File details
Details for the file LINE_Notifier_YuuoS-1.0.7-py3-none-any.whl.
File metadata
- Download URL: LINE_Notifier_YuuoS-1.0.7-py3-none-any.whl
- Upload date:
- Size: 9.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e934cd7ce7ac470c851a9b6268ace852460e41129a888460fbafcd38b5393446
|
|
| MD5 |
bf92c5db8898b230d616750d3a27350f
|
|
| BLAKE2b-256 |
cdda302521ecdf9ace95fd5922d9baaa94e90ccaf92bac29bb871822c945ae1f
|