├── outlook_account_generator.egg-info ├── dependency_links.txt ├── requires.txt ├── top_level.txt ├── SOURCES.txt └── PKG-INFO ├── requirements.txt ├── outlook_account_generator ├── __init__.py └── client.py ├── dist ├── outlook_account_generator-1.0.2.tar.gz └── outlook_account_generator-1.0.2-py3-none-any.whl ├── setup.py └── README.md /outlook_account_generator.egg-info/dependency_links.txt: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /outlook_account_generator.egg-info/requires.txt: -------------------------------------------------------------------------------- 1 | requests 2 | -------------------------------------------------------------------------------- /requirements.txt: -------------------------------------------------------------------------------- 1 | requests 2 | setuptools 3 | wheel 4 | twine 5 | -------------------------------------------------------------------------------- /outlook_account_generator/__init__.py: -------------------------------------------------------------------------------- 1 | from .client import OutlookGen 2 | -------------------------------------------------------------------------------- /outlook_account_generator.egg-info/top_level.txt: -------------------------------------------------------------------------------- 1 | outlook_account_generator 2 | -------------------------------------------------------------------------------- /dist/outlook_account_generator-1.0.2.tar.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TempOutlookAPI/outlook-account-generator/HEAD/dist/outlook_account_generator-1.0.2.tar.gz -------------------------------------------------------------------------------- /dist/outlook_account_generator-1.0.2-py3-none-any.whl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TempOutlookAPI/outlook-account-generator/HEAD/dist/outlook_account_generator-1.0.2-py3-none-any.whl -------------------------------------------------------------------------------- /outlook_account_generator.egg-info/SOURCES.txt: -------------------------------------------------------------------------------- 1 | README.md 2 | setup.py 3 | outlook_account_generator/__init__.py 4 | outlook_account_generator/client.py 5 | outlook_account_generator.egg-info/PKG-INFO 6 | outlook_account_generator.egg-info/SOURCES.txt 7 | outlook_account_generator.egg-info/dependency_links.txt 8 | outlook_account_generator.egg-info/requires.txt 9 | outlook_account_generator.egg-info/top_level.txt -------------------------------------------------------------------------------- /setup.py: -------------------------------------------------------------------------------- 1 | from setuptools import setup, find_packages 2 | 3 | try: 4 | with open("README.md", "r", encoding="utf-8") as fh: 5 | long_description = fh.read() 6 | except FileNotFoundError: 7 | long_description = "A Python wrapper to generate real Outlook/Hotmail accounts." 8 | 9 | setup( 10 | name="outlook-account-generator", 11 | version="1.0.2", # Versiyonu artırdık (Hata almamak için) 12 | author="TempOutlookAPI", 13 | author_email="support@tempoutlookapi.com", 14 | description="A Python wrapper to generate real Outlook/Hotmail accounts and fetch OTPs via JSON.", 15 | long_description=long_description, 16 | long_description_content_type="text/markdown", 17 | url="https://rapidapi.com/EymenTakak/api/temp-outlook-api", # BURASI DÜZELTİLDİ 18 | packages=find_packages(), 19 | classifiers=[ 20 | "Programming Language :: Python :: 3", 21 | "License :: OSI Approved :: MIT License", 22 | "Operating System :: OS Independent", 23 | ], 24 | python_requires='>=3.6', 25 | install_requires=[ 26 | "requests", 27 | ], 28 | ) 29 | -------------------------------------------------------------------------------- /outlook_account_generator/client.py: -------------------------------------------------------------------------------- 1 | import requests 2 | import time 3 | 4 | class OutlookGen: 5 | def __init__(self, api_key): 6 | self.base_url = "https://temp-outlook-api.p.rapidapi.com" 7 | self.headers = { 8 | "x-rapidapi-key": api_key, 9 | "x-rapidapi-host": "temp-outlook-api.p.rapidapi.com", 10 | "Content-Type": "application/json" 11 | } 12 | 13 | def create_account(self, mail_type="outlook"): 14 | """ 15 | Creates a new email account. 16 | Args: 17 | mail_type (str): 'outlook' or 'hotmail' 18 | """ 19 | if mail_type not in ["outlook", "hotmail"]: 20 | raise ValueError("mail_type must be 'outlook' or 'hotmail'") 21 | 22 | endpoint = f"/get/{mail_type}" 23 | url = f"{self.base_url}{endpoint}" 24 | 25 | try: 26 | response = requests.get(url, headers=self.headers) 27 | response.raise_for_status() 28 | return response.json() 29 | except requests.exceptions.HTTPError: 30 | if response.status_code == 403 or response.status_code == 401: 31 | raise PermissionError("❌ Invalid API Key! Get a key here: https://rapidapi.com/EymenTakak/api/temp-outlook-api") 32 | else: 33 | raise Exception(f"API Error: {response.text}") 34 | 35 | def get_inbox(self, email, enc_token): 36 | """ 37 | Fetches inbox messages. 38 | """ 39 | url = f"{self.base_url}/get/inbox" 40 | payload = {"email": email, "token": enc_token} 41 | 42 | try: 43 | response = requests.post(url, json=payload, headers=self.headers) 44 | response.raise_for_status() 45 | return response.json().get("emails", []) 46 | except Exception as e: 47 | raise Exception(f"Inbox Error: {str(e)}") 48 | 49 | def wait_for_otp(self, email, enc_token, timeout=60, check_interval=5): 50 | """ 51 | Helper: Waits for an email to arrive. 52 | """ 53 | start_time = time.time() 54 | while time.time() - start_time < timeout: 55 | inbox = self.get_inbox(email, enc_token) 56 | if inbox: 57 | return inbox[0] # Return latest email 58 | time.sleep(check_interval) 59 | return None 60 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Outlook Account Generator (API Wrapper) 2 | 3 | [![Python](https://img.shields.io/badge/Python-3.6%2B-blue)](https://www.python.org/) 4 | [![API Status](https://img.shields.io/badge/API-Active-success)](https://rapidapi.com/EymenTakak/api/temp-outlook-api) 5 | [![License](https://img.shields.io/badge/License-MIT-green)](https://opensource.org/licenses/MIT) 6 | 7 | A lightweight Python library to generate **real Microsoft Outlook & Hotmail** email addresses instantly. 8 | Unlike standard temp-mail services, these domains have high trust scores on major platforms. 9 | 10 | This library allows you to access inboxes via JSON to **fetch OTP codes automatically**. 11 | **No Selenium, Puppeteer, or headless browsers required.** 12 | 13 | ## 🚀 Features 14 | 15 | * **Real Domains:** Generates `@outlook.com` and `@hotmail.com` addresses. 16 | * **JSON Inbox:** Fetch emails and verification codes via a simple method. 17 | * **Secure:** Uses encrypted tokens for session management. 18 | * **Fast:** Purely request-based (Lightweight & Fast). 19 | 20 | ## 📦 Installation 21 | 22 | You can install the package via pip: 23 | 24 | ```bash 25 | pip install outlook-account-generator 26 | ``` 27 | 28 | ## 🔑 API Key Required 29 | 30 | To use this library, you need an API Key. 31 | 👉 **[Get your Free API Key Here](https://rapidapi.com/EymenTakak/api/temp-outlook-api)** 32 | 33 | ## ⚡ Quick Start Guide 34 | 35 | ### 1. Initialize the Client 36 | 37 | First, import the library and initialize it with your RapidAPI Key. 38 | 39 | ```python 40 | from outlook_account_generator import OutlookGen 41 | 42 | # Replace with your actual API Key 43 | API_KEY = "YOUR_RAPIDAPI_KEY_HERE" 44 | api = OutlookGen(API_KEY) 45 | ``` 46 | 47 | ### 2. Generate a New Account 48 | 49 | You can choose between `outlook` or `hotmail`. 50 | 51 | ```python 52 | # Create a new Outlook account 53 | try: 54 | account = api.create_account("outlook") 55 | 56 | email = account['email'] 57 | token = account['enc_token'] 58 | 59 | print(f"✅ Generated Email: {email}") 60 | 61 | except Exception as e: 62 | print(f"Error: {e}") 63 | ``` 64 | 65 | ### 3. Wait for OTP / Email 66 | 67 | Use the `wait_for_otp` helper function to automatically poll the inbox until a message arrives. 68 | 69 | ```python 70 | print(f"[*] Waiting for email on {email}...") 71 | 72 | # Checks inbox every 5 seconds, times out after 60 seconds 73 | email_data = api.wait_for_otp(email, token, timeout=60) 74 | 75 | if email_data: 76 | print("\n📩 New Email Received:") 77 | print(f"From: {email_data['sender']}") 78 | print(f"Subject: {email_data['title']}") 79 | print(f"Body: {email_data['content']}") # Content is HTML-stripped 80 | else: 81 | print("❌ No email received within timeout.") 82 | ``` 83 | 84 | ## ⚖️ Disclaimer 85 | 86 | This tool is designed for educational purposes, software testing, and automation development. 87 | Please refer to the [RapidAPI Terms](https://rapidapi.com/EymenTakak/api/temp-outlook-api) for usage limits. 88 | 89 | --- 90 | [Get Premium Access](https://rapidapi.com/EymenTakak/api/temp-outlook-api) 91 | -------------------------------------------------------------------------------- /outlook_account_generator.egg-info/PKG-INFO: -------------------------------------------------------------------------------- 1 | Metadata-Version: 2.4 2 | Name: outlook-account-generator 3 | Version: 1.0.2 4 | Summary: A Python wrapper to generate real Outlook/Hotmail accounts and fetch OTPs via JSON. 5 | Home-page: https://rapidapi.com/EymenTakak/api/temp-outlook-api 6 | Author: TempOutlookAPI 7 | Author-email: support@tempoutlookapi.com 8 | Classifier: Programming Language :: Python :: 3 9 | Classifier: License :: OSI Approved :: MIT License 10 | Classifier: Operating System :: OS Independent 11 | Requires-Python: >=3.6 12 | Description-Content-Type: text/markdown 13 | Requires-Dist: requests 14 | Dynamic: author 15 | Dynamic: author-email 16 | Dynamic: classifier 17 | Dynamic: description 18 | Dynamic: description-content-type 19 | Dynamic: home-page 20 | Dynamic: requires-dist 21 | Dynamic: requires-python 22 | Dynamic: summary 23 | 24 | # Outlook Account Generator (API Wrapper) 25 | 26 | [![Python](https://img.shields.io/badge/Python-3.6%2B-blue)](https://www.python.org/) 27 | [![API Status](https://img.shields.io/badge/API-Active-success)](https://rapidapi.com/EymenTakak/api/temp-outlook-api) 28 | [![License](https://img.shields.io/badge/License-MIT-green)](https://opensource.org/licenses/MIT) 29 | 30 | A lightweight Python library to generate **real Microsoft Outlook & Hotmail** email addresses instantly. 31 | Unlike standard temp-mail services, these domains have high trust scores on major platforms. 32 | 33 | This library allows you to access inboxes via JSON to **fetch OTP codes automatically**. 34 | **No Selenium, Puppeteer, or headless browsers required.** 35 | 36 | ## 🚀 Features 37 | 38 | * **Real Domains:** Generates `@outlook.com` and `@hotmail.com` addresses. 39 | * **JSON Inbox:** Fetch emails and verification codes via a simple method. 40 | * **Secure:** Uses encrypted tokens for session management. 41 | * **Fast:** Purely request-based (Lightweight & Fast). 42 | 43 | ## 📦 Installation 44 | 45 | You can install the package via pip: 46 | 47 | ```bash 48 | pip install outlook-account-generator 49 | ``` 50 | 51 | ## 🔑 API Key Required 52 | 53 | To use this library, you need an API Key. 54 | 👉 **[Get your Free API Key Here](https://rapidapi.com/EymenTakak/api/temp-outlook-api)** 55 | 56 | ## ⚡ Quick Start Guide 57 | 58 | ### 1. Initialize the Client 59 | 60 | First, import the library and initialize it with your RapidAPI Key. 61 | 62 | ```python 63 | from outlook_account_generator import OutlookGen 64 | 65 | # Replace with your actual API Key 66 | API_KEY = "YOUR_RAPIDAPI_KEY_HERE" 67 | api = OutlookGen(API_KEY) 68 | ``` 69 | 70 | ### 2. Generate a New Account 71 | 72 | You can choose between `outlook` or `hotmail`. 73 | 74 | ```python 75 | # Create a new Outlook account 76 | try: 77 | account = api.create_account("outlook") 78 | 79 | email = account['email'] 80 | token = account['enc_token'] 81 | 82 | print(f"✅ Generated Email: {email}") 83 | 84 | except Exception as e: 85 | print(f"Error: {e}") 86 | ``` 87 | 88 | ### 3. Wait for OTP / Email 89 | 90 | Use the `wait_for_otp` helper function to automatically poll the inbox until a message arrives. 91 | 92 | ```python 93 | print(f"[*] Waiting for email on {email}...") 94 | 95 | # Checks inbox every 5 seconds, times out after 60 seconds 96 | email_data = api.wait_for_otp(email, token, timeout=60) 97 | 98 | if email_data: 99 | print("\n📩 New Email Received:") 100 | print(f"From: {email_data['sender']}") 101 | print(f"Subject: {email_data['title']}") 102 | print(f"Body: {email_data['content']}") # Content is HTML-stripped 103 | else: 104 | print("❌ No email received within timeout.") 105 | ``` 106 | 107 | ## ⚖️ Disclaimer 108 | 109 | This tool is designed for educational purposes, software testing, and automation development. 110 | Please refer to the [RapidAPI Terms](https://rapidapi.com/EymenTakak/api/temp-outlook-api) for usage limits. 111 | 112 | --- 113 | [Get Premium Access](https://rapidapi.com/EymenTakak/api/temp-outlook-api) 114 | --------------------------------------------------------------------------------