All Projects → hasibzunair → pynotify

hasibzunair / pynotify

Licence: other
A Python package to send emails like humans.

Programming Languages

Jupyter Notebook
11667 projects
python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to pynotify

google-photos-exif
A tool to populate missing `DateTimeOriginal` EXIF metadata in Google Photos takeout, using Google's JSON metadata.
Stars: ✭ 288 (+1271.43%)
Mutual labels:  utility
Isometry
📦 Sketch plugin that allows to create isometric projections from layers
Stars: ✭ 18 (-14.29%)
Mutual labels:  utility
YetAnotherKeyDisplayer
The application for displaying pressed keys of the keyboard
Stars: ✭ 88 (+319.05%)
Mutual labels:  utility
bat
Battery management utility for Linux laptops.
Stars: ✭ 107 (+409.52%)
Mutual labels:  utility
cypress-angularjs-unit-test
Unit test Angularjs code using Cypress.io test runner
Stars: ✭ 23 (+9.52%)
Mutual labels:  utility
sc2gears
The COMPLETE (!) source code of the Sc2gears universe (Sc2gears app + Sc2gears Database + web-based parsing engine - bundled in an Eclipse project).
Stars: ✭ 30 (+42.86%)
Mutual labels:  utility
pino-caller
🌲 Include call site of pino log messages
Stars: ✭ 35 (+66.67%)
Mutual labels:  utility
groupby
Group lines by a regex
Stars: ✭ 14 (-33.33%)
Mutual labels:  utility
smcutil
SMC utility for modifying and examining Apple's SMC payloads.
Stars: ✭ 30 (+42.86%)
Mutual labels:  utility
MentalGL
Single header OpenGL utility library in the public domain
Stars: ✭ 20 (-4.76%)
Mutual labels:  utility
l2cu
L²CU: LDraw Linux Command line Utility
Stars: ✭ 14 (-33.33%)
Mutual labels:  utility
redtimer
RedTimer - Redmine Time Tracker
Stars: ✭ 59 (+180.95%)
Mutual labels:  utility
pv
Unix Pipe Viewer (pv) utility in Node.js
Stars: ✭ 20 (-4.76%)
Mutual labels:  utility
deno-debug
Debugging utility for deno. Ported from https://npmjs.com/debug
Stars: ✭ 15 (-28.57%)
Mutual labels:  utility
Pagination-Utils
A collection of methods to make message pagination with JDA easier.
Stars: ✭ 20 (-4.76%)
Mutual labels:  utility
Email-Spammer
Great script for sending and spaming emails! gmail, yahoo, outlook, hotmail.
Stars: ✭ 79 (+276.19%)
Mutual labels:  email-sender
Shadbot
A configurable multipurpose bot bringing you music, multiplayer games, moderation commands and more!
Stars: ✭ 48 (+128.57%)
Mutual labels:  utility
pyGroff
laTEX is awesome but we are lazy -> groff with markdown syntax and inline code execution
Stars: ✭ 25 (+19.05%)
Mutual labels:  utility
xbytes
Parse bytes to human readable sizes (4747) → ('4.75 KB') and vice versa.
Stars: ✭ 17 (-19.05%)
Mutual labels:  utility
Resource Monitor
Resource_Monitor is a GNOME Shell extension that Monitor the use of system resources like cpu, ram, disk, network and display them in GNOME Shell top bar.
Stars: ✭ 62 (+195.24%)
Mutual labels:  utility

pynotify

A Python package built to send email notifications which can be integrated into any existing piece of python software.

Features

Sends a simple email with a subject and a message body.

send_email(destinaiton, subject=" ", msg=" "):
    '''
    Arguements:
        destination: Takes in destionation email of type string
        subject(optional arguement): Takes in a string as an input (Default arg: None)
        msg(optional arguement): Takes in a message of type string as input (Default arg: None)
    '''

Sends an email with attachment(s) included.

send_email_with_attachment(destination, files, sub="Subject", text= "No text"):
    '''
    Arguements:
        destination: Takes in destionation email of type string
        files: Take in a list of strings as input
        sub(optional arguement): Takes in a string as an input (default arg empty)
        text(optional arguement): Takes in a message of type string as input (default arg empty)
    '''

Usage

Make sure you have Python 3.6 or 3.7 installed. Then, import the library from TestPyPi (Test Python Packaging Index)

pip install -i https://test.pypi.org/simple/ pynotify

A demo script of this in action is shown below

from pynotify import send_email, send_email_with_attachment

subject = "Killer Robot"
message = "Hi there!"
dest = "[email protected]" # add your email here

# attachment paths are stored in an array
image = ["cat.jpg"]  # for one file
images = ["cat.jpg", "dog.jpg"] # for multiple files

# sends an email
send_email(dest, "Hello!")

# sends an email with attachements
send_email_with_attachment(dest, images, subject, message)

Takeaways

  • Program written in Python 3.6
  • Nothing here. What did you expect? A cookie!?
  • Need to update dummy google account to less secure if not used for a long time, as google automatically shuts it down!

Author

Made with ❤️ by Hasib Zunair

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].