pyDismail
an API wrapper for temporary/disposable mail providers powered by synox/disposable-mailbox
Installation
pip install pyDismail
Usage
from pyDismail import BlubbermailDismail, BmOn2Dismail, YadimDismail
disposable_mail = BlubbermailDismail(mail="example") # or BmOn2Dismail(mail="example")
print(disposable_mail.mail)
# example@yadim.dismail.de
mails = disposable_mail.fetch_all_mails()
last_received_mail = mails[-1]
print(last_received_mail)
# (Mail: sender=SENDER, time=DATETIME, subject=SUBJECT, id=ID, body=BODY)
print(last_received_mail.parsed_eml)
# parsed eml of the email
print(last_received_mail.body) # plain body of the email
# This is an email. Hello
disposable_mail.delete_mail(last_received_mail)
# deletes the mail from the server
amount_of_new_mail = disposable_mail.check_for_new()
print(amount_of_new_mail)
# returns the amount of the new mails after the last fetch_all_mails was called
raw_eml = disposable_mail.get_eml(last_received_mail)
# returns the raw eml content of the email
Metadata
Release files for pyDismail 2.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| pyDismail-2.3.tar.gz | 7.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pyDismail-2.3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 14.4 kB
Release files / pyDismail-2.3.tar.gz
| Download URL | pyDismail-2.3.tar.gz |
|---|---|
| Size | 7.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
592730ba4ba29df660673f98ef72bdf57f31b72fa14e2122ab5a4d8da1b130f9
|
|
BLAKE2b-256 checksum How to use checksums |
293d04db13f8f641db5f8cb94291e0a83f662faf7295ed3929b84e3f3b977871
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.2 importlib_metadata/4.6.3 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.9.6
|
Release files / pyDismail-2.3-py3-none-any.whl
| Download URL | pyDismail-2.3-py3-none-any.whl |
|---|---|
| Size | 7.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
8f01e5c8784de0fe12daaae010e4bcb2fad83f49de68f6808898b69ec9d4aa0b
|
|
BLAKE2b-256 checksum How to use checksums |
77c3c7b599ae49b54747c2eee1d2d6a62da90afe64e80cbd33e0364c8655df3d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.2 importlib_metadata/4.6.3 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.9.6
|