an API wrapper for yadim.dismail.de, a disposable mail provider
Project description
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
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pyDismail-2.tar.gz
(6.9 kB
view details)
Built Distribution
pyDismail-2-py3-none-any.whl
(7.4 kB
view details)
File details
Details for the file pyDismail-2.tar.gz
.
File metadata
- Download URL: pyDismail-2.tar.gz
- Upload date:
- Size: 6.9 kB
- Tags: Source
- Uploaded using 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
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1099817405ad50af252dbb3bafb5cf6f7ca13880c8ecb248c946a12104fdc659 |
|
MD5 | 32373932a29c4c878ca94333029005d2 |
|
BLAKE2b-256 | 1d3382431e8a8ba2e0e4cad6871e7b2ae4b757fb72c09f60f1de9f314c3a277c |
File details
Details for the file pyDismail-2-py3-none-any.whl
.
File metadata
- Download URL: pyDismail-2-py3-none-any.whl
- Upload date:
- Size: 7.4 kB
- Tags: Python 3
- Uploaded using 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
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | af2173404f5f3554281036ca97d960e1e7c28b8ca2052830faaee47e8141685a |
|
MD5 | 904f3dc1e17503c411212eed6221e0c4 |
|
BLAKE2b-256 | 02bd3191349be7686a5864f75decfbfb999857ea0dd94dcf4a970d0da621e163 |