Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/saippuakauppias/temp-mail

📬 A python API wrapper for temp-mail.org
https://github.com/saippuakauppias/temp-mail

Last synced: 13 days ago
JSON representation

📬 A python API wrapper for temp-mail.org

Awesome Lists containing this project

README

        

temp-mail
=========

Python API Wrapper for `temp-mail.ru `_ service. Temp-mail is a service which lets you use anonymous emails for free. You can view full API specification in `api.temp-mail.ru `_.

Requirements
------------

`requests `_ - required.

`simplejson `_ - optional, for a serious speed boost in JSON decode.

Installation
------------

Installing with pip::

$ pip install temp-mail

Usage
-----

Get all emails from given email login and domain::

from tempmail import TempMail

tm = TempMail(login='denis', domain='@gnail.pw')
print tm.get_mailbox() # list of emails in [email protected]

Generate email address and get emails from it::

from tempmail import TempMail

tm = TempMail()
email = tm.get_email_address() # [email protected]
print tm.get_mailbox(email) # list of emails

.. image:: https://d2weczhvl823v0.cloudfront.net/saippuakauppias/temp-mail/trend.png
:alt: Bitdeli badge
:target: https://bitdeli.com/free