Skip to main content

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

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

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.3.tar.gz (7.0 kB view details)

Uploaded Source

Built Distribution

pyDismail-2.3-py3-none-any.whl (7.5 kB view details)

Uploaded Python 3

File details

Details for the file pyDismail-2.3.tar.gz.

File metadata

  • Download URL: pyDismail-2.3.tar.gz
  • Upload date:
  • Size: 7.0 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

Hashes for pyDismail-2.3.tar.gz
Algorithm Hash digest
SHA256 592730ba4ba29df660673f98ef72bdf57f31b72fa14e2122ab5a4d8da1b130f9
MD5 65afe6c3a4240a1135c0e3f285d8e723
BLAKE2b-256 293d04db13f8f641db5f8cb94291e0a83f662faf7295ed3929b84e3f3b977871

See more details on using hashes here.

File details

Details for the file pyDismail-2.3-py3-none-any.whl.

File metadata

  • Download URL: pyDismail-2.3-py3-none-any.whl
  • Upload date:
  • Size: 7.5 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

Hashes for pyDismail-2.3-py3-none-any.whl
Algorithm Hash digest
SHA256 8f01e5c8784de0fe12daaae010e4bcb2fad83f49de68f6808898b69ec9d4aa0b
MD5 f675e9a1dadc5b77462172632ac2af29
BLAKE2b-256 77c3c7b599ae49b54747c2eee1d2d6a62da90afe64e80cbd33e0364c8655df3d

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page