All Projects → Stranger6667 → Postmarker

Stranger6667 / Postmarker

Licence: mit
Python client library for Postmark API

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to Postmarker

Inboxen
Main repo for Inboxen.org
Stars: ✭ 218 (+175.95%)
Mutual labels:  django, emails
Django Blog Python Learning
For newest version https://github.com/agusmakmun/python.web.id
Stars: ✭ 77 (-2.53%)
Mutual labels:  django
Django Admin Material
A Django Admin interface based on Material Design by Google
Stars: ✭ 74 (-6.33%)
Mutual labels:  django
Django Cloudinary Storage
Django package that provides Cloudinary storages for both media and static files as well as management commands for removing unnecessary files.
Stars: ✭ 76 (-3.8%)
Mutual labels:  django
Openedx Docker
🐳 A best practice Docker image of Open edX
Stars: ✭ 74 (-6.33%)
Mutual labels:  django
Ascii Generator.site
Django website for generating ASCII-arts out of images or text 🎨
Stars: ✭ 77 (-2.53%)
Mutual labels:  django
Pyarweb
El sitio web de Python Argentina
Stars: ✭ 73 (-7.59%)
Mutual labels:  django
The Complete Guide To Drf And Vuejs
📢 Source Code from my Web Dev Course *The Complete Guide To Django REST Framework and Vue JS* (Lang: English & Italian)
Stars: ✭ 78 (-1.27%)
Mutual labels:  django
Generator Django Rest
Yeoman generator for a Django REST/GraphQL API, an optional React SPA & lots more!
Stars: ✭ 77 (-2.53%)
Mutual labels:  django
Microsite
Full featured and completely customizable django site for organizations.
Stars: ✭ 75 (-5.06%)
Mutual labels:  django
Django Helpdesk
A Django application to manage tickets for an internal helpdesk. Formerly known as Jutda Helpdesk.
Stars: ✭ 1,198 (+1416.46%)
Mutual labels:  django
Openstax Cms
The OpenStax CMS, built using Wagtail on top of Django.
Stars: ✭ 74 (-6.33%)
Mutual labels:  django
Pyreportjasper
Python Reporting with JasperReports
Stars: ✭ 77 (-2.53%)
Mutual labels:  django
Weixin demo
微信小程序后端开发demo,包括获取openid、微信支付(统一下单、支付回调、企业付款
Stars: ✭ 74 (-6.33%)
Mutual labels:  django
Crispy Forms Foundation
Django application to add 'django-crispy-forms' layout objects for Foundation
Stars: ✭ 77 (-2.53%)
Mutual labels:  django
See
基于开源组件(Inception & SQLAdvisor & SOAR)的SQL审核&SQL优化的Web平台
Stars: ✭ 1,187 (+1402.53%)
Mutual labels:  django
Django Suit Dashboard
Create a dashboard within Django admin interface.
Stars: ✭ 75 (-5.06%)
Mutual labels:  django
Generic django project
starting point for a new Django site (with FeinCMS, deployable on Nginx using Fabric)
Stars: ✭ 76 (-3.8%)
Mutual labels:  django
Liquid dl
Liquid-dl is a simple tool for utlities such as FFMPEG, youtube-dl, and scdl. It provides a simple framework with simple point and click options allowing users to just click on what they need and use the bare minimum commands to get the results needed.
Stars: ✭ 78 (-1.27%)
Mutual labels:  django
Codingwithmitchblog Rest Api
A continuation of the CodingWithMitchBlog course. Adding a REST API using Django REST-framework
Stars: ✭ 78 (-1.27%)
Mutual labels:  django

Postmarker

|Build| |Coverage| |Version| |Python versions| |Docs| |Chat| |License|

Python client library for Postmark API <http://developer.postmarkapp.com/developer-api-overview.html>_.

Gitter: https://gitter.im/Stranger6667/postmarker

Installation

Postmarker can be obtained with pip::

$ pip install postmarker

Usage example

NOTE:

The attributes of all classes are provided as is, without transformation to snake case. We don't want to introduce new names for existing entities.

Send single email:

.. code-block:: python

>>> from postmarker.core import PostmarkClient
>>> postmark = PostmarkClient(server_token='API_TOKEN')
>>> postmark.emails.send(
    From='[email protected]',
    To='[email protected]',
    Subject='Postmark test',
    HtmlBody='<html><body><strong>Hello</strong> dear Postmark user.</body></html>'
)

Send batch:

.. code-block:: python

>>> postmark.emails.send_batch(
    {
        'From': '[email protected]',
        'To': '[email protected]',
        'Subject': 'Postmark test',
        'HtmlBody': '<html><body><strong>Hello</strong> dear Postmark user.</body></html>',
    },
    {
        'From': '[email protected]',
        'To': '[email protected]',
        'Subject': 'Postmark test 2',
        'HtmlBody': '<html><body><strong>Hello</strong> dear Postmark user.</body></html>',
    }
)

Setup an email:

.. code-block:: python

>>> email = postmark.emails.Email(
    From='[email protected]',
    To='[email protected]',
    Subject='Postmark test',
    HtmlBody='<html><body><strong>Hello</strong> dear Postmark user.</body></html>'
)
>>> email['X-Accept-Language'] = 'en-us, en'
>>> email.attach('/home/user/readme.txt')
>>> email.attach_binary(content=b'content', filename='readme.txt')
>>> email.send()

There are a lot of features available. Check it out in our documentation! Here's just a few of them:

  • Support for sending Python email instances.
  • Bounces, Domains, Messages, Templates, Sender signatures, Status, Stats & Server API.
  • Django email backend.
  • Tornado helper.
  • Spam check API.
  • Wrappers for Bounce, Inbound, Open and Delivery webhooks.

Documentation

You can view the documentation online at:

Or you can look at the docs/ directory in the repository.

Python support

Postmarker supports Python 3.6 - 3.9 and PyPy3.

Thanks

Many thanks to Shmele <https://github.com/butorov>_ and lobziik <https://github.com/lobziik>_ for their reviews and advices :)

.. |Build| image:: https://github.com/Stranger6667/postmarker/workflows/build/badge.svg :target: https://github.com/Stranger6667/postmarker/actions .. |Coverage| image:: https://codecov.io/github/Stranger6667/postmarker/coverage.svg?branch=master :target: https://codecov.io/github/Stranger6667/postmarker?branch=master .. |Version| image:: https://img.shields.io/pypi/v/postmarker.svg :target: https://pypi.org/project/postmarker/ .. |Python versions| image:: https://img.shields.io/pypi/pyversions/postmarker.svg :target: https://pypi.org/project/postmarker/ .. |Docs| image:: https://readthedocs.org/projects/postmarker/badge/?version=stable :target: https://postmarker.readthedocs.io/en/stable/ :alt: Documentation Status .. |Chat| image:: https://img.shields.io/gitter/room/Stranger6667/postmarker.svg :target: https://gitter.im/Stranger6667/postmarker :alt: Gitter .. |License| image:: https://img.shields.io/pypi/l/postmarker.svg :target: https://opensource.org/licenses/MIT

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].