android-notify 1.31__tar.gz → 1.32.1__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of android-notify might be problematic. Click here for more details.

@@ -1,7 +1,7 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: android-notify
3
- Version: 1.31
4
- Summary: A Python package that simpilfies creating Android Post notifications using PyJNIus in Kivy apps.
3
+ Version: 1.32.1
4
+ Summary: A Python package that simpilfies creating Android notifications in Kivy apps.
5
5
  Home-page: https://github.com/fector101/android-notify
6
6
  Author: Fabian
7
7
  Author-email: fector101@yahoo.com
@@ -26,10 +26,8 @@ Requires-Dist: pyjnius>=1.4.2
26
26
  <br>
27
27
  <h1> Android-Notifiy </h1>
28
28
  <p> A Python library for effortlessly creating and managing Android notifications in Kivy android apps.</p>
29
- <p>
30
- Supports various styles and ensures seamless integration and customization.
31
- </p>
32
- <br>
29
+ <p>Supports various styles and ensures seamless integration and customization.</p>
30
+ <!-- <br> -->
33
31
  <!-- <img src="https://raw.githubusercontent.com/Fector101/android_notify/main/docs/imgs/democollage.jpg"> -->
34
32
  </div>
35
33
 
@@ -38,11 +36,12 @@ Requires-Dist: pyjnius>=1.4.2
38
36
  - Compatible with Android 8.0+.
39
37
  - Supports including images in notifications.
40
38
  - Support for multiple notification styles:
