LINE-Notifier-YuuoS


NameLINE-Notifier-YuuoS JSON
Version 1.1.0 PyPI version JSON
download
home_pagehttps://github.com/YuuoS/YamalabLaserPackage/tree/main/notifier
SummaryLINE notifier for our laser machines
upload_time2024-07-22 09:01:11
maintainerNone
docs_urlNone
authorYuki Oshima
requires_python>=3.6
licenseNone
keywords notification ui tkinter
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # Notifier

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

## インストール

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

```bash
pip install LINE-Notifier-YuuoS
```

## 使い方

### Notifierクラス

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

```python
from line_notifier.notifier import Notifier

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

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

### Appクラス

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

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

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

## テスト

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

```bash
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ライセンスの下でライセンスされています。

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/YuuoS/YamalabLaserPackage/tree/main/notifier",
    "name": "LINE-Notifier-YuuoS",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.6",
    "maintainer_email": null,
    "keywords": "notification, UI, tkinter",
    "author": "Yuki Oshima",
    "author_email": "Yuki Oshima <05.pistes.respect@icloud.com>",
    "download_url": "https://files.pythonhosted.org/packages/6d/a2/ec57c6a13056f0c87dea8c1241bd1984c291f07bfaf6f54e8dc5ee0bd2c9/line_notifier_yuuos-1.1.0.tar.gz",
    "platform": null,
    "description": "# Notifier\r\n\r\nNotifier\u306f\u3001UI\u901a\u77e5\u3092\u7ba1\u7406\u3059\u308b\u305f\u3081\u306ePython\u30d1\u30c3\u30b1\u30fc\u30b8\u3067\u3059\u3002\r\n\r\n## \u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\r\n\r\n\u307e\u305a\u306f\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002\r\n\r\n```bash\r\npip install LINE-Notifier-YuuoS\r\n```\r\n\r\n## \u4f7f\u3044\u65b9\r\n\r\n### Notifier\u30af\u30e9\u30b9\r\n\r\n`notifier.py`\u30d5\u30a1\u30a4\u30eb\u306b\u306f\u3001\u901a\u77e5\u6a5f\u80fd\u3092\u5b9f\u884c\u3059\u308b\u305f\u3081\u306e`Notifier`\u30af\u30e9\u30b9\u304c\u542b\u307e\u308c\u3066\u3044\u307e\u3059\u3002\u4ee5\u4e0b\u306f\u4f7f\u7528\u4f8b\u3067\u3059\u3002\r\n\r\n```python\r\nfrom line_notifier.notifier import Notifier\r\n\r\nnotifier = Notifier()\r\nsuccess = notifier.run_notifier(\"Laser Machine\", \"\u52a0\u5de5\u304c\u7d42\u308f\u3063\u305f\u3088\")\r\n\r\nif success:\r\n    print(\"\u901a\u77e5\u304c\u9001\u4fe1\u3055\u308c\u307e\u3057\u305f\")\r\nelse:\r\n    print(\"\u901a\u77e5\u306e\u9001\u4fe1\u306b\u5931\u6557\u3057\u307e\u3057\u305f\")\r\n```\r\n\r\n### App\u30af\u30e9\u30b9\r\n\r\n`ui_manager.pyw`\u30d5\u30a1\u30a4\u30eb\u306b\u306f\u3001\u901a\u77e5\u8a2d\u5b9a\u3092\u7ba1\u7406\u3059\u308b\u305f\u3081\u306e`App`\u30af\u30e9\u30b9\u304c\u542b\u307e\u308c\u3066\u3044\u307e\u3059\u3002\u4ee5\u4e0b\u306f\u4f7f\u7528\u4f8b\u3067\u3059\u3002\r\n\r\n```python\r\nimport tkinter as tk\r\nfrom notifier.line_notifier.ui_manager import App\r\n\r\nroot = tk.Tk()\r\napp = App(root)\r\nroot.mainloop()\r\n```\r\n\r\n## \u30c6\u30b9\u30c8\r\n\r\n\u30c6\u30b9\u30c8\u306f`unittest`\u3092\u4f7f\u7528\u3057\u3066\u5b9f\u884c\u3057\u307e\u3059\u3002\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3067\u30c6\u30b9\u30c8\u3092\u5b9f\u884c\u3067\u304d\u307e\u3059\u3002\r\n\r\n```bash\r\npython -m unittest discover -s src/test\r\n```\r\n\r\n## \u30d5\u30a1\u30a4\u30eb\u69cb\u6210\r\n\r\n```\r\nnotifier/\r\n\u251c\u2500\u2500 notifier/\r\n\u2502   \u251c\u2500\u2500 __init__.py\r\n\u2502   \u251c\u2500\u2500 line_notifier/\r\n\u2502   \u2502   \u251c\u2500\u2500 __init__.py\r\n\u2502   \u2502   \u251c\u2500\u2500 notification_setting.txt\r\n\u2502   \u2502   \u251c\u2500\u2500 notifier.py\r\n\u2502   \u2502   \u251c\u2500\u2500 tokens.txt\r\n\u2502   \u2502   \u251c\u2500\u2500 ui_manager.pyw\r\n\u251c\u2500\u2500 test/\r\n\u2502   \u251c\u2500\u2500 __init__.py\r\n\u2502   \u251c\u2500\u2500 test_ui_manager.py\r\n\u251c\u2500\u2500 setup.py\r\n\u251c\u2500\u2500 requirements.txt\r\n\u2514\u2500\u2500 README.md\r\n```\r\n\r\n## \u30e9\u30a4\u30bb\u30f3\u30b9\r\n\r\n\u3053\u306e\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306fMIT\u30e9\u30a4\u30bb\u30f3\u30b9\u306e\u4e0b\u3067\u30e9\u30a4\u30bb\u30f3\u30b9\u3055\u308c\u3066\u3044\u307e\u3059\u3002\r\n",
    "bugtrack_url": null,
    "license": null,
    "summary": "LINE notifier for our laser machines",
    "version": "1.1.0",
    "project_urls": {
        "Homepage": "https://github.com/YuuoS/YamalabLaserPackage/tree/main/notifier",
        "Issues": "https://github.com/YuuoS/YamalabLaserPackage/tree/main/notifier/issues"
    },
    "split_keywords": [
        "notification",
        " ui",
        " tkinter"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "be7f17b086165c86be5ef6ae90badaf77d4a7a64a019f8589aca68a9ec5c4b6c",
                "md5": "ed68140be8979a2d10eb1967522fce18",
                "sha256": "4d47c2d8497f7e4df6e75fe0f1851dace25f624a759d5aafcc690a321a5aa616"
            },
            "downloads": -1,
            "filename": "LINE_Notifier_YuuoS-1.1.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "ed68140be8979a2d10eb1967522fce18",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.6",
            "size": 9418,
            "upload_time": "2024-07-22T09:01:09",
            "upload_time_iso_8601": "2024-07-22T09:01:09.099363Z",
            "url": "https://files.pythonhosted.org/packages/be/7f/17b086165c86be5ef6ae90badaf77d4a7a64a019f8589aca68a9ec5c4b6c/LINE_Notifier_YuuoS-1.1.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "6da2ec57c6a13056f0c87dea8c1241bd1984c291f07bfaf6f54e8dc5ee0bd2c9",
                "md5": "7a76f93867c508a52f6c858c61af7c19",
                "sha256": "8c8ce17b00ae82b7441ddfe13731c004cacef018ed787d1f8cdbe85e67cf2846"
            },
            "downloads": -1,
            "filename": "line_notifier_yuuos-1.1.0.tar.gz",
            "has_sig": false,
            "md5_digest": "7a76f93867c508a52f6c858c61af7c19",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.6",
            "size": 9262,
            "upload_time": "2024-07-22T09:01:11",
            "upload_time_iso_8601": "2024-07-22T09:01:11.242941Z",
            "url": "https://files.pythonhosted.org/packages/6d/a2/ec57c6a13056f0c87dea8c1241bd1984c291f07bfaf6f54e8dc5ee0bd2c9/line_notifier_yuuos-1.1.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-07-22 09:01:11",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "YuuoS",
    "github_project": "YamalabLaserPackage",
    "github_not_found": true,
    "lcname": "line-notifier-yuuos"
}
        
Elapsed time: 6.89551s