Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (
Help us improve Python packaging - Donate today!

Client for the Guerrillamail temporary email server

Project Description

Python Guerrillamail is a Python client API and command line interface for interacting with a Guerrillamail temporary email server.


pip install python-guerrillamail

Example Usage

Create session using auto-assigned email address, print email address and print id of first message in inbox:

from guerrillamail import GuerrillaMailSession
session = GuerrillaMailSession()
print session.get_session_state()['email_address']
print session.get_email_list()[0].guid

Example CLI Usage

Set email address:

$ guerrillamail setaddr john.doe
$ guerrillamail info

List inbox contents:

$ guerrillamail list
(*) 48859781  23:45:27+00:00
Example messsage 2

(*) 48859574  09:25:01+00:00
Example message

( ) 1         00:00:00+00:00
Welcome to Guerrilla Mail

Read email message:

$ guerrillamail get 48859781
Date: 2016-06-11 23:45:27+00:00
Subject: Example message 2

Example Guerrillamail message body.

Using Alternative Guerrillamail Server

By default, is used as the base URL for Guerrillamail API calls. This can be overridden by providing the base_url property when constructing a GuerrillaMailSession instance. When using the CLI the base_url property can be defined in the ~/.guerrillamail JSON config file, for example:

    "base_url": ""


Python Guerrilla Mail is free software, licensed under the GPLv3.

Change History


  • Add support for Python 3.3, 3.4 and 3.5.
  • Add “guerrillamail” executable.


  • Fix mail “excerpt” property.


  • Remove version restriction on Requests dependency.


  • Initial release.

Release History

This version
History Node


History Node


History Node


History Node


Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, Size & Hash SHA256 Hash Help File Type Python Version Upload Date
(8.2 kB) Copy SHA256 Hash SHA256
Wheel py2.py3 Jun 12, 2016
(5.9 kB) Copy SHA256 Hash SHA256
Source None Jun 12, 2016

Supported By

Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Google Google Cloud Servers DreamHost DreamHost Log Hosting