Skip to main content

A Python library for interacting with iMessage data, built using Rust and Apache Arrow.

Project description

TextImp2

A Python library for interacting with iMessage data, built using Rust and Apache Arrow.

Features

  • Fast & Efficient: Built with Rust and imessage-database crate.
  • Arrow Integration: Returns data as Apache Arrow RecordBatches, ensuring zero-copy or efficient conversion to Polars and Pandas.
  • Strict Typing: Uses imessage-database structs for reliable parsing.

Installation

git clone ...
cd textimp2
uv sync

Usage

Typed Getters

The library provides convenient getters for different DataFrames:

import textimp2

# Get Polars DataFrames
df_msgs = textimp2.get_messages_polars()
df_handles = textimp2.get_handles_polars()

# Get Pandas DataFrames
df_msgs_pd = textimp2.get_messages_pandas()
df_handles_pd = textimp2.get_handles_pandas()

# Get Arrow RecordBatch
batch_msgs = textimp2.get_messages_arrow()

Specifying a Database Path

All functions accept an optional path argument:

df = textimp2.get_messages_polars("/path/to/chat.db")

Permissions (macOS)

Accessing ~/Library/Messages/chat.db requires Full Disk Access.

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

textimp2-0.1.0.tar.gz (35.9 kB view details)

Uploaded Source

Built Distribution

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

textimp2-0.1.0-cp312-cp312-macosx_11_0_arm64.whl (3.3 MB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

File details

Details for the file textimp2-0.1.0.tar.gz.

File metadata

  • Download URL: textimp2-0.1.0.tar.gz
  • Upload date:
  • Size: 35.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: maturin/1.8.3

File hashes

Hashes for textimp2-0.1.0.tar.gz
Algorithm Hash digest
SHA256 f6038cbb0cdbee100e99a9cd66521a817ddba6db52d31d8a54d3eb413c0384c4
MD5 fbbea9dff3062200790d235750fcc113
BLAKE2b-256 819cc07d425c3ea31125150062a3d12edc3793a97440df03c3236d85395fd49a

See more details on using hashes here.

File details

Details for the file textimp2-0.1.0-cp312-cp312-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for textimp2-0.1.0-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 32a6ee3d1cc25e01b9bda8257ed1cbb1261cbf620b57886b744ea2e4fcdb82fa
MD5 181c42a76524bb9bcd9b03d673d68b64
BLAKE2b-256 6f3cb94efe2946485e2044fe6a512457d20982632ef89043ffe5d603771aa65a

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