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.
Metadata
Release files for textimp2 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| textimp2-0.1.0.tar.gz | 35.9 kB | Without provenance | Details for textimp2-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| textimp2-0.1.0-cp312-cp312-macosx_11_0_arm64.whl | CPython 3.12 | CPython 3.12 | macOS 11.0+ ARM64 | Details for textimp2-0.1.0-cp312-cp312-macosx_11_0_arm64.whl |
Total release size: 3.3 MB
Release files / textimp2-0.1.0.tar.gz
| Download URL | textimp2-0.1.0.tar.gz |
|---|---|
| Size | 35.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f6038cbb0cdbee100e99a9cd66521a817ddba6db52d31d8a54d3eb413c0384c4
|
|
BLAKE2b-256 checksum How to use checksums |
819cc07d425c3ea31125150062a3d12edc3793a97440df03c3236d85395fd49a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
maturin/1.8.3
|
Release files / textimp2-0.1.0-cp312-cp312-macosx_11_0_arm64.whl
| Download URL | textimp2-0.1.0-cp312-cp312-macosx_11_0_arm64.whl |
|---|---|
| Size | 3.3 MB |
| Tags | CPython 3.12 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
32a6ee3d1cc25e01b9bda8257ed1cbb1261cbf620b57886b744ea2e4fcdb82fa
|
|
BLAKE2b-256 checksum How to use checksums |
6f3cb94efe2946485e2044fe6a512457d20982632ef89043ffe5d603771aa65a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
maturin/1.8.3
|
Security for textimp2 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.