Skip to main content

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.

Installation

pip install python-guerrilla_mail_brb

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
Email: john.doe@guerrillamailblock.com

List inbox contents:

$ guerrillamail list
(*) 48859781  23:45:27+00:00  spam@example.com
Example messsage 2

(*) 48859574  09:25:01+00:00  spam@example.com
Example message

( ) 1         00:00:00+00:00  no-reply@guerrillamail.com
Welcome to Guerrilla Mail

Read email message:

$ guerrillamail get 48859781
From: spam@example.com
Date: 2016-06-11 23:45:27+00:00
Subject: Example message 2

Example Guerrillamail message body.

Using Alternative Guerrillamail Server

By default, http://api.guerrillamail.com 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": "https://api.guerrillamail.com"
}

License

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

Change History

0.1.0

  • Initial release.

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-guerrilla_mail_brb-0.1.1.tar.gz (18.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

python_guerrilla_mail_brb-0.1.1-py3-none-any.whl (18.7 kB view details)

Uploaded Python 3

File details

Details for the file python-guerrilla_mail_brb-0.1.1.tar.gz.

File metadata

File hashes

Hashes for python-guerrilla_mail_brb-0.1.1.tar.gz
Algorithm Hash digest
SHA256 733f7e87b5f636174d0ba38e6d8cc43bfd748e16c5db0d8df713a649fbac61b5
MD5 b578bff9d15322a05e938557bd32869c
BLAKE2b-256 dc4f875009a1bb5d29a4b3fadb7e3d9cef8adf161e0775e517c0bfd8a19bf254

See more details on using hashes here.

File details

Details for the file python_guerrilla_mail_brb-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for python_guerrilla_mail_brb-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 307111700d2f441603fd499577b4b2ee72aec5d498633da59b932f078e501e95
MD5 6ec0be1e967b128000bf7e7c211808e4
BLAKE2b-256 e5a724c1ce0c2110049488d85450a3270e74184e82e8c9c36a409f848b3d3af2

See more details on using hashes here.

Supported by

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