Skip to main content

whatstk: analyze WhatsApp chats with python

Package version

Build Status codecov Documentation Status Tutorial Python 3 Number of downloads GitHub license Join the chat at https://gitter.im/sociepy/whatstk


Try the live demo parser to convert your chats to CSV


whatstk is a python package providing tools to parse, analyze and visualise WhatsApp chats developed under the sociepy project. Easily convert your chats to csv or simply visualise some stats using the provided command-line tools or python. The package uses pandas to process the data and plotly to visualise it.

It is distributed under the GPL-3.0 license.

⭐ Please star our project if you found it interesting to give us some dopamine 😄!

Content

Installation

pip install whatstk

Install develop version (not stable):

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

More details here

Getting Started

For a rapid introduction, check this tutorial on Medium.

Export your chat using your phone:

See instructions.

Load chat as a DataFrame

from whatstk import df_from_txt_whatsapp
df = df_from_txt_whatsapp("path/to/chat.txt")

Convert chat to csv

$ whatstk-to-csv [input_filename] [output_filename]

More examples

See more in sections getting started and examples.

Documentation

See official documentation.

Contribute

See contribute section.

License

GPL-3.0

Citation

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

Covered in

Metadata

Release files for whatstk 0.6.2

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.6.2
File Size Uploaded Provenance Actions
whatstk-0.6.2.tar.gz 48.0 kB Without provenance Details for whatstk-0.6.2.tar.gz

Release files / whatstk-0.6.2.tar.gz

Download URL whatstk-0.6.2.tar.gz
Size 48.0 kB
Tags Source
SHA-256 checksum
How to use checksums
48a815fa4a79008e7a0315faabb602d0f5e4f15d6731ad6695d45a6d5c848ad2
BLAKE2b-256 checksum
How to use checksums
cd6b1f670e138112474f61c6189c547bb0bd0990a3bd6de87702be31a52f2480
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.4

Security for whatstk 0.6.2

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.

Release history Release notifications | RSS feed

This release

0.6.2 This release

1 release file No 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