Send emails on command line.
Project description
Pylio
Send email messages through a specified Gmail account.
Getting Started
-
Download Pylio and its dependancies
pip install pylio -
Turn on Gmail API by clicking Enable Gmail API on Gmail
- Select + Create a new project.
- Download the credentials file to access your Gmail account.
- Move the downloaded file to your working directory and ensure it is named
credentials.json.
You can also specify the location ofcredentials.jsoneither inconfig.yamlor using the--cred-fileflag.
-
From command line: use
pyliowith the below arguments. Default arguments will come from theconfig.yamlunless otherwise stated.
Command line override arguments:
--to email_addressemail address of intented recepient
--message msg_bodytext body of email
--config-file path(optional) path to custom configuration file; default isconfig.yaml
--cred-file path(optional) path to Google Gmail credentials JSON file
--subject subject_line(optional) subject line of email
Contents
config.yaml Default configuration file to specify to, message, and Google credentials file
PylioMail.py Class using Google API
setup.py pip file
How does it work?
This repository is a wrapper that simplifies the use of the Google Gmail API.
Troubleshooting
- Check if authorization is enabled: Google Authorization
- Make sure
https://www.googleapis.com/auth/gmail.sendis chosen in authorization.
2018 (c) Xavier Collantes
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pylio-0.0.1.tar.gz.
File metadata
- Download URL: pylio-0.0.1.tar.gz
- Upload date:
- Size: 1.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.20.1 setuptools/40.6.2 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6d1cb656e6c192493d1357185c4417c24c779cace26df1a78f614aa0b75a40ca
|
|
| MD5 |
eff67c9b7431d2803ad3ba2cacdd22ac
|
|
| BLAKE2b-256 |
442967e1396a68495790dcbb552153c594719b5a32df6d49a488f5354ce3891d
|
File details
Details for the file pylio-0.0.1-py3-none-any.whl.
File metadata
- Download URL: pylio-0.0.1-py3-none-any.whl
- Upload date:
- Size: 9.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.20.1 setuptools/40.6.2 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e7be5caea4f5ec31a00c4d6f2d42940185430187ef47b2622828025dc0fb3271
|
|
| MD5 |
7a668e55af0e9d2d2a79f49eff9dc01e
|
|
| BLAKE2b-256 |
eda437b30905fbcdc63ab21c3056c8b80747fe8c6c97394fddd16a3f1df96285
|