Forwards-compatible Flask extension to interact with the sendwithus API.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
flask_sendwithus
tests
.gitignore
.travis.yml
CHANGELOG.md
LICENSE
README.md
setup.cfg
setup.py
tox.ini

README.md

Flask-Sendwithus

Travis CI build status (Linux) PyPI version Downloads from PyPI per month License Available as wheel Supported Python versions PyPI status (alpha/beta/stable) codecov.io

About

Forwards-compatible Flask extension to interact with the sendwithus API.

Installation

pip install Flask-Sendwithus

Documentation

Uses the standard extension pattern. Example:

>>> from flask import Flask
>>> from flask_sendwithus import Sendwithus

>>> app = Flask(__name__)
>>> app.config['SENDWITHUS_API_KEY'] = 'YOUR-API-KEY'
>>> sendwithus = Sendwithus()
>>> sendwithus.init_app(app)
>>> r = sendwithus.send(
    email_id='YOUR-EMAIL-ID',
    recipient={'address': 'us@sendwithus.com'})
>>> print(r.status_code)
200

See the official python client's documentation for further info on what methods are available. All methods found on the sendwithus.api instance is proxied on the Flask-Sendwithus's instance.