41
- - Progress
42
- - Big Picture
43
- - Inbox
44
- - Big Text
45
- - Large Icon
39
+ - [Simple](#basic-usage)
40
+ - [Progress](#progress-bar-notification)
41
+ - [Big Picture](#notification-with-an-image-big-picture-style)
42
+ - [Inbox](#inbox-notification-style)
43
+ - [Large Icon](#notification-with-an-image-large-icon-style)
44
+ - [Big Text](#big-text-notification-will-display-as-simple-text-if-device-dosent-support)
46
45
 
47
46
  This module automatically handles:
48
47
 
@@ -66,7 +65,7 @@ pip install android-notify
66
65
  In your **`buildozer.spec`** file, ensure you include the following:
67
66
 
68
67
  ```ini
69
- # Add pyjnius so it's packaged with the build
68
+ # Add pyjnius so ensure it's packaged with the build
70
69
  requirements = python3, kivy, pyjnius, android-notify
71
70
 
72
71
  # Add permission for notifications
@@ -87,7 +86,7 @@ from android_notify import Notification
87
86
  # Create a simple notification
88
87
  notification = Notification(
89
88
  title="Hello",
90
- message="This is a basic notification"
89
+ message="This is a basic notification."
91
90
  )
92
91
  notification.send()
93
92
  ```
@@ -110,6 +109,25 @@ The library supports multiple notification styles:
110
109
 
111
110
  ### Style Examples
112
111
 
112
+ #### Progress Bar notification
113
+
114
+ ```python
115
+ import time
116
+ notification = Notification(
117
+ title="Downloading...",
118
+ message="0% downloaded",
119
+ style="progress",
120
+ progress_max_value=100,
121
+ progress_current_value=0
122
+ )
123
+ notification.send()
124
+ time.sleep(350)
125
+ notification.updateProgressBar(30, "30% downloaded")
126
+ ```
127
+
128
+ **Sample Image:**
129
+ ![progress img sample](https://raw.githubusercontent.com/Fector101/android_notify/main/docs/imgs/progress.jpg)
130
+
113
131
  #### Notification with an Image (Big Picture Style)
114
132
 
115
133
  ```python
@@ -120,6 +138,8 @@ notification = Notification(
120
138
  style="big_picture",
121
139
  big_picture_path="assets/imgs/photo.png"
122
140
  )
141
+ notification.send()
142
+
123
143
  ```
124
144
 
125
145
  **Sample Image:**
@@ -134,6 +154,8 @@ notification = Notification(
134
154
  message='Line 1\nLine 2\nLine 3',
135
155
  style='inbox'
136
156
  )
157
+ notification.send()
158
+
137
159
  ```
138
160
 
139
161
  **Sample Image:**
@@ -149,27 +171,6 @@ notification = Notification(
149
171
  )
150
172
  ```
151
173
 
152
- #### Progress bar notification
153
-
154
- ```python
155
- import time
156
- notification = Notification(
157
- title="Downloading...",
158
- message="0% downloaded",
159
- style="progress",
160
- progress_max_value=100,
161
- progress_current_value=0
162
- )
163
- notification.send()
164
- time.sleep(350)
165
- notification.updateProgressBar(30, "30% downloaded")
166
-
167
-
168
- ```
169
-
170
- **Sample Image:**
171
- ![progress img sample](https://raw.githubusercontent.com/Fector101/android_notify/main/docs/imgs/progress.jpg)
172
-
173
174
  #### Notification with an Image (Large Icon Style)
174
175
 
175
176
  ```python
@@ -225,8 +226,8 @@ Notifications are organized into channels. You can customize the channel name an
225
226
  notification = Notification(
226
227
  title="Download finished",
227
228
  message="How to Catch a Fish.mp4",
228
- channel_name="Download Notifications", # Will create User-visible name "downloads"
229
- channel_id="custom_downloads" # Optional: specify custom channel ID
229
+ channel_name="Download Notifications", # Will create User-visible name "Download Notifications"
230
+ channel_id="downloads_notifications" # Optional: specify custom channel ID
230
231
  )
231
232
  ```
232
233
 
@@ -260,7 +261,7 @@ shutil.copy(image_path, os.path.join(app_path, "profile.png"))
260
261
 
261
262
  ```python
262
263
  from android_notify import Notification, NotificationStyles
263
- notification = Notification(
264
+ Notification(
264
265
  title="New Photo",
265
266
  message="Check out this image",
266
267
  style=NotificationStyles.BIG_PICTURE,
@@ -284,7 +285,7 @@ notification.send()
284
285
 
285
286
  ## Image Requirements
286
287
 
287
- - Images must be located within your app's asset folder
288
+ - Images must be located within your app's folder
288
289
  - Supported paths are relative to your app's storage path
289
290
  - Example: `assets/imgs/icon.png`
290
291
 
@@ -2,10 +2,8 @@
2
2
  <br>
3
3
  <h1> Android-Notifiy </h1>
4
4
  <p> A Python library for effortlessly creating and managing Android notifications in Kivy android apps.</p>
5
- <p>
6
- Supports various styles and ensures seamless integration and customization.
7
- </p>
8
- <br>
5
+ <p>Supports various styles and ensures seamless integration and customization.</p>
6
+ <!-- <br> -->
9
7
  <!-- <img src="https://raw.githubusercontent.com/Fector101/android_notify/main/docs/imgs/democollage.jpg"> -->
10
8
  </div>
11
9
 
@@ -14,11 +12,12 @@
14
12
  - Compatible with Android 8.0+.
15
13
  - Supports including images in notifications.
16
14
  - Support for multiple notification styles:
17
- - Progress
18
- - Big Picture
19
- - Inbox
20
- - Big Text
21
- - Large Icon
15
+ - [Simple](#basic-usage)
16
+ - [Progress](#progress-bar-notification)
17
+ - [Big Picture](#notification-with-an-image-big-picture-style)
18
+ - [Inbox](#inbox-notification-style)
19
+ - [Large Icon](#notification-with-an-image-large-icon-style)
20
+ - [Big Text](#big-text-notification-will-display-as-simple-text-if-device-dosent-support)
22
21
 
23
22
  This module automatically handles:
24
23
 
@@ -42,7 +41,7 @@ pip install android-notify
42
41
  In your **`buildozer.spec`** file, ensure you include the following:
43
42
 
44
43
  ```ini
45
- # Add pyjnius so it's packaged with the build
44
+ # Add pyjnius so ensure it's packaged with the build
46
45
  requirements = python3, kivy, pyjnius, android-notify
47
46
 
48
47
  # Add permission for notifications
@@ -63,7 +62,7 @@ from android_notify import Notification
63
62
  # Create a simple notification
64
63
  notification = Notification(
65
64
  title="Hello",
66
- message="This is a basic notification"
65
+ message="This is a basic notification."
67
66
  )
68
67
  notification.send()
69
68
  ```
@@ -86,6 +85,25 @@ The library supports multiple notification styles:
86
85
 
87
86
  ### Style Examples
88
87
 
88
+ #### Progress Bar notification
89
+
90
+ ```python
91
+ import time
92
+ notification = Notification(
93
+ title="Downloading...",
94
+ message="0% downloaded",
95
+ style="progress",
96
+ progress_max_value=100,
97
+ progress_current_value=0
98
+ )
99
+ notification.send()
100
+ time.sleep(350)
101
+ notification.updateProgressBar(30, "30% downloaded")
102
+ ```
103
+
104
+ **Sample Image:**
105
+ ![progress img sample](https://raw.githubusercontent.com/Fector101/android_notify/main/docs/imgs/progress.jpg)
106
+
89
107
  #### Notification with an Image (Big Picture Style)
90
108
 
91
109
  ```python
@@ -96,6 +114,8 @@ notification = Notification(
96
114
  style="big_picture",
97
115
  big_picture_path="assets/imgs/photo.png"
98
116
  )
117
+ notification.send()
118
+
99
119
  ```
100
120
 
101
121
  **Sample Image:**
@@ -110,6 +130,8 @@ notification = Notification(
110
130
  message='Line 1\nLine 2\nLine 3',
111
131
  style='inbox'
112
132
  )
133
+ notification.send()
134
+
113
135
  ```
114
136
 
115
137
  **Sample Image:**
@@ -125,27 +147,6 @@ notification = Notification(
125
147
  )
126
148
  ```
127
149
 
128
- #### Progress bar notification
129
-
130
- ```python
131
- import time
132
- notification = Notification(
133
- title="Downloading...",
134
- message="0% downloaded",
135
- style="progress",
136
- progress_max_value=100,
137
- progress_current_value=0
138
- )
139
- notification.send()
140
- time.sleep(350)
141
- notification.updateProgressBar(30, "30% downloaded")
142
-
143
-
144
- ```
145
-
146
- **Sample Image:**
147
- ![progress img sample](https://raw.githubusercontent.com/Fector101/android_notify/main/docs/imgs/progress.jpg)
148
-
149
150
  #### Notification with an Image (Large Icon Style)
150
151
 
151
152
  ```python
@@ -201,8 +202,8 @@ Notifications are organized into channels. You can customize the channel name an
201
202
  notification = Notification(
202
203
  title="Download finished",
203
204
  message="How to Catch a Fish.mp4",
204
- channel_name="Download Notifications", # Will create User-visible name "downloads"
205
- channel_id="custom_downloads" # Optional: specify custom channel ID
205
+ channel_name="Download Notifications", # Will create User-visible name "Download Notifications"
206
+ channel_id="downloads_notifications" # Optional: specify custom channel ID
206
207
  )
207
208
  ```
208
209
 
@@ -236,7 +237,7 @@ shutil.copy(image_path, os.path.join(app_path, "profile.png"))
236
237
 
237
238
  ```python
238
239
  from android_notify import Notification, NotificationStyles
239
- notification = Notification(
240
+ Notification(
240
241
  title="New Photo",
241
242
  message="Check out this image",
242
243
  style=NotificationStyles.BIG_PICTURE,
@@ -260,7 +261,7 @@ notification.send()
260
261
 
261
262
  ## Image Requirements
262
263
 
263
- - Images must be located within your app's asset folder
264
+ - Images must be located within your app's folder
264
265
  - Supported paths are relative to your app's storage path
265
266
  - Example: `assets/imgs/icon.png`
266
267
 
@@ -1,7 +1,7 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: android-notify
3
- Version: 1.31
4
- Summary: A Python package that simpilfies creating Android Post notifications using PyJNIus in Kivy apps.
3
+ Version: 1.32.1
4
+ Summary: A Python package that simpilfies creating Android notifications in Kivy apps.
5
5
  Home-page: https://github.com/fector101/android-notify
6
6
  Author: Fabian
7
7
  Author-email: fector101@yahoo.com
@@ -26,10 +26,8 @@ Requires-Dist: pyjnius>=1.4.2
26
26
  <br>
27
27
  <h1> Android-Notifiy </h1>
28
28
  <p> A Python library for effortlessly creating and managing Android notifications in Kivy android apps.</p>
29
- <p>
30
- Supports various styles and ensures seamless integration and customization.
31
- </p>
32
- <br>
29
+ <p>Supports various styles and ensures seamless integration and customization.</p>
30
+ <!-- <br> -->
33
31
  <!-- <img src="https://raw.githubusercontent.com/Fector101/android_notify/main/docs/imgs/democollage.jpg"> -->
34
32
  </div>
35
33
 
@@ -38,11 +36,12 @@ Requires-Dist: pyjnius>=1.4.2
38
36
  - Compatible with Android 8.0+.
39
37
  - Supports including images in notifications.
40
38
  - Support for multiple notification styles:
41
- - Progress
42
- - Big Picture
43
- - Inbox
44
- - Big Text
45
- - Large Icon
39
+ - [Simple](#basic-usage)
40
+ - [Progress](#progress-bar-notification)
41
+ - [Big Picture](#notification-with-an-image-big-picture-style)
42
+ - [Inbox](#inbox-notification-style)
43
+ - [Large Icon](#notification-with-an-image-large-icon-style)
44
+ - [Big Text](#big-text-notification-will-display-as-simple-text-if-device-dosent-support)
46
45
 
47
46
  This module automatically handles:
48
47
 
@@ -66,7 +65,7 @@ pip install android-notify
66
65
  In your **`buildozer.spec`** file, ensure you include the following:
67
66
 
68
67
  ```ini
69
- # Add pyjnius so it's packaged with the build
68
+ # Add pyjnius so ensure it's packaged with the build
70
69
  requirements = python3, kivy, pyjnius, android-notify
71
70
 
72
71
  # Add permission for notifications
@@ -87,7 +86,7 @@ from android_notify import Notification
87
86
  # Create a simple notification
88
87
  notification = Notification(
89
88
  title="Hello",
90
- message="This is a basic notification"
89
+ message="This is a basic notification."
91
90
  )
92
91
  notification.send()
93
92
  ```
@@ -110,6 +109,25 @@ The library supports multiple notification styles:
110
109
 
111
110
  ### Style Examples
112
111
 
112
+ #### Progress Bar notification
113
+
114
+ ```python
115
+ import time
116
+ notification = Notification(
117
+ title="Downloading...",
118
+ message="0% downloaded",
119
+ style="progress",
120
+ progress_max_value=100,
121
+ progress_current_value=0
122
+ )
123
+ notification.send()
124
+ time.sleep(350)
125
+ notification.updateProgressBar(30, "30% downloaded")
126
+ ```
127
+
128
+ **Sample Image:**
129
+ ![progress img sample](https://raw.githubusercontent.com/Fector101/android_notify/main/docs/imgs/progress.jpg)
130
+
113
131
  #### Notification with an Image (Big Picture Style)
114
132
 
115
133
  ```python
@@ -120,6 +138,8 @@ notification = Notification(
120
138
  style="big_picture",
121
139
  big_picture_path="assets/imgs/photo.png"
122
140
  )
141
+ notification.send()
142
+
123
143
  ```
124
144
 
125
145
  **Sample Image:**
@@ -134,6 +154,8 @@ notification = Notification(
134
154
  message='Line 1\nLine 2\nLine 3',
135
155
  style='inbox'
136
156
  )
157
+ notification.send()
158
+
137
159
  ```
138
160
 
139
161
  **Sample Image:**
@@ -149,27 +171,6 @@ notification = Notification(
149
171
  )
150
172
  ```
151
173
 
152
- #### Progress bar notification
153
-
154
- ```python
155
- import time
156
- notification = Notification(
157
- title="Downloading...",
158
- message="0% downloaded",
159
- style="progress",
160
- progress_max_value=100,
161
- progress_current_value=0
162
- )
163
- notification.send()
164
- time.sleep(350)
165
- notification.updateProgressBar(30, "30% downloaded")
166
-
167
-
168
- ```
169
-
170
- **Sample Image:**
171
- ![progress img sample](https://raw.githubusercontent.com/Fector101/android_notify/main/docs/imgs/progress.jpg)
172
-
173
174
  #### Notification with an Image (Large Icon Style)
174
175
 
175
176
  ```python
@@ -225,8 +226,8 @@ Notifications are organized into channels. You can customize the channel name an
225
226
  notification = Notification(
226
227
  title="Download finished",
227
228
  message="How to Catch a Fish.mp4",
228
- channel_name="Download Notifications", # Will create User-visible name "downloads"
229
- channel_id="custom_downloads" # Optional: specify custom channel ID
229
+ channel_name="Download Notifications", # Will create User-visible name "Download Notifications"
230
+ channel_id="downloads_notifications" # Optional: specify custom channel ID
230
231
  )
231
232
  ```
232
233
 
@@ -260,7 +261,7 @@ shutil.copy(image_path, os.path.join(app_path, "profile.png"))
260
261
 
261
262
  ```python
262
263
  from android_notify import Notification, NotificationStyles
263
- notification = Notification(
264
+ Notification(
264
265
  title="New Photo",
265
266
  message="Check out this image",
266
267
  style=NotificationStyles.BIG_PICTURE,
@@ -284,7 +285,7 @@ notification.send()
284
285
 
285
286
  ## Image Requirements
286
287
 
287
- - Images must be located within your app's asset folder
288
+ - Images must be located within your app's folder
288
289
  - Supported paths are relative to your app's storage path
289
290
  - Example: `assets/imgs/icon.png`
290
291
 
@@ -6,10 +6,10 @@ with open("README.md", "r", encoding="utf-8") as readme_data:
6
6
 
7
7
  setup(
8
8
  name="android-notify",
9
- version="1.31",
9
+ version="1.32.1",
10
10
  author="Fabian",
11
11
  author_email='fector101@yahoo.com',
12
- description="A Python package that simpilfies creating Android Post notifications using PyJNIus in Kivy apps.",
12
+ description="A Python package that simpilfies creating Android notifications in Kivy apps.",
13
13
  long_description=long_description,
14
14
  long_description_content_type="text/markdown",
15
15
  url="https://github.com/fector101/android-notify",
File without changes