guerrillamail-api
Python client for the Guerrilla Mail disposable email JSON API.
Create temporary inboxes, poll for new mail, read full messages, customize addresses, extend lifetime, and delete messages — with automatic PHPSESSID / SUBSCR cookie handling.
Install
pip install guerrillamail-api
Quick start
from guerrillamail import GuerrillaMailClient
with GuerrillaMailClient() as gm:
mailbox = gm.create_email()
print("Address:", mailbox.address)
print("Expires in (s):", mailbox.seconds_remaining())
inbox = gm.check_inbox()
for msg in inbox.messages:
print(msg.mail_from, "—", msg.mail_subject)
full = gm.read_message(inbox.messages[0].mail_id)
print(full.mail_body)
Wait for an incoming email
with GuerrillaMailClient() as gm:
gm.create_email()
gm.check_inbox() # consume welcome mail sequence
# Poll until a message arrives (adjust filters as needed)
msg = gm.wait_for_message(
timeout=180,
poll_interval=5,
subject_contains="verification",
)
print(msg.mail_body)
Custom address
with GuerrillaMailClient() as gm:
gm.create_email()
gm.set_username("mytestuser")
print(gm.mailbox.address)
API coverage
| Method | Guerrilla Mail function |
|---|---|
create_email() |
get_email_address |
set_username() |
set_email_user |
check_inbox() |
check_email |
list_inbox() |
get_email_list |
read_message() |
fetch_email |
delete_messages() |
del_email |
forget_address() |
forget_me |
extend_time() |
extend |
get_older_list() |
get_older_list |
Lower-level methods (get_email_address, check_email, …) return raw JSON dicts.
Rate limits
The public API may be rate-limited. Avoid tight polling; use poll_interval ≥ 5 seconds in production.
License
MIT
Metadata
Release files for guerrillamail-api 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| guerrillamail_api-1.0.0.tar.gz | 9.1 kB | Without provenance | Details for guerrillamail_api-1.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| guerrillamail_api-1.0.0-py3-none-any.whl | Python 3 | none | any | Details for guerrillamail_api-1.0.0-py3-none-any.whl |
Total release size: 19.5 kB
Release files / guerrillamail_api-1.0.0.tar.gz
| Download URL | guerrillamail_api-1.0.0.tar.gz |
|---|---|
| Size | 9.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b1e9064ab1ba5b1827fa1ea8992cb5a215780853acd12420dc291d10039957a5
|
|
BLAKE2b-256 checksum How to use checksums |
a703e4f429c46a865b87cdde0be1fcba7f792092787ed3f016f6569af745a9ac
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.5
|
Release files / guerrillamail_api-1.0.0-py3-none-any.whl
| Download URL | guerrillamail_api-1.0.0-py3-none-any.whl |
|---|---|
| Size | 10.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
fa1df4c74dc85fe8f3ed008be084089e24004010c33506e2ccefd3afbb676c2e
|
|
BLAKE2b-256 checksum How to use checksums |
ecc6260349163844ca50d2436f977b0a85ab96edaf4cabfe112f5f7d425c841f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.5
|
Security for guerrillamail-api 1.0.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.