Skip to main content

Mange Sendgrid assets

Project description

pattan-sendgrid

pattan-sendgrid is a python package that combines the sendgrid package with PaTTAN specific configurations.

Quick start

  1. installation

pip install pattan-sendgrid

  1. Create an environment variable 'SENDGRID_API_KEY' set its value to your sendgrid api key

export SENDGRID_API_KEY="YOUR SENDGRID API KEY"

  1. Generate config by redirecting this output to a file or copy/paste to a file. Keep this file out of your repo as it will contain your sendgrid api key

pe gc

  1. Use the output from the command in step three to initialize the PattanEmail class.

    from pattan_sendgrid import PattanEmail ... emailer = PattanEmail(PATTAN_EMAIL_CONFIG_JSON)

Resources

  1. https://docs.djangoproject.com/en/5.0/intro/reusable-apps/
  2. https://pypi.org/project/sendgrid/

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

pattan_sendgrid-2.0.3.tar.gz (7.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pattan_sendgrid-2.0.3-py3-none-any.whl (8.1 kB view details)

Uploaded Python 3

File details

Details for the file pattan_sendgrid-2.0.3.tar.gz.

File metadata

  • Download URL: pattan_sendgrid-2.0.3.tar.gz
  • Upload date:
  • Size: 7.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.1

File hashes

Hashes for pattan_sendgrid-2.0.3.tar.gz
Algorithm Hash digest
SHA256 d0449524b65f3a2686b384ae6b8b66453d689fe10d4f47eb8261927387a8d933
MD5 079ed94360c46a06f9f2f4bce4563f64
BLAKE2b-256 7f82a3c1dca20491087b7ed875d78e0d8af17ec34fa39f8793c9d5d941be5333

See more details on using hashes here.

File details

Details for the file pattan_sendgrid-2.0.3-py3-none-any.whl.

File metadata

File hashes

Hashes for pattan_sendgrid-2.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 b6abc195fc8085d3366ac4e64dc922452151bb71efe099704e6b9c01d6e1680f
MD5 c245bc381607ef51239ce564ac6340d5
BLAKE2b-256 862d31a7f23df05a12b0ec3a291cb07094a277c6fbae51af3cf138a2859c3384

See more details on using hashes here.

Supported by

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