Skip to main content

Plenario Mailer Core

https://travis-ci.org/UrbanCCD-UChicago/plenario-mailer-core.svg?branch=master https://coveralls.io/repos/github/UrbanCCD-UChicago/plenario-mailer-core/badge.svg?branch=master

Usage

This package has a handful of useful shortcuts to send informational emails to data set contributors and admins. The functions can be wired up to be used with the data set event signals provided in plenario-core. For example:

from plenario_core.signals import data_set_approved
from plenario_core_mailer import mailer

def notify_approval(meta_model: MetaBase) -> None:
    mailer.send_data_set_approved(meta_model)

data_set_approved.connect(notify_approval)

Now, when a data set is marked as approved, plenario-core will fire off the signal and the defined handler will pick it up and call the mailer function.

Development

Fire up a virtualenv and install the dev requirements:

$ python3.6 -m venv .env
$ source .env/bin/activate
$ pip install -r dev-requirements.txt

To run the tests, in a separate terminal pull in the PostGIS docker image and create the database:

$ docker pull mdillon/postgis
$ docker run -d -p 5432:5432 mdillon/postgis
$ docker ps
...
$ docker exec -it {container hash} /bin/bash
...
# su postgres -c psql
...
> create database plenario;

Then all you have to do is run the tests normally:

$ coverage run manage.py test
$ coverage report
$ flake8

Metadata

Release files for plenario-mailer-core 0.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for plenario-mailer-core 0.0.2
File Interpreter ABI Platform
plenario_mailer_core-0.0.2-py3-none-any.whl Python 3 none any Details

Release files / plenario_mailer_core-0.0.2-py3-none-any.whl

Download URL plenario_mailer_core-0.0.2-py3-none-any.whl
Size 10.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
32c29966387010b1b4c101f5f42fa9bc83932dcbbcbbac873934efd56f6c1c28
BLAKE2b-256 checksum
How to use checksums
2db1274342f537dc8d984e89f7ae9e079bf2b0410ee1fb4137309ae0032d647d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for plenario-mailer-core 0.0.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.0.2 This release

1 release file No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page