Whatsapp chat loader
pip install llama-index-readers-whatsapp
Export a Whatsapp chat
- Open a chat
- Tap on the menu > More > Export chat
- Select Without media
- Save the
.txtfile in your working directory
For more info see Whatsapp's Help Center
Usage
- Messages will get saved in the format:
{timestamp} {author}: {message}. Useful for when you want to ask about specific people in a group chat. - Metadata automatically included:
source(file name),authorandtimestamp.
from pathlib import Path
from llama_index.readers.whatsapp import WhatsappChatLoader
path = "whatsapp.txt"
loader = WhatsappChatLoader(path=path)
documents = loader.load_data()
# see what's created
documents[0]
# >>> Document(text='2023-02-20 00:00:00 ur mom: Hi 😊', doc_id='e0a7c508-4ba0-48e1-a2ba-9af133225636', embedding=None, extra_info={'source': 'WhatsApp Chat with ur mom', 'author': 'ur mom', 'date': '2023-02-20 00:00:00'})
This loader is designed to be used as a way to load data into LlamaIndex.
Metadata
Release files for llama-index-readers-whatsapp 0.6.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 |
|---|---|---|---|---|
| llama_index_readers_whatsapp-0.6.0.tar.gz | 4.1 kB | Without provenance | Details for llama_index_readers_whatsapp-0.6.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| llama_index_readers_whatsapp-0.6.0-py3-none-any.whl | Python 3 | none | any | Details for llama_index_readers_whatsapp-0.6.0-py3-none-any.whl |
Total release size: 7.8 kB
Release files / llama_index_readers_whatsapp-0.6.0.tar.gz
| Download URL | llama_index_readers_whatsapp-0.6.0.tar.gz |
|---|---|
| Size | 4.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
aa9edcb526f6de17e49420bffacf6400ebd650bc1f8c7348aa926933a4459898
|
|
BLAKE2b-256 checksum How to use checksums |
78ac0122c17549728e7fa0fe90393e986c4065fb997f7f7f5b06c60efc78ec49
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.12.7 {"installer":{"name":"uv","version":"0.12.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Release files / llama_index_readers_whatsapp-0.6.0-py3-none-any.whl
| Download URL | llama_index_readers_whatsapp-0.6.0-py3-none-any.whl |
|---|---|
| Size | 3.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4c40ae67f590544915c33103a50ec77e57aa648c8d91fa611dde67f03822289b
|
|
BLAKE2b-256 checksum How to use checksums |
a3ddd31f192bf9aa361ea49925acec7f8b0e3dad8701e293f5e8141e07bedae3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.12.7 {"installer":{"name":"uv","version":"0.12.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Security for llama-index-readers-whatsapp 0.6.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.