Skip to main content

Send emails on command line.

Project description

Pylio

Send email messages through a specified Gmail account.

Getting Started

  1. Download Pylio and its dependancies pip install pylio

  2. Turn on Gmail API by clicking Enable Gmail API on Gmail

    1. Select + Create a new project.
    2. Download the credentials file to access your Gmail account.
    3. Move the downloaded file to your working directory and ensure it is named credentials.json.
      You can also specify the location of credentials.json either in config.yaml or using the --cred-file flag.
  3. From command line: use pylio with the below arguments. Default arguments will come from the config.yaml unless otherwise stated.

    Command line override arguments:
    --to email_address email address of intented recepient
    --message msg_body text body of email
    --config-file path (optional) path to custom configuration file; default is config.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

2018 (c) Xavier Collantes

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pylio-0.0.1.tar.gz (1.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pylio-0.0.1-py3-none-any.whl (9.0 kB view details)

Uploaded Python 3

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

Hashes for pylio-0.0.1.tar.gz
Algorithm Hash digest
SHA256 6d1cb656e6c192493d1357185c4417c24c779cace26df1a78f614aa0b75a40ca
MD5 eff67c9b7431d2803ad3ba2cacdd22ac
BLAKE2b-256 442967e1396a68495790dcbb552153c594719b5a32df6d49a488f5354ce3891d

See more details on using hashes here.

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

Hashes for pylio-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 e7be5caea4f5ec31a00c4d6f2d42940185430187ef47b2622828025dc0fb3271
MD5 7a668e55af0e9d2d2a79f49eff9dc01e
BLAKE2b-256 eda437b30905fbcdc63ab21c3056c8b80747fe8c6c97394fddd16a3f1df96285

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page