android-notify 1.21__tar.gz → 1.23.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.
- {android_notify-1.21 → android_notify-1.23.1}/PKG-INFO +23 -12
- {android_notify-1.21 → android_notify-1.23.1}/README.md +4 -4
- {android_notify-1.21 → android_notify-1.23.1}/android_notify/core.py +1 -0
- {android_notify-1.21 → android_notify-1.23.1}/android_notify.egg-info/PKG-INFO +23 -12
- android_notify-1.23.1/android_notify.egg-info/requires.txt +2 -0
- android_notify-1.23.1/setup.py +46 -0
- android_notify-1.21/android_notify.egg-info/requires.txt +0 -1
- android_notify-1.21/setup.py +0 -19
- {android_notify-1.21 → android_notify-1.23.1}/android_notify/__init__.py +0 -0
- {android_notify-1.21 → android_notify-1.23.1}/android_notify/__main__.py +0 -0
- {android_notify-1.21 → android_notify-1.23.1}/android_notify/styles.py +0 -0
- {android_notify-1.21 → android_notify-1.23.1}/android_notify.egg-info/SOURCES.txt +0 -0
- {android_notify-1.21 → android_notify-1.23.1}/android_notify.egg-info/dependency_links.txt +0 -0
- {android_notify-1.21 → android_notify-1.23.1}/android_notify.egg-info/top_level.txt +0 -0
- {android_notify-1.21 → android_notify-1.23.1}/setup.cfg +0 -0
|
@@ -1,15 +1,26 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
|
-
Name:
|
|
3
|
-
Version: 1.
|
|
4
|
-
Summary: A Python package for sending Android notifications.
|
|
5
|
-
Home-page: https://github.com/
|
|
2
|
+
Name: android-notify
|
|
3
|
+
Version: 1.23.1
|
|
4
|
+
Summary: A Python package for sending Android notifications using PyJNIus in Kivy apps.
|
|
5
|
+
Home-page: https://github.com/fector101/android-notify
|
|
6
6
|
Author: Fabian
|
|
7
|
-
Author-email:
|
|
8
|
-
|
|
9
|
-
Project-URL:
|
|
7
|
+
Author-email: fector101@yahoo.com
|
|
8
|
+
License: MIT
|
|
9
|
+
Project-URL: Documentation, https://github.com/fector101/android-notify/
|
|
10
|
+
Project-URL: Source, https://github.com/fector101/android-notify
|
|
11
|
+
Project-URL: Tracker, https://github.com/fector101/android-notify/issues
|
|
12
|
+
Project-URL: Funding, https://www.buymeacoffee.com/fector101
|
|
13
|
+
Keywords: android,notifications,kivy,mobile,post notifications,pyjnius,android notifications,kivy notifications,python android,mobile development
|
|
14
|
+
Classifier: Programming Language :: Python :: 3
|
|
15
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
16
|
+
Classifier: Operating System :: Android
|
|
17
|
+
Classifier: Development Status :: 4 - Beta
|
|
18
|
+
Classifier: Intended Audience :: Developers
|
|
19
|
+
Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
|
10
20
|
Requires-Python: >=3.6
|
|
11
21
|
Description-Content-Type: text/markdown
|
|
12
|
-
Requires-Dist:
|
|
22
|
+
Requires-Dist: kivy>=2.0.0
|
|
23
|
+
Requires-Dist: pyjnius>=1.4.2
|
|
13
24
|
|
|
14
25
|
# Android Notify
|
|
15
26
|
|
|
@@ -46,7 +57,7 @@ In your **`buildozer.spec`** file, ensure you include the following:
|
|
|
46
57
|
|
|
47
58
|
```ini
|
|
48
59
|
# Add pyjnius so it's packaged with the build
|
|
49
|
-
requirements = python3,kivy,pyjnius
|
|
60
|
+
requirements = python3, kivy, pyjnius, android-notify
|
|
50
61
|
|
|
51
62
|
# Add permission for notifications
|
|
52
63
|
android.permissions = POST_NOTIFICATIONS
|
|
@@ -122,8 +133,8 @@ send_notification(
|
|
|
122
133
|
- How to Copy image to app folder
|
|
123
134
|
|
|
124
135
|
```python
|
|
125
|
-
import shutil,os # These
|
|
126
|
-
from android.storage import app_storage_path # type: ignore -- This works only on android
|
|
136
|
+
import shutil,os # These modules come packaged with python
|
|
137
|
+
from android.storage import app_storage_path # type: ignore -- This works only on android
|
|
127
138
|
|
|
128
139
|
app_path = os.path.join(app_storage_path(),'app')
|
|
129
140
|
image_path= "/storage/emulated/0/Download/profile.png"
|
|
@@ -134,7 +145,7 @@ shutil.copy(image_path, os.path.join(app_path, "profile.png"))
|
|
|
134
145
|
- Avoiding Human Error when using different notification styles
|
|
135
146
|
|
|
136
147
|
```python
|
|
137
|
-
from android_notify import NotificationStyles
|
|
148
|
+
from android_notify import send_notification, NotificationStyles
|
|
138
149
|
send_notification(
|
|
139
150
|
title='Picture Alert!',
|
|
140
151
|
message='This notification includes an image.',
|
|
@@ -33,7 +33,7 @@ In your **`buildozer.spec`** file, ensure you include the following:
|
|
|
33
33
|
|
|
34
34
|
```ini
|
|
35
35
|
# Add pyjnius so it's packaged with the build
|
|
36
|
-
requirements = python3,kivy,pyjnius
|
|
36
|
+
requirements = python3, kivy, pyjnius, android-notify
|
|
37
37
|
|
|
38
38
|
# Add permission for notifications
|
|
39
39
|
android.permissions = POST_NOTIFICATIONS
|
|
@@ -109,8 +109,8 @@ send_notification(
|
|
|
109
109
|
- How to Copy image to app folder
|
|
110
110
|
|
|
111
111
|
```python
|
|
112
|
-
import shutil,os # These
|
|
113
|
-
from android.storage import app_storage_path # type: ignore -- This works only on android
|
|
112
|
+
import shutil,os # These modules come packaged with python
|
|
113
|
+
from android.storage import app_storage_path # type: ignore -- This works only on android
|
|
114
114
|
|
|
115
115
|
app_path = os.path.join(app_storage_path(),'app')
|
|
116
116
|
image_path= "/storage/emulated/0/Download/profile.png"
|
|
@@ -121,7 +121,7 @@ shutil.copy(image_path, os.path.join(app_path, "profile.png"))
|
|
|
121
121
|
- Avoiding Human Error when using different notification styles
|
|
122
122
|
|
|
123
123
|
```python
|
|
124
|
-
from android_notify import NotificationStyles
|
|
124
|
+
from android_notify import send_notification, NotificationStyles
|
|
125
125
|
send_notification(
|
|
126
126
|
title='Picture Alert!',
|
|
127
127
|
message='This notification includes an image.',
|
|
@@ -78,6 +78,7 @@ def send_notification(title:str, message:str, style=None, img_path=None, channel
|
|
|
78
78
|
if not ON_ANDROID:
|
|
79
79
|
print('This Package Only Runs on Android !!! ---> Check "https://github.com/Fector101/android_notify/" for Documentation.')
|
|
80
80
|
return
|
|
81
|
+
asks_permission_if_needed()
|
|
81
82
|
|
|
82
83
|
# Get notification manager
|
|
83
84
|
notification_manager = context.getSystemService(context.NOTIFICATION_SERVICE)
|
|
@@ -1,15 +1,26 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
|
-
Name:
|
|
3
|
-
Version: 1.
|
|
4
|
-
Summary: A Python package for sending Android notifications.
|
|
5
|
-
Home-page: https://github.com/
|
|
2
|
+
Name: android-notify
|
|
3
|
+
Version: 1.23.1
|
|
4
|
+
Summary: A Python package for sending Android notifications using PyJNIus in Kivy apps.
|
|
5
|
+
Home-page: https://github.com/fector101/android-notify
|
|
6
6
|
Author: Fabian
|
|
7
|
-
Author-email:
|
|
8
|
-
|
|
9
|
-
Project-URL:
|
|
7
|
+
Author-email: fector101@yahoo.com
|
|
8
|
+
License: MIT
|
|
9
|
+
Project-URL: Documentation, https://github.com/fector101/android-notify/
|
|
10
|
+
Project-URL: Source, https://github.com/fector101/android-notify
|
|
11
|
+
Project-URL: Tracker, https://github.com/fector101/android-notify/issues
|
|
12
|
+
Project-URL: Funding, https://www.buymeacoffee.com/fector101
|
|
13
|
+
Keywords: android,notifications,kivy,mobile,post notifications,pyjnius,android notifications,kivy notifications,python android,mobile development
|
|
14
|
+
Classifier: Programming Language :: Python :: 3
|
|
15
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
16
|
+
Classifier: Operating System :: Android
|
|
17
|
+
Classifier: Development Status :: 4 - Beta
|
|
18
|
+
Classifier: Intended Audience :: Developers
|
|
19
|
+
Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
|
10
20
|
Requires-Python: >=3.6
|
|
11
21
|
Description-Content-Type: text/markdown
|
|
12
|
-
Requires-Dist:
|
|
22
|
+
Requires-Dist: kivy>=2.0.0
|
|
23
|
+
Requires-Dist: pyjnius>=1.4.2
|
|
13
24
|
|
|
14
25
|
# Android Notify
|
|
15
26
|
|
|
@@ -46,7 +57,7 @@ In your **`buildozer.spec`** file, ensure you include the following:
|
|
|
46
57
|
|
|
47
58
|
```ini
|
|
48
59
|
# Add pyjnius so it's packaged with the build
|
|
49
|
-
requirements = python3,kivy,pyjnius
|
|
60
|
+
requirements = python3, kivy, pyjnius, android-notify
|
|
50
61
|
|
|
51
62
|
# Add permission for notifications
|
|
52
63
|
android.permissions = POST_NOTIFICATIONS
|
|
@@ -122,8 +133,8 @@ send_notification(
|
|
|
122
133
|
- How to Copy image to app folder
|
|
123
134
|
|
|
124
135
|
```python
|
|
125
|
-
import shutil,os # These
|
|
126
|
-
from android.storage import app_storage_path # type: ignore -- This works only on android
|
|
136
|
+
import shutil,os # These modules come packaged with python
|
|
137
|
+
from android.storage import app_storage_path # type: ignore -- This works only on android
|
|
127
138
|
|
|
128
139
|
app_path = os.path.join(app_storage_path(),'app')
|
|
129
140
|
image_path= "/storage/emulated/0/Download/profile.png"
|
|
@@ -134,7 +145,7 @@ shutil.copy(image_path, os.path.join(app_path, "profile.png"))
|
|
|
134
145
|
- Avoiding Human Error when using different notification styles
|
|
135
146
|
|
|
136
147
|
```python
|
|
137
|
-
from android_notify import NotificationStyles
|
|
148
|
+
from android_notify import send_notification, NotificationStyles
|
|
138
149
|
send_notification(
|
|
139
150
|
title='Picture Alert!',
|
|
140
151
|
message='This notification includes an image.',
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
from setuptools import setup, find_packages
|
|
2
|
+
|
|
3
|
+
setup(
|
|
4
|
+
name="android-notify",
|
|
5
|
+
version="1.23.1",
|
|
6
|
+
author="Fabian",
|
|
7
|
+
author_email='fector101@yahoo.com',
|
|
8
|
+
description="A Python package for sending Android notifications using PyJNIus in Kivy apps.",
|
|
9
|
+
long_description=open("README.md").read(),
|
|
10
|
+
long_description_content_type="text/markdown",
|
|
11
|
+
url="https://github.com/fector101/android-notify",
|
|
12
|
+
packages=find_packages(),
|
|
13
|
+
install_requires=[
|
|
14
|
+
"kivy>=2.0.0",
|
|
15
|
+
"pyjnius>=1.4.2"
|
|
16
|
+
],
|
|
17
|
+
python_requires=">=3.6",
|
|
18
|
+
classifiers=[
|
|
19
|
+
"Programming Language :: Python :: 3",
|
|
20
|
+
"License :: OSI Approved :: MIT License",
|
|
21
|
+
"Operating System :: Android",
|
|
22
|
+
"Development Status :: 4 - Beta",
|
|
23
|
+
"Intended Audience :: Developers",
|
|
24
|
+
"Topic :: Software Development :: Libraries :: Python Modules",
|
|
25
|
+
],
|
|
26
|
+
keywords=[
|
|
27
|
+
"android",
|
|
28
|
+
"notifications",
|
|
29
|
+
"kivy",
|
|
30
|
+
"mobile",
|
|
31
|
+
"post notifications",
|
|
32
|
+
"pyjnius",
|
|
33
|
+
"android notifications",
|
|
34
|
+
"kivy notifications",
|
|
35
|
+
"python android",
|
|
36
|
+
"mobile development"
|
|
37
|
+
],
|
|
38
|
+
project_urls={
|
|
39
|
+
"Documentation": "https://github.com/fector101/android-notify/", # Replace with your documentation URL
|
|
40
|
+
# "Documentation": "https://github.com/fector101/android-notify/wiki", # Replace with your documentation URL
|
|
41
|
+
"Source": "https://github.com/fector101/android-notify",
|
|
42
|
+
"Tracker": "https://github.com/fector101/android-notify/issues",
|
|
43
|
+
"Funding": "https://www.buymeacoffee.com/fector101" # Replace with your Buy Me a Coffee link
|
|
44
|
+
},
|
|
45
|
+
license="MIT"
|
|
46
|
+
)
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
pyjnius
|
android_notify-1.21/setup.py
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
from setuptools import setup, find_packages
|
|
2
|
-
|
|
3
|
-
setup(
|
|
4
|
-
name='android_notify',
|
|
5
|
-
version='1.21',
|
|
6
|
-
author='Fabian',
|
|
7
|
-
url='https://github.com/Fector101/android_notify/',
|
|
8
|
-
description='A Python package for sending Android notifications.',
|
|
9
|
-
packages=find_packages(),
|
|
10
|
-
install_requires=['pyjnius'],
|
|
11
|
-
author_email='fabianjoseph063@gmail.com',
|
|
12
|
-
long_description=open("README.md").read(),
|
|
13
|
-
long_description_content_type="text/markdown",
|
|
14
|
-
python_requires='>=3.6',
|
|
15
|
-
project_urls={
|
|
16
|
-
'Funding': 'https://buymeacoffee.com/fector101',
|
|
17
|
-
'Source': 'https://github.com/Fector101/android_notify/',
|
|
18
|
-
},
|
|
19
|
-
)
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|