Skip to main content

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})
    

Development

Run the test suite from the project root (no SendGrid API key or network access is needed; the SendGrid client is faked):

python -m unittest discover -s tests

Resources

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

Metadata

Release files for pattan-sendgrid 3.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pattan-sendgrid 3.1.0
File Size Uploaded Provenance Actions
pattan_sendgrid-3.1.0.tar.gz 12.5 kB Without provenance Details for pattan_sendgrid-3.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for pattan-sendgrid 3.1.0
File Interpreter ABI Platform Actions
pattan_sendgrid-3.1.0-py3-none-any.whl Python 3 none any Details for pattan_sendgrid-3.1.0-py3-none-any.whl

Total release size: 21.5 kB

Release files / pattan_sendgrid-3.1.0.tar.gz

Download URL pattan_sendgrid-3.1.0.tar.gz
Size 12.5 kB
Tags Source
SHA-256 checksum
How to use checksums
93566c0a529c9ccab20305dbbc9ac196273934724bcf3706977a7b98914e6fa8
BLAKE2b-256 checksum
How to use checksums
7a757b21f28cdb695040adf21bd451fa27a001b9bedb678317bb059db7925707
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.10.7

Release files / pattan_sendgrid-3.1.0-py3-none-any.whl

Download URL pattan_sendgrid-3.1.0-py3-none-any.whl
Size 9.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4b4c925c7ab5abcebe355bf2290df723460f005406ea1f615ac20a98f6930350
BLAKE2b-256 checksum
How to use checksums
b35a5693fe6613956d5624f51758f8aafe379deba0ea8fa1cdfe70d359e024aa
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.10.7

Security for pattan-sendgrid 3.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

3.1.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page