Skip to main content

control mailgun account using cli and python api

Project description

mailgun-cli

control mailgun account using cli and python api

Features

  • easily create routes for 1-on-1 forwarding mail using a csv file or Google Spreadsheet

Usages

CLI

set the mailgun api key

# bash shell
$ export MAILGUN_API_KEY [your private API key]
# fish shell
$ set -X MAILGUN_API_KEY [your private API key]

You could permanently set it in ~/.bash_profile or ~/.config/fish/config.fish

list all routes

$ mailgun routes

forward using a csv

$ mailgun forward "https://docs.google.com/spreadsheets/d/e/2PACX-1vQX-8YPc7Dja4jn3u0E5MzGdEOPxB9OEI2kDzO_7c-CLpGQ5g8LdPO2W9f6tETrVyBBZvWx3qNAMwPa/pub?output=csv"

install

$ pip install mailgun-cli 

✨🍰✨

Forward templete

Google Spreadsheet, Here is a templete.

  1. First publish your Google sheet to the web by going to File > Publish to the web...
  2. Choose the tab you want, then select Comma-separated values (.csv) as the export format
  3. Grab the URL

Learning Path

  1. https://codingdose.info/2018/08/02/develop-and-publish-with-poetry/

Project details


Download files

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

Files for mailgun-cli, version 0.1.9
Filename, size File type Python version Upload date Hashes
Filename, size mailgun_cli-0.1.9-py3-none-any.whl (7.3 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size mailgun-cli-0.1.9.tar.gz (4.1 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page