Python module to, send SMS, emails and read unread emails.
Project description
Gmail Connector
Pypi Module
https://pypi.org/project/gmail-connector/
Usage
pip install gmail-connector
from os import environ
from gmailconnector.send_sms import Messenger
# noinspection PyTypeChecker
messenger = Messenger(
gmail_user=environ.get('gmail_user'),
gmail_pass=environ.get('gmail_pass'),
phone_number=environ.get('phone'),
message='Test SMS using gmail-connector'
)
print(messenger.send_sms())
from os import environ
from pathlib import PurePath
from gmailconnector.send_email import SendEmail
email_obj = SendEmail(
gmail_user=environ.get('gmail_user'),
gmail_pass=environ.get('gmail_pass'),
recipient=environ.get('recipient'),
subject='Howdy!',
attachment=PurePath(__file__).name,
body='Attached is the code that generated this very email',
sender=None
)
print(email_obj.send_email())
from os import environ
from gmailconnector.read_email import ReadEmail
ReadEmail(
gmail_user=environ.get('gmail_user'),
gmail_pass=environ.get('gmail_pass')
).read_email()
Pre-Commit
Install pre-commit
to run flake8
and isort
for linting and sphinx
for documentation generator.
pip3 install pre-commit==2.13.0 Sphinx==4.1.1
pre-commit run --all-files
Runbook
https://thevickypedia.github.io/gmail-connector/
License & copyright
© Vignesh Sivanandha Rao, Gmail Connector
Licensed under the MIT License
Change Log
0.0.14 (07/18/2021)
- Delete broken releases
- Modify and update CHANGELOG
- Change URL for HomePage
0.0.15 (07/18/2021)
- Update project description and README.md
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
gmail-connector-0.0.15.tar.gz
(11.4 kB
view hashes)
Built Distribution
Close
Hashes for gmail_connector-0.0.15-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b04da60a71e569cb825fc53ed76078d0b594394f7f9053e3a0b8a7cdbe60e641 |
|
MD5 | 89bb62afa8e6ab1d2a984cf585939027 |
|
BLAKE2b-256 | a5d8c91c27b7b03cc15de0141223cb1e04b984c6997e324b7fb9002596853781 |