Name | llama-index-readers-whatsapp JSON |
Version |
0.3.0
JSON |
| download |
home_page | None |
Summary | llama-index readers whatsapp integration |
upload_time | 2024-11-18 00:18:08 |
maintainer | batmanscode |
docs_url | None |
author | Your Name |
requires_python | <4.0,>=3.9 |
license | MIT |
keywords |
chat
whatsapp
|
VCS |
|
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
# Whatsapp chat loader
```bash
pip install llama-index-readers-whatsapp
```
## Export a Whatsapp chat
1. Open a chat
2. Tap on the menu > More > Export chat
3. Select **Without media**
4. Save the `.txt` file in your working directory
For more info see [Whatsapp's Help Center](https://faq.whatsapp.com/1180414079177245/)
## 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), `author` and `timestamp`.
```python
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](https://github.com/run-llama/llama_index/).
Raw data
{
"_id": null,
"home_page": null,
"name": "llama-index-readers-whatsapp",
"maintainer": "batmanscode",
"docs_url": null,
"requires_python": "<4.0,>=3.9",
"maintainer_email": null,
"keywords": "chat, whatsapp",
"author": "Your Name",
"author_email": "you@example.com",
"download_url": "https://files.pythonhosted.org/packages/35/47/aac4a9be58805f7211e291b9dbf6d0c6a2ee3cd1c501a2c5d2669cacaa82/llama_index_readers_whatsapp-0.3.0.tar.gz",
"platform": null,
"description": "# Whatsapp chat loader\n\n```bash\npip install llama-index-readers-whatsapp\n```\n\n## Export a Whatsapp chat\n\n1. Open a chat\n2. Tap on the menu > More > Export chat\n3. Select **Without media**\n4. Save the `.txt` file in your working directory\n\nFor more info see [Whatsapp's Help Center](https://faq.whatsapp.com/1180414079177245/)\n\n## Usage\n\n- Messages will get saved in the format: `{timestamp} {author}: {message}`. Useful for when you want to ask about specific people in a group chat.\n- Metadata automatically included: `source` (file name), `author` and `timestamp`.\n\n```python\nfrom pathlib import Path\n\nfrom llama_index.readers.whatsapp import WhatsappChatLoader\n\npath = \"whatsapp.txt\"\nloader = WhatsappChatLoader(path=path)\ndocuments = loader.load_data()\n\n# see what's created\ndocuments[0]\n# >>> Document(text='2023-02-20 00:00:00 ur mom: Hi \ud83d\ude0a', 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'})\n```\n\nThis loader is designed to be used as a way to load data into [LlamaIndex](https://github.com/run-llama/llama_index/).\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "llama-index readers whatsapp integration",
"version": "0.3.0",
"project_urls": null,
"split_keywords": [
"chat",
" whatsapp"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "2edf1990ae072c587d379a209c95cd0a1a9d899f79788804298fa4d92ea02863",
"md5": "78bd14498ab2602ecb1e37eabf2cff33",
"sha256": "406a1aaf83d5761c8043655893911fc0b3721358db48cdf9cfd9b116bf6dbb1a"
},
"downloads": -1,
"filename": "llama_index_readers_whatsapp-0.3.0-py3-none-any.whl",
"has_sig": false,
"md5_digest": "78bd14498ab2602ecb1e37eabf2cff33",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": "<4.0,>=3.9",
"size": 2870,
"upload_time": "2024-11-18T00:18:07",
"upload_time_iso_8601": "2024-11-18T00:18:07.499889Z",
"url": "https://files.pythonhosted.org/packages/2e/df/1990ae072c587d379a209c95cd0a1a9d899f79788804298fa4d92ea02863/llama_index_readers_whatsapp-0.3.0-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "3547aac4a9be58805f7211e291b9dbf6d0c6a2ee3cd1c501a2c5d2669cacaa82",
"md5": "060852c98b867e355b42238dd90fd021",
"sha256": "4c6c94ddadebaa8ed4ffdb584fd1f2410b9b0aaf7b8d6720d73e9e1ba6d29524"
},
"downloads": -1,
"filename": "llama_index_readers_whatsapp-0.3.0.tar.gz",
"has_sig": false,
"md5_digest": "060852c98b867e355b42238dd90fd021",
"packagetype": "sdist",
"python_version": "source",
"requires_python": "<4.0,>=3.9",
"size": 2633,
"upload_time": "2024-11-18T00:18:08",
"upload_time_iso_8601": "2024-11-18T00:18:08.957468Z",
"url": "https://files.pythonhosted.org/packages/35/47/aac4a9be58805f7211e291b9dbf6d0c6a2ee3cd1c501a2c5d2669cacaa82/llama_index_readers_whatsapp-0.3.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-11-18 00:18:08",
"github": false,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"lcname": "llama-index-readers-whatsapp"
}