semvec/pypi-packages huggingface dataset:
incuna-mail 4.1.1
Pythonic utility for sending template based emails with Django.
License: MIT

# Incuna Mail  [![Build Status](https://travis-ci.org/incuna/incuna-mail.svg?branch=i5-add-tests)](https://travis-ci.org/incuna/incuna-mail)  [![Coverage Status](https://img.shields.io/coveralls/incuna/incuna-mail.svg)](https://coveralls.io/r/incuna/incuna-mail) [![Wheel Status](https://img.shields.io/pypi/wheel/incuna-mail.svg)](https://pypi.python.org/pypi/incuna-mail/) [![Latest Version](https://img.shields.io/pypi/v/incuna-mail.svg)](https://pypi.python.org/pypi/incuna-mail/)

Pythonic utility for sending template based emails with Django.

## Installation
Install the package:

    pip install incuna_mail


## Usage
Import the `send` function and call it:

```python
from incuna_mail import send

send(
    to='foo@example.com',
    subject='Example email',
    template_name='plaintext_email.txt',
)
```

Supports `cc` and `bcc`...

```python
send(
    to='foo@example.com',
    cc='bar@example.com',
    bcc='baz@example.com',
    ...
)
```

... lists of recipients...

```python
send(
    to=['foo@example.com', 'bar@example.com'],
    cc=['spam@example.com', 'eggs@example.com'],
    ...
)
```

... multi-part emails...

```python
send(
    ...
    template_name='plaintext_email.txt',
    html_template_name='html_email.html',
)
```

... template context...

```python
send(
    ...
    context={'user': user},
)
```

... template lists...

```python
send(
    ...
    # Uses the first template found.
    template_name=['might-exist.html', 'will-exist.html'],
)
```

... reply-to addresses...

```python
send(
    ...
    reply_to=['another@example.com'],
)
```

... and custom email headers:

```python
send(
    ...
    headers={'Extra-Header': 'This will appear among the email headers'}
)
```

The email sender can be set globally with `settings.DEFAULT_FROM_EMAIL`, and will default to `settings.SERVER_EMAIL`. It can be explicitly set on each call, if required:

```python
send(
    ...
    sender='eggy-mcspambot@example.com',
)
```
platonic-queue 0.2.0
Abstract acknowledgement queue concept, implemented over multiple backends.
License: MIT
Requires Python: >=3.6,<4.0

# platonic-queue

[![Build Status](https://travis-ci.com/platonic/platonic-queue.svg?branch=master)](https://travis-ci.com/platonic/platonic-queue)
[![Coverage](https://coveralls.io/repos/github/platonic/platonic-queue/badge.svg?branch=master)](https://coveralls.io/github/platonic/platonic-queue?branch=master)
[![Python Version](https://img.shields.io/pypi/pyversions/platonic-queue.svg)](https://pypi.org/project/platonic-queue/)
[![wemake-python-styleguide](https://img.shields.io/badge/style-wemake-000000.svg)](https://github.com/wemake-services/wemake-python-styleguide)

People do not program in terms of SQS, tables, and bytes. People program in concepts.  

Abstract acknowledgement queue concept, implemented over multiple backends.


## Installation

```bash
pip install platonic-queue
```


## Example

Showcase how your project can be used:

```python
from platonic_queue.sqs import SQSBaseQueue

class NumbersQueue(SQSBaseQueue[int]):
    """Sending numbers."""
    url = '...'   # SQS queue URL

    serialize =   str   # type: ignore
    deserialize = int   # type: ignore

queue = NumbersQueue()
queue.put(5)
queue.get()
# 5
```

## License

[MIT](https://github.com/platonic/platonic-queue/blob/master/LICENSE)


## Credits

This project was generated with [`wemake-python-package`](https://github.com/wemake-services/wemake-python-package). Current template version is: [5dc9d4e0e082ab012a399856368212745f40ed4f](https://github.com/wemake-services/wemake-python-package/tree/5dc9d4e0e082ab012a399856368212745f40ed4f). See what is [updated](https://github.com/wemake-services/wemake-python-package/compare/5dc9d4e0e082ab012a399856368212745f40ed4f...master) since then.