Name | ma-notification-center JSON |
Version |
2.1.1
JSON |
| download |
home_page | |
Summary | MobileArts Notification Center Package |
upload_time | 2023-06-14 07:13:17 |
maintainer | |
docs_url | None |
author | Fatima Medlij |
requires_python | |
license | MIT |
keywords |
|
VCS |
|
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
ma_notification_center
ma-notifications is a Python package that provides a notification center for sending various types of notifications.
## Installation
You can install ma-notification-center using pip:
```python
pip install ma_notification_center
```
## Usage
Here's an example of how to use ma-notification-center:
```python
from ma_notification_center import notificationcenter
notifications = notificationcenter.Notifications()
# Send an email
notifications.send_email(
to_emails=["recipient1@example.com"],
cc_emails=["recipient2@example.com"],
bcc_emails=[],
subject="Notification",
body_text="This is a notification email.",
body_html="<p>This is a notification email.</p>"
)
# Send a Telegram message
notifications.send_telegram(["chat_id"], "Hello from NotificationCenter!")
# Send a Telegram photo
notifications.send_telegram_photo(["chat_id"], "https://example.com/photo.jpg", "Check out this photo!")
# Send a Telegram document
notifications.send_telegram_document(["chat_id"], "https://example.com/document.pdf", "Important Document")
Raw data
{
"_id": null,
"home_page": "",
"name": "ma-notification-center",
"maintainer": "",
"docs_url": null,
"requires_python": "",
"maintainer_email": "",
"keywords": "",
"author": "Fatima Medlij",
"author_email": "medlijfatima@gmail.com",
"download_url": "https://files.pythonhosted.org/packages/73/12/192faa0eda78471c9570b4eb0dd59501564dd3b53360e2d233e1afddcea5/ma_notification_center-2.1.1.tar.gz",
"platform": null,
"description": "ma_notification_center\r\n\r\nma-notifications is a Python package that provides a notification center for sending various types of notifications.\r\n\r\n## Installation\r\n\r\nYou can install ma-notification-center using pip:\r\n```python\r\npip install ma_notification_center\r\n```\r\n\r\n## Usage\r\nHere's an example of how to use ma-notification-center:\r\n\r\n```python\r\nfrom ma_notification_center import notificationcenter\r\nnotifications = notificationcenter.Notifications()\r\n\r\n# Send an email\r\nnotifications.send_email(\r\n to_emails=[\"recipient1@example.com\"],\r\n cc_emails=[\"recipient2@example.com\"],\r\n bcc_emails=[],\r\n subject=\"Notification\",\r\n body_text=\"This is a notification email.\",\r\n body_html=\"<p>This is a notification email.</p>\"\r\n)\r\n\r\n# Send a Telegram message\r\nnotifications.send_telegram([\"chat_id\"], \"Hello from NotificationCenter!\")\r\n\r\n# Send a Telegram photo\r\nnotifications.send_telegram_photo([\"chat_id\"], \"https://example.com/photo.jpg\", \"Check out this photo!\")\r\n\r\n# Send a Telegram document\r\nnotifications.send_telegram_document([\"chat_id\"], \"https://example.com/document.pdf\", \"Important Document\")\r\n\r\n\r\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "MobileArts Notification Center Package",
"version": "2.1.1",
"project_urls": null,
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "d0d7840de1c067626cd3998bbd50093d09a9f07e50609803887853b2fa1f59ea",
"md5": "3751e20f4b60913cbbfd0f0bf867314c",
"sha256": "8132247a949dd228bb1eb9cb6d71bed954521b96f5429630465db21b111d4097"
},
"downloads": -1,
"filename": "ma_notification_center-2.1.1-py3-none-any.whl",
"has_sig": false,
"md5_digest": "3751e20f4b60913cbbfd0f0bf867314c",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": null,
"size": 4319,
"upload_time": "2023-06-14T07:13:15",
"upload_time_iso_8601": "2023-06-14T07:13:15.434053Z",
"url": "https://files.pythonhosted.org/packages/d0/d7/840de1c067626cd3998bbd50093d09a9f07e50609803887853b2fa1f59ea/ma_notification_center-2.1.1-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "7312192faa0eda78471c9570b4eb0dd59501564dd3b53360e2d233e1afddcea5",
"md5": "480d9a22004595b4f49482d7c80715ef",
"sha256": "38b9923992aef376f12e374e3926c86b4dfceadfc7125ed609466f2b1f246d7a"
},
"downloads": -1,
"filename": "ma_notification_center-2.1.1.tar.gz",
"has_sig": false,
"md5_digest": "480d9a22004595b4f49482d7c80715ef",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 3703,
"upload_time": "2023-06-14T07:13:17",
"upload_time_iso_8601": "2023-06-14T07:13:17.815740Z",
"url": "https://files.pythonhosted.org/packages/73/12/192faa0eda78471c9570b4eb0dd59501564dd3b53360e2d233e1afddcea5/ma_notification_center-2.1.1.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-06-14 07:13:17",
"github": false,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"lcname": "ma-notification-center"
}