Python script 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=f'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 Reader
Licensed under the MIT License
Change Log
0.0.14 (07/18/2021)
- Delete broken releases
- Modify and update CHANGELOG
- Change URL for HomePage
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.14.tar.gz
(11.4 kB
view hashes)
Built Distribution
Close
Hashes for gmail_connector-0.0.14-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 29db00d19689774f6309188f2c5f85aec55d308d28f4495a07302c72bc64f630 |
|
MD5 | a3d7d1745c7c6a44698c68b4d4f0c848 |
|
BLAKE2b-256 | 7b87ea87e31e585fd7d0ae598e9dbd76fdf4c618917df390b1ed0c7921a44aed |