Skip to main content

Manage 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.1.0.tar.gz (7.5 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.1.0-py3-none-any.whl (8.3 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for pattan_sendgrid-2.1.0.tar.gz
Algorithm Hash digest
SHA256 b147816407ca1f93f763efa367c5d8191ccaf8720909b692c50e3e6c99852671
MD5 8f4699638c93156a292f4971f1d7b78d
BLAKE2b-256 347fb2cc098ad7989a0897d4362e85e537c83e9612c222e58d3719d3af7c481d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pattan_sendgrid-2.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 90bd0e4618d285122af8f6d76cbed234b4d4d3454b889cc3ca9e1e984c2e2e8f
MD5 9ae7be1368603a8ae765119122efd3b9
BLAKE2b-256 ade4dcaeda337cabe4611bb14c8c5bc930f7e754b351f4e59633a990351882a1

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