Skip to main content

The Mailosaur Python library lets you integrate email and SMS testing into your continuous integration process.

Project description

Mailosaur Python Client Library

Mailosaur lets you automate email and SMS tests, like account verification and password resets, and integrate these into your CI/CD pipeline.

Installation

pip install --upgrade mailosaur

Documentation

Please see the Python client reference for the most up-to-date documentation.

Usage

example.py

from mailosaur import MailosaurClient
mailosaur = MailosaurClient("YOUR_API_KEY")

result = mailosaur.servers.list()

print("You have a server called: " + result.items[0]["name"])

Development

You must have the following prerequisites installed:

Install all development dependencies:

pip install -r requirements.txt

The test suite requires the following environment variables to be set:

export MAILOSAUR_BASE_URL=https://mailosaur.com/
export MAILOSAUR_API_KEY=your_api_key
export MAILOSAUR_SERVER=server_id

Run all tests:

nosetests

Contacting us

You can get us at support@mailosaur.com

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

mailosaur-7.2.0.tar.gz (15.3 kB view hashes)

Uploaded Source

Built Distribution

mailosaur-7.2.0-py2.py3-none-any.whl (23.3 kB view hashes)

Uploaded Python 2 Python 3

Supported by

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