pyDismail
an API wrapper for temporary/disposable mail providers powered by synox/disposable-mailbox
Installation
not on pyPi soo..
pip install git+git://github.com/scrubjay55/pyDismail@master
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
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.tar.gz | 6.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pyDismail-2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 14.3 kB
Release files / pyDismail-2.tar.gz
| Download URL | pyDismail-2.tar.gz |
|---|---|
| Size | 6.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1099817405ad50af252dbb3bafb5cf6f7ca13880c8ecb248c946a12104fdc659
|
|
BLAKE2b-256 checksum How to use checksums |
1d3382431e8a8ba2e0e4cad6871e7b2ae4b757fb72c09f60f1de9f314c3a277c
|
| 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-py3-none-any.whl
| Download URL | pyDismail-2-py3-none-any.whl |
|---|---|
| Size | 7.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
af2173404f5f3554281036ca97d960e1e7c28b8ca2052830faaee47e8141685a
|
|
BLAKE2b-256 checksum How to use checksums |
02bd3191349be7686a5864f75decfbfb999857ea0dd94dcf4a970d0da621e163
|
| 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
|