android-notify 1.58__tar.gz → 1.59__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.

@@ -0,0 +1,117 @@
1
+ Metadata-Version: 2.4
2
+ Name: android-notify
3
+ Version: 1.59
4
+ Summary: A Python package that simplifies creating Android notifications in Kivy apps.
5
+ Home-page: https://github.com/fector101/android-notify
6
+ Author: Fabian
7
+ Author-email: fector101@yahoo.com
8
+ License: MIT
9
+ Project-URL: Documentation, https://android-notify.vercel.app/getting-started
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,push-notifications,mobile-app,kivy-application
14
+ Classifier: Programming Language :: Python :: 3
15
+ Classifier: License :: OSI Approved :: MIT License
16
+ Classifier: Operating System :: Android
17
+ Classifier: Development Status :: 5 - Production/Stable
18
+ Classifier: Intended Audience :: Developers
19
+ Classifier: Topic :: Software Development :: Libraries :: Python Modules
20
+ Requires-Python: >=3.6
21
+ Description-Content-Type: text/markdown
22
+ Requires-Dist: kivy>=2.0.0
23
+ Requires-Dist: pyjnius>=1.4.2
24
+ Dynamic: author
25
+ Dynamic: author-email
26
+ Dynamic: classifier
27
+ Dynamic: description
28
+ Dynamic: description-content-type
29
+ Dynamic: home-page
30
+ Dynamic: keywords
31
+ Dynamic: license
32
+ Dynamic: project-url
33
+ Dynamic: requires-dist
34
+ Dynamic: requires-python
35
+ Dynamic: summary
36
+
37
+ <div align="center">
38
+ <br>
39
+ <h1> Android-Notifiy </h1>
40
+ <p><a href='https://android-notify.vercel.app/getting-started'>Android Notify</a> is a Python library for effortlessly creating and managing Android notifications in Kivy android apps.</p>
41
+ <p>Supports various styles and ensures seamless integration, customization and Pythonic APIs.</p>
42
+ <!-- <br> -->
43
+ <!-- <img src="https://raw.githubusercontent.com/Fector101/android_notify/main/docs/imgs/democollage.jpg"> -->
44
+ </div>
45
+ <!--
46
+ The Android Notify package provides a simple yet comprehensive way to create and manage rich notifications on Android devices directly from your Python code. This library bridges the gap between Python and Android's notification system, giving you full control over notifications with a clean, Pythonic API. -->
47
+
48
+ ## Features
49
+
50
+ - **Multiple Notification Styles**: Support for various notification styles including:
51
+ - Simple text notifications
52
+ - Progress bar notifications (determinate and indeterminate)
53
+ - Big text notifications
54
+ - Inbox-style notifications
55
+ - Large icon notifications
56
+ - Big picture notifications
57
+ - Combined image styles
58
+
59
+ - **Rich Functionality**:
60
+ - Add action buttons with custom callbacks
61
+ - Update notification content dynamically
62
+ - Manage progress bars with fine-grained control
63
+ - Custom notification channels for Android 8.0+
64
+ - Silent notifications
65
+ - Persistent notifications
66
+ - Click handlers and callbacks
67
+
68
+ ## Quick Start
69
+
70
+ ```python
71
+ from android_notify import Notification
72
+
73
+ # Simple notification
74
+ Notification(
75
+ title="Hello",
76
+ message="This is a basic notification."
77
+ ).send()
78
+
79
+ ```
80
+
81
+ **Sample Image:**
82
+ ![basic notification img sample](https://raw.githubusercontent.com/Fector101/android_notify/main/docs/imgs/basicnoti.jpg)
83
+
84
+ ## Installation
85
+
86
+ In your **`buildozer.spec`** file, ensure you include the following:
87
+
88
+ ```ini
89
+ # Add pyjnius so ensure it's packaged with the build
90
+ requirements = python3, kivy, pyjnius, android-notify
91
+ # Add permission for notifications
92
+ android.permissions = POST_NOTIFICATIONS
93
+
94
+ # Required dependencies (write exactly as shown, no quotation marks)
95
+ android.gradle_dependencies = androidx.core:core:1.6.0, androidx.core:core-ktx:1.15.0
96
+ android.enable_androidx = True
97
+ android.api = 35
98
+ ```
99
+
100
+ Can be installed via `pip` For testing purposes:
101
+
102
+ ```bash
103
+ pip install android_notify
104
+ ```
105
+
106
+ ## Documentation
107
+
108
+ For full documentation, examples, and advanced usage, API reference visit the
109
+ [documentation](https://android-notify.vercel.app/getting-started)
110
+
111
+ ## ☕ Support the Project
112
+
113
+ If you find this project helpful, consider buying me a coffee! 😊 Or Giving it a star on 🌟 [GitHub](https://github.com/Fector101/android_notify/) Your support helps maintain and improve the project.
114
+
115
+ <a href="https://www.buymeacoffee.com/fector101" target="_blank">
116
+ <img src="https://cdn.buymeacoffee.com/buttons/v2/default-yellow.png" alt="Buy Me A Coffee" height="60">
117
+ </a>
@@ -0,0 +1,81 @@
1
+ <div align="center">
2
+ <br>
3
+ <h1> Android-Notifiy </h1>
4
+ <p><a href='https://android-notify.vercel.app/getting-started'>Android Notify</a> is a Python library for effortlessly creating and managing Android notifications in Kivy android apps.</p>
5
+ <p>Supports various styles and ensures seamless integration, customization and Pythonic APIs.</p>
6
+ <!-- <br> -->
7
+ <!-- <img src="https://raw.githubusercontent.com/Fector101/android_notify/main/docs/imgs/democollage.jpg"> -->
8
+ </div>
9
+ <!--
10
+ The Android Notify package provides a simple yet comprehensive way to create and manage rich notifications on Android devices directly from your Python code. This library bridges the gap between Python and Android's notification system, giving you full control over notifications with a clean, Pythonic API. -->
11
+
12
+ ## Features
13
+
14
+ - **Multiple Notification Styles**: Support for various notification styles including:
15
+ - Simple text notifications
16
+ - Progress bar notifications (determinate and indeterminate)
17
+ - Big text notifications
18
+ - Inbox-style notifications
19
+ - Large icon notifications
20
+ - Big picture notifications
21
+ - Combined image styles
22
+
23
+ - **Rich Functionality**:
24
+ - Add action buttons with custom callbacks
25
+ - Update notification content dynamically
26
+ - Manage progress bars with fine-grained control
27
+ - Custom notification channels for Android 8.0+
28
+ - Silent notifications
29
+ - Persistent notifications
30
+ - Click handlers and callbacks
31
+
32
+ ## Quick Start
33
+
34
+ ```python
35
+ from android_notify import Notification
36
+
37
+ # Simple notification
38
+ Notification(
39
+ title="Hello",
40
+ message="This is a basic notification."
41
+ ).send()
42
+
43
+ ```
44
+
45
+ **Sample Image:**
46
+ ![basic notification img sample](https://raw.githubusercontent.com/Fector101/android_notify/main/docs/imgs/basicnoti.jpg)
47
+
48
+ ## Installation
49
+
50
+ In your **`buildozer.spec`** file, ensure you include the following:
51
+
52
+ ```ini
53
+ # Add pyjnius so ensure it's packaged with the build
54
+ requirements = python3, kivy, pyjnius, android-notify
55
+ # Add permission for notifications
56
+ android.permissions = POST_NOTIFICATIONS
57
+
58
+ # Required dependencies (write exactly as shown, no quotation marks)
59
+ android.gradle_dependencies = androidx.core:core:1.6.0, androidx.core:core-ktx:1.15.0
60
+ android.enable_androidx = True
61
+ android.api = 35
62
+ ```
63
+
64
+ Can be installed via `pip` For testing purposes:
65
+
66
+ ```bash
67
+ pip install android_notify
68
+ ```
69
+
70
+ ## Documentation
71
+
72
+ For full documentation, examples, and advanced usage, API reference visit the
73
+ [documentation](https://android-notify.vercel.app/getting-started)
74
+
75
+ ## ☕ Support the Project
76
+
77
+ If you find this project helpful, consider buying me a coffee! 😊 Or Giving it a star on 🌟 [GitHub](https://github.com/Fector101/android_notify/) Your support helps maintain and improve the project.
78
+
79
+ <a href="https://www.buymeacoffee.com/fector101" target="_blank">
80
+ <img src="https://cdn.buymeacoffee.com/buttons/v2/default-yellow.png" alt="Buy Me A Coffee" height="60">
81
+ </a>
@@ -1,3 +1,19 @@
1
+ """For autocomplete Storing Reference to Available Methods"""
2
+ from typing import Literal
3
+ Importance = Literal['urgent','high','medium','low','none']
4
+ """
5
+ :argument urgent - Makes a sound and appears as a heads-up notification.
6
+
7
+ :argument high - Makes a sound.
8
+
9
+ :argument urgent - Makes no sound.
10
+
11
+ :argument urgent - Makes no sound and doesn't appear in the status bar.
12
+
13
+ :argument urgent - Makes no sound and doesn't in the status bar or shade.
14
+ """
15
+
16
+ # Idea for typing autocompletion and reference
1
17
  # class Bundle:
2
18
  # pass
3
19
  # class PythonActivity:
@@ -69,4 +85,7 @@
69
85
  # class NotificationCompatBigPictureStyle:
70
86
  # pass
71
87
  # class NotificationCompatInboxStyle:
72
- # pass
88
+ # pass
89
+
90
+ #Now writing Knowledge from errors
91
+ # notify.(int, Builder.build()) # must be int
@@ -1,11 +1,11 @@
1
- """Assists Notification Class with Args keeps sub class cleaner"""
1
+ """Assists Notification Class with Args keeps subclass cleaner"""
2
2
  from dataclasses import dataclass, fields
3
3
  import difflib
4
4
  from .styles import NotificationStyles
5
5
 
6
6
  @dataclass
7
7
  class BaseNotification:
8
- """Encapsulator"""
8
+ """Encapsulation"""
9
9
 
10
10
  # Basic options
11
11
  title: str = ''
@@ -20,18 +20,24 @@ class BaseNotification:
20
20
  body: str = ''
21
21
 
22
22
  # Notification Functions
23
- identifer: str = ''
23
+ name: str = ''
24
24
  callback: object = None
25
25
 
26
26
  # Advanced Options
27
+ id: int = 0
27
28
  app_icon: str = 'Defaults to package app icon'
29
+
28
30
  channel_name: str = 'Default Channel'
31
+ """User visible channel name"""
29
32
  channel_id: str = 'default_channel'
33
+ """Used to reference notification channel"""
34
+
30
35
  silent: bool = False
31
36
  logs: bool = False
32
37
 
33
38
  def __init__(self, **kwargs):
34
39
  """Custom init to handle validation before dataclass assigns values"""
40
+
35
41
  # Validate provided arguments
36
42
  self.validate_args(kwargs)
37
43
 
@@ -80,3 +86,4 @@ class BaseNotification:
80
86
  raise ValueError(
81
87
  f"Invalid style '{inputted_style}'. Allowed styles: {allowed_styles}"
82
88
  )
89
+