Skip to main content

Manage Sendgrid assets

Project description

pattan-sendgrid

pattan-sendgrid is a Python package that wraps the sendgrid package with PaTTAN-specific configurations.

Quick start

  1. Installation (bash):
    pip install pattan-sendgrid
  2. Create an environment variable SENDGRID_API_KEY and set its value to your SendGrid API key:
    export SENDGRID_API_KEY={your SENDGRID_API_KEY}
  3. Generate the config the package uses by redirecting the output of the gc command to a file or copy/paste to a file. Keep this file out of version control as it will include your SendGrid API key (bash):
    pe gc >{your filename}
    If you are using Django, the project's .env is a good place for this value.
  4. Use the output from the command in step 3 to initialize the PattanEmail class (bash):
    from pattan_sendgrid import PattanEmail
     ...
    emailer = PattanEmail({command output from step 3})
    

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.2.0.tar.gz (7.8 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.2.0-py3-none-any.whl (8.4 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for pattan_sendgrid-2.2.0.tar.gz
Algorithm Hash digest
SHA256 f58f99613376018b0623a02e571ce0e376653b068d38a4dabe5724e117f79630
MD5 fe0c571c941176fede718f106ef4661d
BLAKE2b-256 a9c890640d3d1d84b5f7615194ce06315fbabd92c725f86b83f2d3d5d252e11b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pattan_sendgrid-2.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 fcc073cb03fd860c9347a571d99732932e5f3847dcce768b74b966457bb765b7
MD5 07e3016a1e4fc074935f0b98c8fe595d
BLAKE2b-256 3207e014e37580d2d46eb14f5d8bc2086bd05176189749d7642b0deab51568c1

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