skip to navigation
skip to content

Flask-Sendwithus 1.0.2

Forwards-compatible Flask extension to interact with the sendwithus API

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.

 
File Type Py Version Uploaded on Size
Flask-Sendwithus-1.0.2.tar.gz (md5) Source 2016-10-01 2KB
Flask_Sendwithus-1.0.2-py2.py3-none-any.whl (md5) Python Wheel 3.5 2016-10-01 4KB