Skip to main content

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)

Source distribution for pyDismail 2
File Size Uploaded
pyDismail-2.tar.gz 6.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pyDismail 2
File Interpreter ABI Platform
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

Release history Release notifications | RSS feed

2.3

2 release files

2.2

2 release files

2.1

2 release files

This release

2 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page