Skip to main content
whatstk logo

whatstk

Parse, analyze, and visualize WhatsApp chats with Python

PyPI Python Build codecov Documentation License Downloads

Documentation • Try Live Demo • Tutorial

Features

  • 📱 Parse WhatsApp exports from Android and iOS (including zip files)
  • 🐼 Convert to pandas DataFrames for easy analysis
  • 📊 Interactive visualizations powered by Plotly
  • 🔧 Command-line tools for quick CSV conversions
  • 🌍 Multi-language support for various WhatsApp date formats
  • 🚀 Fast and efficient processing of large chat histories

Installation

pip install whatstk

That installs the parser and its analysis tools. Plotting is an optional extra:

pip install whatstk[viz]

Requirements: Python 3.11+

Install development version
pip install git+https://github.com/lucasrodes/whatstk.git@develop

Quick Start

Export your WhatsApp chat

Follow the export instructions for your device.

Load and analyze

from whatstk import df_from_whatsapp

# Load chat into a DataFrame
df = df_from_whatsapp("path/to/chat.txt")

# Or directly from iOS zip export
df = df_from_whatsapp("path/to/chat.zip")

# Now use pandas to analyze
print(df.head())

Convert to CSV

whatstk-to-csv input_chat.txt output.csv

Visualize

Requires the viz extra (pip install whatstk[viz]).

from whatstk import FigureBuilder

# Interactive message count chart
fig = FigureBuilder(df=df).user_interventions_count_linechart(date_mode="date")
fig.show()

Documentation

Full documentation available at whatstk.readthedocs.io

Using an AI assistant? Point it at llms.txt, a condensed map of the library in one fetch.

Contributing

We welcome contributions! See our contribution guide to get started.

License

This project is licensed under the GPL-3.0 License.

Citation

If you use whatstk in your research or project, please cite:

@software{whatstk,
  author = {Rodés-Guirao, Lucas},
  title = {whatstk: WhatsApp analysis and parsing toolkit},
  url = {https://github.com/lucasrodes/whatstk},
  year = {2025}
}

or as

Lucas Rodés-Guirao. "whatstk, WhatsApp analysis and parsing toolkit", https://github.com/lucasrodes/whatstk


⭐ Star this repo if you find it useful!

Made with ❤️ by Lucas Rodés-Guirao

Metadata

Release files for whatstk 0.10.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for whatstk 0.10.0
File Size Uploaded Provenance Actions
whatstk-0.10.0.tar.gz 17.7 MB With provenance Details for whatstk-0.10.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for whatstk 0.10.0
File Interpreter ABI Platform Actions
whatstk-0.10.0-py3-none-any.whl Python 3 none any Details for whatstk-0.10.0-py3-none-any.whl

Total release size: 17.8 MB

Release files / whatstk-0.10.0.tar.gz

Download URL whatstk-0.10.0.tar.gz
Size 17.7 MB
Tags Source
SHA-256 checksum
How to use checksums
f76a483d86c7e526cf24bb681f07066481c7e4d8a0b0c67480a1bf7320f407f3
BLAKE2b-256 checksum
How to use checksums
65fdc9c266acc79a6f8b0429351d39907e41745bb090f8a18434cf2aa50567b3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 28, 2026.

Transparency log

Release files / whatstk-0.10.0-py3-none-any.whl

Download URL whatstk-0.10.0-py3-none-any.whl
Size 53.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1333ff8b6fcf3b4ca8610ce4394a719f0b30360f8d43687a7a3ea9e30113676d
BLAKE2b-256 checksum
How to use checksums
8d8185da0538746479b0db42e4f03d2d2571eaaefc042f81f8bf801bff959a33
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 28, 2026.

Transparency log

Security for whatstk 0.10.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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for whatstk-0.10.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 28, 2026.

Transparency log

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.

Release history Release notifications | RSS feed

This release

0.10.0 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page