Generate and manage iCloud+ HideMyEmail addresses from the command line
Project description
iCloud HideMyEmail Generator
Python CLI tool for generating and managing iCloud+ HideMyEmail addresses with multi-account support
Table of Contents
Overview
With an iCloud+ subscription you get this nice "HideMyMail" feature that let's you create random email addresses that forward to your personal inbox. Let's use our subscription at its best and easily generate them instead of buying address lists.
There are some other similar open source projects around, but I hated the fact that the login was via a "copy and paste" cookies logic. Here you get everything done properly with full SRP authentication and 2FA support.
Installation
pip install icloud-hme
Or install from source:
git clone https://github.com/glizzykingdreko/icloud-hidemymail-generator
cd icloud-hidemymail-generator
pip install -e .
Quick Start
# 1. Authenticate with your iCloud account
icloud-hme auth
# 2. Generate 5 new email aliases
icloud-hme generate -n 5
# 3. Export all emails to CSV
icloud-hme export --format csv
Commands
Authentication
# Interactive login with 2FA support
icloud-hme auth
# Or provide email directly
icloud-hme auth -e your@icloud.com
Generate Emails
# Interactive generation (prompts for count)
icloud-hme generate
# Generate 5 permanent emails
icloud-hme generate -n 5
# Generate with custom label
icloud-hme generate -n 10 --label shopping
# Generate temporary emails (not reserved)
icloud-hme generate -n 3 --temp
# Generate and save to file
icloud-hme generate -n 5 --output emails.csv --format csv
# Use specific account
icloud-hme generate -n 5 --account other@icloud.com
List Emails
# List all HideMyEmail addresses
icloud-hme list
# List for specific account
icloud-hme list --account your@icloud.com
Export Emails
# Export to CSV (prompts for output path)
icloud-hme export
# Export to JSON
icloud-hme export --format json
# Export only active emails
icloud-hme export --filter active
# Custom output path
icloud-hme export --output ~/Desktop/my_emails --format csv
Manage Accounts
# List authenticated accounts
icloud-hme accounts
# Remove an account
icloud-hme logout
Rate Limits
Apple enforces the following rate limits on HideMyEmail:
| Limit | Value |
|---|---|
| Per 30 minutes | ~5 emails × family members |
| Total per account | ~700 emails |
The CLI automatically detects rate limits and displays warnings when they're hit.
Data Storage
All data is stored locally in ~/.icloud-hme/:
~/.icloud-hme/
├── account1_at_icloud_com/
│ ├── session.json # Authentication tokens
│ └── emails.json # Generated emails log
└── account2_at_icloud_com/
└── ...
Session tokens and all of your data is stored locally.
Python API Usage
You can also use the library programmatically:
from icloud_hme import ICloudSession, HideMyEmailGenerator
# Authenticate
session = ICloudSession()
session.login("your@icloud.com", "password")
# Generate emails
generator = HideMyEmailGenerator(session)
emails = generator.generate_multiple(
count=5,
reserve=True,
label_prefix="api_test"
)
for email in emails:
print(email)
Contributing
Contributions are welcome! Feel free to:
- Fork the repository
- Create your feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
License
This project is licensed under the MIT License - see the LICENSE file for details.
Author
If you found this project helpful or interesting, consider starring the repo and following me for more tools, or buy me a coffee to keep me going ☕
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file icloud_hme-1.0.0.tar.gz.
File metadata
- Download URL: icloud_hme-1.0.0.tar.gz
- Upload date:
- Size: 19.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c18c3a7d36e9baf42bf4e6c478385c9db8b066ca74718acde40769e0b74a12d1
|
|
| MD5 |
e47a780f94a95c05d719d823a21f3bf1
|
|
| BLAKE2b-256 |
1541581c213b4dd90cacd9f40eb22bf4e4a24de9a6972541885d40e7410a3215
|
Provenance
The following attestation bundles were made for icloud_hme-1.0.0.tar.gz:
Publisher:
publish.yml on glizzykingdreko/icloud-hme
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
icloud_hme-1.0.0.tar.gz -
Subject digest:
c18c3a7d36e9baf42bf4e6c478385c9db8b066ca74718acde40769e0b74a12d1 - Sigstore transparency entry: 797096005
- Sigstore integration time:
-
Permalink:
glizzykingdreko/icloud-hme@2d8fdfde742e0800f9cb60d1a796e1733f0c31c2 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/glizzykingdreko
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@2d8fdfde742e0800f9cb60d1a796e1733f0c31c2 -
Trigger Event:
workflow_dispatch
-
Statement type:
File details
Details for the file icloud_hme-1.0.0-py3-none-any.whl.
File metadata
- Download URL: icloud_hme-1.0.0-py3-none-any.whl
- Upload date:
- Size: 19.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0003d8cdf068df691cfc8c52679c21e45b1c408a8c3d0a7651115f3b4f785b71
|
|
| MD5 |
f563b98b3f501da396ab2d3571a0e3a6
|
|
| BLAKE2b-256 |
df14c6772a1865d3c0c66cd4abef77778b470fd8fb15170c4781be9fb057c265
|
Provenance
The following attestation bundles were made for icloud_hme-1.0.0-py3-none-any.whl:
Publisher:
publish.yml on glizzykingdreko/icloud-hme
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
icloud_hme-1.0.0-py3-none-any.whl -
Subject digest:
0003d8cdf068df691cfc8c52679c21e45b1c408a8c3d0a7651115f3b4f785b71 - Sigstore transparency entry: 797096050
- Sigstore integration time:
-
Permalink:
glizzykingdreko/icloud-hme@2d8fdfde742e0800f9cb60d1a796e1733f0c31c2 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/glizzykingdreko
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@2d8fdfde742e0800f9cb60d1a796e1733f0c31c2 -
Trigger Event:
workflow_dispatch
-
Statement type: