Skip to main content

A library for interacting with the slippery.email website

Project description

Python Slippery

A python library for interacting with the burner email website slippery.email.

By Carter Yagemann

Introduction

This library provides a pure Python abstraction for the burner email website Slippery. It works with Python 2.x.

Slippery is a website that allows users to create temporary burner email addresses to receive emails. This is useful for testing email services or for filling out forms that force you to provide an email address.

Since the site has no API, I decided to create this library. The library supports creating new burner email addresses, checking for emails, and fetching their contents. In the spirit of burners, the library also supports SOCKS5 proxies should you want to interact with Slippery via a SSH tunnel, tor, or other proxy.

Installing

The module is on PyPI, install using pip:

$ pip install python-slippery

Development

You will need to install python-slippery’s dependencies:

$ pip install -Ur requirements.txt

and then you can import the module.

Usage

Getting Started

The core of the library is the BurnerEmail object. Here are some examples on how to use it:

from slippery.burner_email import BurnerEmail

email = BurnerEmail.generate()              # create a new email address
print email.getmailto()                     # send emails here!
email.setinbox('aaaaa', 'aaaaaaaaaaaaaaaa') # use this instead of generate if you
                                            # already have an email
msgs = email.fetch_emails()                 # see what's in the inbox
print email.fetch_email('12345')            # get the contents of an email
email.delete_email('12345')                 # delete an email

When you use the method fetch_emails() it returns an array of dictionaries with the following form:

{'id':int, 'sender':str, 'subject':str, 'date':str}

id is what should be passed to fetch_email() and delete_email().

The library also includes a useful method for setting a SOCKS5 proxy:

from slippery import proxy
proxy.set_proxy('localhost', '9050')

And that’s it! Super simple. There’s also an example of a very simple console program in the examples directory of the repo.

Documentation

Documentation is available via pydoc:

$ pydoc slippery.[model]

License

Copyright 2016 Carter Yagemann

This file is part of python-slippery.

python-slippery is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

python-slippery is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with python-slippery. If not, see <http://www.gnu.org/licenses/>.

Carter Yagemann

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

python-slippery-1.0.0.tar.gz (18.7 kB view details)

Uploaded Source

Built Distribution

python_slippery-1.0.0-py2-none-any.whl (10.5 kB view details)

Uploaded Python 2

File details

Details for the file python-slippery-1.0.0.tar.gz.

File metadata

File hashes

Hashes for python-slippery-1.0.0.tar.gz
Algorithm Hash digest
SHA256 dcdaa96f4d24b70752ab8d3148b2d9317f9d040fe570c7db9d2a3be07bc8f11c
MD5 91496e450cbda7a151e1913a03d023d1
BLAKE2b-256 7cc49da5b43905437fe595f2a6072b7284dbad21c624539b712b6dfe18b4ec89

See more details on using hashes here.

File details

Details for the file python_slippery-1.0.0-py2-none-any.whl.

File metadata

File hashes

Hashes for python_slippery-1.0.0-py2-none-any.whl
Algorithm Hash digest
SHA256 8ea2f949c48fa0582e3123d7c196155bfcdda35ad28f3c5851ffec8a0e84c927
MD5 bb8a1c225a3c2058d6aca2777daade00
BLAKE2b-256 7d05533a117bdb15c91a50f274ebec0e66cd593b4ea78bc5bf008544e15f18f7

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