-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Python desktop application: GUI with and without server support
- Implement Python project to receive notifications from the Express server - Create GUI version with server support - Add non-GUI version with server support - Include installation and setup instructions for Python components in README - Ensure compatibility with React Native mobile app and Express server
- Loading branch information
1 parent
e3c4591
commit 01537dc
Showing
18 changed files
with
573 additions
and
210 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,6 @@ | ||
node_modules | ||
.vscode | ||
.venv | ||
.env | ||
.env | ||
dist | ||
build |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
# Desktop Notifier | ||
|
||
Desktop Notifier is a desktop application built with Python's `tkinter` library. It connects to a server using Socket.IO, receives notifications, and displays them on your desktop. Notifications are stored in a list and can be viewed, deleted, or shown as a pop-up message. | ||
|
||
## Features | ||
|
||
- **Real-time Notifications:** Connect to a server and receive real-time notifications. | ||
- **Custom Notification Display:** Notifications are displayed with a custom title and message. | ||
- **Notification History:** View a list of received notifications, with options to show or delete them. | ||
- **Status Indicator:** Shows connection status to the server (Connected, Disconnected). | ||
- **Icon Support:** Displays a custom icon for the application and notifications. | ||
|
||
## Requirements | ||
|
||
- Python 3.x | ||
- Required Python packages: | ||
- `tkinter` | ||
- `Pillow` | ||
- `socketio` | ||
- `plyer` | ||
|
||
## Installation | ||
|
||
1. **Clone the repository:** | ||
```bash | ||
git clone https://github.com/your-username/desktop-notifier.git | ||
cd desktop-notifier | ||
``` | ||
|
||
2. **Install the required packages:** | ||
```bash | ||
pip install pillow python-socketio plyer websocket-client | ||
``` | ||
|
||
3. **Run the application:** | ||
```bash | ||
python main.py | ||
``` | ||
|
||
4. **Build the executable:** | ||
To build the application into a standalone executable, use the following command: | ||
```bash | ||
pyinstaller --onefile --hidden-import=plyer.platforms.win.notification --icon=icon.ico main.py | ||
``` | ||
The executable will be created in the `dist/` directory. | ||
|
||
## Download | ||
|
||
If you don't want to build the application yourself, you can download a pre-built executable from the [Releases](https://github.com/your-username/desktop-notifier/releases) page. | ||
1. **Go to the [Releases](https://github.com/your-username/desktop-notifier/releases) page.** | ||
2. **Download the latest release.** | ||
3. **Run the executable.** | ||
## Usage | ||
1. **Enter Project ID:** | ||
- Input your unique Project ID to connect to the server. | ||
2. **Start Notifier:** | ||
- Click the "Start Notifier" button to connect to the server and start receiving notifications. | ||
3. **Stop Notifier:** | ||
- Click the "Stop Notifier" button to disconnect from the server. | ||
4. **View Notifications:** | ||
- Notifications will appear in the list. You can click "Show" to view a notification or "Delete" to remove it from the list. | ||
## Demo | ||
<img src="./assets/demo.gif" alt="" /> |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
pip install pillow python-socketio plyer |
File renamed without changes.
Oops, something went wrong.