TextImp2
A Python library for interacting with iMessage data, built using Rust and Apache Arrow.
Features
- Fast & Efficient: Built with Rust and
imessage-databasecrate. - Arrow Integration: Returns data as Apache Arrow RecordBatches, ensuring zero-copy or efficient conversion to Polars and Pandas.
- Strict Typing: Uses
imessage-databasestructs 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.
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)
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 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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f6038cbb0cdbee100e99a9cd66521a817ddba6db52d31d8a54d3eb413c0384c4
|
|
| MD5 |
fbbea9dff3062200790d235750fcc113
|
|
| BLAKE2b-256 |
819cc07d425c3ea31125150062a3d12edc3793a97440df03c3236d85395fd49a
|
File details
Details for the file textimp2-0.1.0-cp312-cp312-macosx_11_0_arm64.whl.
File metadata
- Download URL: textimp2-0.1.0-cp312-cp312-macosx_11_0_arm64.whl
- Upload date:
- Size: 3.3 MB
- Tags: CPython 3.12, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via:
maturin/1.8.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
32a6ee3d1cc25e01b9bda8257ed1cbb1261cbf620b57886b744ea2e4fcdb82fa
|
|
| MD5 |
181c42a76524bb9bcd9b03d673d68b64
|
|
| BLAKE2b-256 |
6f3cb94efe2946485e2044fe6a512457d20982632ef89043ffe5d603771aa65a
|