notify-mi


Namenotify-mi JSON
Version 1.0.3 PyPI version JSON
download
home_pagehttps://github.com/Amark18/notify_mi
SummaryNotify Mi simplifies sending yourself text and email notifcations from your personal projects by utilizing your gmail account.
upload_time2022-12-14 02:41:37
maintainer
docs_urlNone
authorAmar Khanshali
requires_python>=3
license
keywords sms mms email text-notifications email-notifications gmail-smtp file-attachment
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            ## Notify Mi
🔔 Notify Mi simplifies sending yourself text and email notifications from your personal projects by utilizing your gmail account. It is a convenient and cost-effective solution with the goal of providing you an `easy` and `free` way to send messages in response to events.

Notify Mi is particularly useful when working with IoT devices. It can allow you to receive messages in response to events such as when a sensor value reaches a certain threshold, when a sensor detects something, when a sensor encounters an error, or when a daily or custom timed event occurs. This makes it easy to keep track of what is happening with your IoT device and react to any change or issue that may arise.

With Notify Mi, you can also `attach a file` with your text or email message. The maximum file size allowed is 1 MB and you can use any of the 69 supported [file types](https://github.com/Amark18/notify_mi/blob/c9078313de1ea406ef087217ab11ceddc85d4968/src/notify_mi/helper.py#L64), thus providing you flexibility in the type of attachment you want to include in your messages.

### Table of Contents
- [Purpose](#purpose)
- [Getting Started](#getting-started)
- [Usage](#usage)
- [Special Thanks](#special-thanks)

#### Purpose:

Sending notifications through your Gmail account is not a novel idea. Notify Mi is designed to be a `modular` and `reliable` way to send notifications without having to spend time and effort figuring out how to do it each time you want to add this feature to your project. Plus, the implementation process should be straightforward and `take only a couple minutes`. This way, you can focus on other aspects of your project and save time. 

#### Getting Started:

1. Generate an app password for your gmail account by clicking [here](https://myaccount.google.com/apppasswords). 
    - place your gmail address and app password in a tuple like so → ("gmail_address", "app_password")
    - (optional) step by step [guide](https://www.getmailbird.com/gmail-app-password/) on how to generate an app password
    
2. Install Notify Mi

```python
# 2. install notify_mi using pip
pip install notify_mi

# ✔️ That's it, now you are ready to use
```

#### Usage:

###### Import
```python
from notify_mi import notify
```

###### Text messsage Only
```python
# send only a text message
# include phone_number and phone_provider (see providers list below)
# phone number: "(619) 123-4567", "619-123-4567", or "6191234567" (all acceptable)
notify.send_message("Hello World!", 
       ("gmail", "password"), 
       phone_number = "your_number", 
       phone_provider= "your_phone_provider")
```

###### Text + Email
```python
# send text message + email
# include phone_number, phone_provider (see providers list below), and receiver email
# phone number: "(619) 123-4567", "619-123-4567", or "6191234567" (all acceptable)
notify.send_message("Hello World!", 
       ("gmail", "password"), 
       phone_number = "your_number", 
       phone_provider= "your_phone_provider", 
       send_to = "email@gmail.com")
```

###### Email Only
```python
# send only email
# include receiver email
notify.send_message("Hello World!", 
       ("gmail", "password"), 
       send_to = "email@gmail.com")
```

###### Other Parameters
```python
# add a subject line to the message
notify.send_message(subject = "EMERGENCY", 
       message = "No sweets detected in fridge!")

# add a file attachment (69 file types supported)
notify.send_message(subject = "I found it", 
       message = "My dream car", 
       file_attachment = "/path/car.png")

# run without blocking main thread
notify.send_message("Hello World!", 
       threaded = True)
       
# you can re-order any of the parameters
notify.send_message(threaded = True,
       file_attachment = "/path/to/file"
       phone_number = "your_number", 
       phone_provider = "your_phone_provider", 
       send_to = "email@gmail.com",
       sender_credentials = ("gmail", "password"), 
       message = "No sweets detected in fridge!")
```

###### List of Phone Providers
```python
# Select From: 
"AT&T", "Boost Mobile", "C-Spire", "Cricket Wireless", 
"Consumer Cellular", "Google Project Fi", "Metro PCS", 
"Mint Mobile", "Page Plus", "Republic Wireless", "Sprint",
"Straight Talk", "T-Mobile", "Ting", "Tracfone", 
"U.S. Cellular", "Verizon", "Virgin Mobile", and "Xfinity Mobile"
```

#### Special Thanks:
[Alfredo Sequeida](https://github.com/AlfredoSequeida) for writing a detailed [article](https://www.alfredosequeida.com/blog/how-to-send-text-messages-for-free-using-python-use-python-to-send-text-messages-via-email/) and for making a great [video](https://www.youtube.com/watch?v=4-ysecoraKo&t=2s) that went step by step on how to send text messages using python. It was very useful for one of my projects so I am adding to what he did so that other people can find it useful.

Alfredo also made a package named [etext](https://github.com/AlfredoSequeida/etext) so check that out!

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/Amark18/notify_mi",
    "name": "notify-mi",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3",
    "maintainer_email": "",
    "keywords": "sms,mms,email,text-notifications,email-notifications,gmail-smtp,file-attachment",
    "author": "Amar Khanshali",
    "author_email": "akhanshali@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/2d/24/c1c168c379423adf246c11a34e5f16c7b66e1c659dafbd8ddcc98ff784aa/notify_mi-1.0.3.tar.gz",
    "platform": null,
    "description": "## Notify Mi\r\n\ud83d\udd14 Notify Mi simplifies sending yourself text and email notifications from your personal projects by utilizing your gmail account. It is a convenient and cost-effective solution with the goal of providing you an `easy` and `free` way to send messages in response to events.\r\n\r\nNotify Mi is particularly useful when working with IoT devices. It can allow you to receive messages in response to events such as when a sensor value reaches a certain threshold, when a sensor detects something, when a sensor encounters an error, or when a daily or custom timed event occurs. This makes it easy to keep track of what is happening with your IoT device and react to any change or issue that may arise.\r\n\r\nWith Notify Mi, you can also `attach a file` with your text or email message. The maximum file size allowed is 1 MB and you can use any of the 69 supported [file types](https://github.com/Amark18/notify_mi/blob/c9078313de1ea406ef087217ab11ceddc85d4968/src/notify_mi/helper.py#L64), thus providing you flexibility in the type of attachment you want to include in your messages.\r\n\r\n### Table of Contents\r\n- [Purpose](#purpose)\r\n- [Getting Started](#getting-started)\r\n- [Usage](#usage)\r\n- [Special Thanks](#special-thanks)\r\n\r\n#### Purpose:\r\n\r\nSending notifications through your Gmail account is not a novel idea. Notify Mi is designed to be a `modular` and `reliable` way to send notifications without having to spend time and effort figuring out how to do it each time you want to add this feature to your project. Plus, the implementation process should be straightforward and `take only a couple minutes`. This way, you can focus on other aspects of your project and save time. \r\n\r\n#### Getting Started:\r\n\r\n1. Generate an app password for your gmail account by clicking [here](https://myaccount.google.com/apppasswords). \r\n    - place your gmail address and app password in a tuple like so → (\"gmail_address\", \"app_password\")\r\n    - (optional) step by step [guide](https://www.getmailbird.com/gmail-app-password/) on how to generate an app password\r\n    \r\n2. Install Notify Mi\r\n\r\n```python\r\n# 2. install notify_mi using pip\r\npip install notify_mi\r\n\r\n# \u2714\ufe0f That's it, now you are ready to use\r\n```\r\n\r\n#### Usage:\r\n\r\n###### Import\r\n```python\r\nfrom notify_mi import notify\r\n```\r\n\r\n###### Text messsage Only\r\n```python\r\n# send only a text message\r\n# include phone_number and phone_provider (see providers list below)\r\n# phone number: \"(619) 123-4567\", \"619-123-4567\", or \"6191234567\" (all acceptable)\r\nnotify.send_message(\"Hello World!\", \r\n       (\"gmail\", \"password\"), \r\n       phone_number = \"your_number\", \r\n       phone_provider= \"your_phone_provider\")\r\n```\r\n\r\n###### Text + Email\r\n```python\r\n# send text message + email\r\n# include phone_number, phone_provider (see providers list below), and receiver email\r\n# phone number: \"(619) 123-4567\", \"619-123-4567\", or \"6191234567\" (all acceptable)\r\nnotify.send_message(\"Hello World!\", \r\n       (\"gmail\", \"password\"), \r\n       phone_number = \"your_number\", \r\n       phone_provider= \"your_phone_provider\", \r\n       send_to = \"email@gmail.com\")\r\n```\r\n\r\n###### Email Only\r\n```python\r\n# send only email\r\n# include receiver email\r\nnotify.send_message(\"Hello World!\", \r\n       (\"gmail\", \"password\"), \r\n       send_to = \"email@gmail.com\")\r\n```\r\n\r\n###### Other Parameters\r\n```python\r\n# add a subject line to the message\r\nnotify.send_message(subject = \"EMERGENCY\", \r\n       message = \"No sweets detected in fridge!\")\r\n\r\n# add a file attachment (69 file types supported)\r\nnotify.send_message(subject = \"I found it\", \r\n       message = \"My dream car\", \r\n       file_attachment = \"/path/car.png\")\r\n\r\n# run without blocking main thread\r\nnotify.send_message(\"Hello World!\", \r\n       threaded = True)\r\n       \r\n# you can re-order any of the parameters\r\nnotify.send_message(threaded = True,\r\n       file_attachment = \"/path/to/file\"\r\n       phone_number = \"your_number\", \r\n       phone_provider = \"your_phone_provider\", \r\n       send_to = \"email@gmail.com\",\r\n       sender_credentials = (\"gmail\", \"password\"), \r\n       message = \"No sweets detected in fridge!\")\r\n```\r\n\r\n###### List of Phone Providers\r\n```python\r\n# Select From: \r\n\"AT&T\", \"Boost Mobile\", \"C-Spire\", \"Cricket Wireless\", \r\n\"Consumer Cellular\", \"Google Project Fi\", \"Metro PCS\", \r\n\"Mint Mobile\", \"Page Plus\", \"Republic Wireless\", \"Sprint\",\r\n\"Straight Talk\", \"T-Mobile\", \"Ting\", \"Tracfone\", \r\n\"U.S. Cellular\", \"Verizon\", \"Virgin Mobile\", and \"Xfinity Mobile\"\r\n```\r\n\r\n#### Special Thanks:\r\n[Alfredo Sequeida](https://github.com/AlfredoSequeida) for writing a detailed [article](https://www.alfredosequeida.com/blog/how-to-send-text-messages-for-free-using-python-use-python-to-send-text-messages-via-email/) and for making a great [video](https://www.youtube.com/watch?v=4-ysecoraKo&t=2s) that went step by step on how to send text messages using python. It was very useful for one of my projects so I am adding to what he did so that other people can find it useful.\r\n\r\nAlfredo also made a package named [etext](https://github.com/AlfredoSequeida/etext) so check that out!\r\n",
    "bugtrack_url": null,
    "license": "",
    "summary": "Notify Mi simplifies sending yourself text and email notifcations from your personal projects by utilizing your gmail account.",
    "version": "1.0.3",
    "split_keywords": [
        "sms",
        "mms",
        "email",
        "text-notifications",
        "email-notifications",
        "gmail-smtp",
        "file-attachment"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "md5": "987ef43db58c1f97ccafe598daa96168",
                "sha256": "c10b64ce18c8b585b836a75e2e587df2a0f7719626582b7e3c4b397804ab5606"
            },
            "downloads": -1,
            "filename": "notify_mi-1.0.3-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "987ef43db58c1f97ccafe598daa96168",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3",
            "size": 8999,
            "upload_time": "2022-12-14T02:41:35",
            "upload_time_iso_8601": "2022-12-14T02:41:35.079794Z",
            "url": "https://files.pythonhosted.org/packages/ee/45/c3a9d6b363d763737754692fbe54ad51bbe0612bee8f7668da6b5faf8478/notify_mi-1.0.3-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "md5": "113fdd895a4cfc3dc454c9c97135d5bf",
                "sha256": "f9dbb7ff2df64c8890673bb22bf380998d4fc1fd9c35b790a073111dfa49507d"
            },
            "downloads": -1,
            "filename": "notify_mi-1.0.3.tar.gz",
            "has_sig": false,
            "md5_digest": "113fdd895a4cfc3dc454c9c97135d5bf",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3",
            "size": 9968,
            "upload_time": "2022-12-14T02:41:37",
            "upload_time_iso_8601": "2022-12-14T02:41:37.160553Z",
            "url": "https://files.pythonhosted.org/packages/2d/24/c1c168c379423adf246c11a34e5f16c7b66e1c659dafbd8ddcc98ff784aa/notify_mi-1.0.3.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2022-12-14 02:41:37",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "github_user": "Amark18",
    "github_project": "notify_mi",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "notify-mi"
}
        
Elapsed time: 0.01776s