Gmailpy
A simple API wrapper for sending emails with Gmail
Getting Started
Install via pip (recommended)
pip install gmailpy
Install from source
pip install git+https://github.com/iDutchy/gmailpy
Getting Started
First you need to create your client:
import gmailpy
client = gmailpy.Client("john.doe@gmail.com", "P@$$w0rd")
Usage
await client.send(receiver, content, subject=None, bcc=None, attachment_bytes=None, attachment_name=None)
- Parameters:
reveiver (string): The receivers email address
content (string): The content of the email
subject (string): The email subject. Defaults to “No subject”
bcc (list): A list of other email addresses you want to send the mail to as BCC. Defaults to None
attachment_bytes (byte array): Attach anything to the email. This has to be a byte array! When providing this, the attachment_bytes argument becomes required! Defaults to None
attachment_name (string): The full name of the attachment. This has to contain the file extension too! e.g “dog.png”. This is required when providing attachment_bytes. Defaults to None
Metadata
Release files for gmailpy 1.0
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 |
|---|---|---|---|---|
| gmailpy-1.0.tar.gz | 2.5 kB | Without provenance | Details for gmailpy-1.0.tar.gz |
Release files / gmailpy-1.0.tar.gz
| Download URL | gmailpy-1.0.tar.gz |
|---|---|
| Size | 2.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a2e28324e234600b63cfdbe3b79f9d3142dd616f34fa0a40db8887a0be65db43
|
|
BLAKE2b-256 checksum How to use checksums |
333aab0c7d8b528c6330472a3a7b9c23ffe400abab313a28cd5329ca309ac315
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/42.0.2 requests-toolbelt/0.9.1 tqdm/4.40.1 CPython/3.7.3
|
Security for gmailpy 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.