psusannx_email
A package that allows emails to be sent through a python function using Sendgrid, provided a valid Sendgrid API Key is passed as an argument to the function (sendgrid_api_key).
The docs for using Sendgrid with python can be found here.
This package was created to be used as a subpackage in a wider project - PSUSANNX.
Package Functions
- send_email()
Installation
pip install psusannx-email
Usage
# Import the function from the package
from psusannx_email import send_email
# Get some info about the function
help(send_email)
Now use the function to send an email.
# Send a test email from your own personal email (once you have a sendgrid api key)
send_email(
subject="Test email using the psusannx_email package",
body="This is a test email.\n\nThanks.",
from_email="<your-email>",
recipients=["<recipient-1>", "<recipient-2>"],
sendgrid_api_key="<verified-sendgrid-api-key>"
)
Notes
- The package is quite restricted in what it can do, but it only needs to do things that are required by the parent project so there won't be much development.
- A new feature that will be added is the ability to send emails where the body is html, rather than just plain text.
Metadata
Release files for psusannx-email 0.1.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| psusannx_email-0.1.4.tar.gz | 3.4 kB | Without provenance | Details for psusannx_email-0.1.4.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| psusannx_email-0.1.4-py3-none-any.whl | Python 3 | none | any | Details for psusannx_email-0.1.4-py3-none-any.whl |
Total release size: 7.1 kB
Release files / psusannx_email-0.1.4.tar.gz
| Download URL | psusannx_email-0.1.4.tar.gz |
|---|---|
| Size | 3.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
acbd8c2bb4855c114d608cfdcce0efddc8633c51de385b8097c5dce71405c550
|
|
BLAKE2b-256 checksum How to use checksums |
d1397c779d7602823f87979607b016b9b73fb94f1f17da897504f151d4eaf4b0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.4
|
Release files / psusannx_email-0.1.4-py3-none-any.whl
| Download URL | psusannx_email-0.1.4-py3-none-any.whl |
|---|---|
| Size | 3.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b894818537ad9838ccbd3f8daa2ccf297ebf5cc79c57f5790f132180eaf2ccf6
|
|
BLAKE2b-256 checksum How to use checksums |
2e0acb2020e43c46e2b18ff7e6e53b5c9af865c231eee1efe5f93ed2f079d2e2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.4
|
Security for psusannx-email 0.1.4
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.