Skip to main content

Export and analyze iMessage conversations from macOS SQLite database

Project description

iMessage Wrapped

Export and analyze your iMessage conversations from the macOS SQLite database.

image image

Quick Start

🖥️ Desktop App (No Terminal Required!)

Download for macOS

  1. Download and open iMessage-Wrapped.dmg
  2. Drag to Applications folder
  3. Launch the app
  4. Click "Analyze My Messages"
  5. Your wrapped opens in browser automatically

See desktop/ for building from source.

💻 Command Line

pip install imessage-wrapped
imexport analyze

That's it! By default, the command will:

  1. 🔄 Auto-export your messages (if not already exported)
  2. 📊 Analyze your messaging patterns
  3. ☁️ Upload anonymized statistics
  4. 🔗 Give you a shareable URL like: https://imessage-wrapped.fly.dev/2025/abc123xyz

Want to see full details in the terminal instead? Use imexport analyze --no-share

Features

Dashboard - Interactive visualizations of your messaging patterns
Easy Sharing - One command to upload and get a shareable link
Secure - HTTPS, encrypted database
Deploy Anywhere - Fly.io ready (free tier available)

🔒 Data Privacy

Your message content NEVER leaves your computer.

By default, we only upload aggregated statistics to create your shareable link. Here's exactly what is and isn't uploaded:

✅ What IS Uploaded (Statistics Only)

  • Counts: Total messages sent/received, tapbacks given/received, attachments, etc.
  • Averages: Message length, response times, punctuation usage
  • Distributions: Hour of day, day of week, month patterns
  • Emojis: Which emojis you used and how often
  • Dates: Your busiest messaging days, streak lengths
  • Anonymized Identifiers: Contact identifiers are SHA256-hashed (e.g., phone_a3b2c1d4e5f6)

❌ What is NOT Uploaded (Stays Private)

  • Message Text: No actual message content is ever sent
  • Contact Names: All names are stripped out before upload
  • Phone Numbers/Emails: Original identifiers are one-way hashed
  • Conversation Content: No snippets, samples, or quotes
  • Attachments: No photos, videos, or file content
  • Personal Info: Nothing that could identify you or your contacts

Usage

As a Library

from imessage_wrapped import MessageService, Exporter

service = MessageService()
data = service.export_year(2025)

exporter = Exporter()
exporter.export_to_file(data, "messages_2025.json")

See example_usage.py for a complete working example.

As a CLI

After installation, use the imexport command:

# Export current year (default)
imexport export

# Export specific year
imexport export --year 2024

# Custom output path
imexport export --output my_messages.json

# Custom database path (for testing)
imexport export --database /path/to/test/chat.db

# Compact JSON (no indentation)
imexport export --indent 0

# Analyze and share (default behavior)
imexport analyze

# Analyze with full terminal output (no sharing)
imexport analyze --no-share

# Show help
imexport --help

Alternatively, run without installation:

python -m imessage_wrapped export --year 2024

CLI Commands:

  • imexport export: Export iMessage conversations to JSON
  • imexport analyze: Analyze and share your wrapped (auto-exports if needed, use --no-share for full terminal output)

Requirements

  • Python 3.10+
  • macOS with Full Disk Access permission
  • rich library for terminal output

Installation

From PyPI

pip install imessage-wrapped
imexport

From Source (Development)

git clone https://github.com/gtarpenning/imessage-wrapped.git
cd imessage-wrapped
pip install -e .

macOS Permissions

Requires Full Disk Access to read the iMessage database:

  1. Open System Settings
  2. Go to Privacy & Security → Full Disk Access
  3. Add Terminal (for CLI) or the Desktop App
  4. Restart the application

Deployment

See RELEASE-GUIDE.md for deploying the CLI, Desktop App, or Web App.

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

imessage_wrapped-0.1.8.tar.gz (23.1 kB view details)

Uploaded Source

Built Distribution

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

imessage_wrapped-0.1.8-py3-none-any.whl (24.8 kB view details)

Uploaded Python 3

File details

Details for the file imessage_wrapped-0.1.8.tar.gz.

File metadata

  • Download URL: imessage_wrapped-0.1.8.tar.gz
  • Upload date:
  • Size: 23.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.4

File hashes

Hashes for imessage_wrapped-0.1.8.tar.gz
Algorithm Hash digest
SHA256 8e1739ebf3d8cd3cd60704369a0b51c08963b7ffb0e19282c8d50544721c0578
MD5 5ae3fc3158022a563a4814f54057ff16
BLAKE2b-256 f00bf3768c95f0b7c1fa275d7dc5fdec58944678562dce81bf797c55deafe841

See more details on using hashes here.

File details

Details for the file imessage_wrapped-0.1.8-py3-none-any.whl.

File metadata

File hashes

Hashes for imessage_wrapped-0.1.8-py3-none-any.whl
Algorithm Hash digest
SHA256 fd49d3c204a354d8bb9fb5b028c62aad2f22f559a6511d7abf8c43833f77a47a
MD5 44f08dbc613e1fbd56e33da5a82d3fa1
BLAKE2b-256 dd4ac704fa7b1a62548a3ccac02b4a2d8925cadb2b99623e242fe7564a5cb460

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