Skip to main content

mailjet is a django app to implement the mailjet REST API

Project description


mailjet is a library to access the Mailjet REST API.


To install simply execute python install.

The settings can be configured from a Django settings file through MAILJET_API_KEY and MAILJET_SECRET_KEY. Or through environment variables the same name.


export MAILJET_API_KEY=something
export MAILJET_SECRET_KEY=something_else


To fetch data:

>>> import mailjet
>>> print mailjet.Api().user.infos()
    u'status': u'OK',
    u'infos': {
        u'username': u'',
        u'firstname': u'firstname',
        u'locale': u'en_US',
        u'lastname': u'lastname',
        u'company_name': u'company_name',
        u'contact_phone': None,

To put data:

>>> import mailjet
>>> api = mailjet.Api()
>>> list_ = api.lists.create(label='Test', name='test')
>>> print list_
{u'status': u'OK', u'list_id': ...}
>>> print api.user.addcontact(

Download files

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

Source Distribution

mailjet-1.0.tar.gz (3.9 kB view hashes)

Uploaded source

Built Distribution

mailjet-1.0-py2.7.egg (10.2 kB view hashes)

Uploaded 2 7

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page