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.4.tar.gz (7.3 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.4-py3-none-any.whl (8.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pattan_sendgrid-2.0.4.tar.gz
  • Upload date:
  • Size: 7.3 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.4.tar.gz
Algorithm Hash digest
SHA256 5952e1560672266f575573daaab29c4959c4f7ac38f19f54c6d29241ca3e8531
MD5 95366e97844409ce6f9c377e8fc936c0
BLAKE2b-256 eb56019a0cc8693f6c9c8bbf36538cae8f6c84ac0fa1cb42e402104103f4a715

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pattan_sendgrid-2.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 7cf9b38a88b7c39e0d4db3540d9d1c164d9b1b45588f03ab2e5a7e92f8995cbd
MD5 04fb8a688985ee4641db711096f3c064
BLAKE2b-256 f66410273b4f253e92ac9240a9b5cbf11e2ca11d6d91c71996c06e93fff7ab5a

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