Manage Sendgrid assets
Project description
pattan-sendgrid
pattan-sendgrid is a Python package that wraps the sendgrid package with PaTTAN-specific configurations.
Quick start
- Installation (bash):
pip install pattan-sendgrid - Create an environment variable SENDGRID_API_KEY and set its value to your SendGrid API key:
export SENDGRID_API_KEY={your SENDGRID_API_KEY} - 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. - 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
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)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f58f99613376018b0623a02e571ce0e376653b068d38a4dabe5724e117f79630
|
|
| MD5 |
fe0c571c941176fede718f106ef4661d
|
|
| BLAKE2b-256 |
a9c890640d3d1d84b5f7615194ce06315fbabd92c725f86b83f2d3d5d252e11b
|
File details
Details for the file pattan_sendgrid-2.2.0-py3-none-any.whl.
File metadata
- Download URL: pattan_sendgrid-2.2.0-py3-none-any.whl
- Upload date:
- Size: 8.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fcc073cb03fd860c9347a571d99732932e5f3847dcce768b74b966457bb765b7
|
|
| MD5 |
07e3016a1e4fc074935f0b98c8fe595d
|
|
| BLAKE2b-256 |
3207e014e37580d2d46eb14f5d8bc2086bd05176189749d7642b0deab51568c1
|