temptf
Python client library for the temp.tf disposable email API. Zero external dependencies.
Installation
pip install git+https://github.com/patrikdzejn88-ux/temptf.git
Or install locally from source:
git clone https://github.com/patrikdzejn88-ux/temptf.git
cd temptf
pip install .
Quick Start
Creating Addresses by Provider
import temptf
# Random address across all providers
email = temptf.create_email()
# Provider-specific addresses
gmail_any = temptf.create_gmail() # @gmail.com (dot or plus)
gmail_dot = temptf.create_gmail_dot() # u.s.e.r@gmail.com
gmail_plus = temptf.create_gmail_plus() # user+tag@gmail.com
outlook = temptf.create_outlook() # user+tag@outlook.com
hotmail = temptf.create_hotmail() # user+tag@hotmail.com
edu = temptf.create_edu() # @high.edu.pl
Reading and Streaming Messages
import temptf
email = temptf.create_outlook()
print("Listening on:", email)
# Fetch current inbox contents once
messages = temptf.get_messages(email)
# Block until the first matching message arrives
msg = temptf.wait_for_message(email, timeout=60.0)
print(msg.subject, msg.text)
# Stream incoming messages continuously
for msg in temptf.stream_messages(email, interval=5.0):
print(f"[{msg.date}] {msg.sender}: {msg.subject}")
print(msg.text)
Using TempTFClient Directly
from temptf import TempTFClient
client = TempTFClient(timeout=10.0)
email = client.create_gmail_plus()
for msg in client.stream_messages(email):
for att in msg.attachments:
client.download_attachment(email, msg.id, att.id, dest=f"./downloads/{att.name}")
License
MIT
Metadata
Release files for temptf 0.1.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 |
|---|---|---|---|---|
| temptf-0.1.0.tar.gz | 7.7 kB | Without provenance | Details for temptf-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| temptf-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for temptf-0.1.0-py3-none-any.whl |
Total release size: 15.7 kB
Release files / temptf-0.1.0.tar.gz
| Download URL | temptf-0.1.0.tar.gz |
|---|---|
| Size | 7.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
72646f3dc62301950bcae4c605a78f51e69a6b5b4d6319c0b8b2daedc79b5500
|
|
BLAKE2b-256 checksum How to use checksums |
61241ed419c18fb0567ed441c47289ab22ca98379cebc4f5edc93c2e089e32da
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.6
|
Release files / temptf-0.1.0-py3-none-any.whl
| Download URL | temptf-0.1.0-py3-none-any.whl |
|---|---|
| Size | 8.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c346cafe491141bf840b97ae37073868c92fb91c886cb96820041a39e63a5605
|
|
BLAKE2b-256 checksum How to use checksums |
145a1a146f9dfcc7c410a3a628dc709c1ee314735a310afc955f1d7e0b2894a3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.6
|
Security for temptf 0.1.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.