Python wrapper for interacting with WhatsApp via the whatsapp-mcp Go bridge.
Project description
My WhatsApp Package
A Python library to interact with your personal WhatsApp account using the whatsapp-mcp Go bridge.
Disclaimer: This package relies on unofficial methods (via whatsmeow used by the Go bridge) to connect to WhatsApp. WhatsApp's terms of service might prohibit this, and using it could potentially lead to your account being flagged or banned. Use at your own risk. This is primarily for educational or personal use.
Features
- Handles setup (Go/Git check, repository cloning).
- Manages the background Go bridge process.
- Prompts for QR code scanning on first connect.
- Send text messages.
- Send media files (images, videos, audio, documents).
- Retrieve new incoming messages (including media download).
Prerequisites
- Python: 3.8+
- Go: Latest version recommended (install from go.dev). Must be added to your system's PATH.
- Git: Required for cloning the
whatsapp-mcprepository (install from git-scm.com). Must be added to your system's PATH. - C Compiler (Windows): If using Windows, you need a C compiler like MSYS2/MinGW configured with
CGO_ENABLED=1for thego-sqlite3dependency used by the bridge. Follow the Windows Compatibility steps from the originalwhatsapp-mcpREADME. - FFmpeg (Optional): Required by the Go bridge if you want to send arbitrary audio files as playable voice messages (it converts them to
.oggOpus). If not installed, you can only send.oggOpus files as voice messages or other audio as plain file documents.
Installation
pip install shubh_whatsapp # Or pip install . if installing from source
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file shubh_whatsapp-0.1.0.tar.gz.
File metadata
- Download URL: shubh_whatsapp-0.1.0.tar.gz
- Upload date:
- Size: 12.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
51203fb1aeb39aa6df982ec4155931f42c995523dd14607e8f8c65a8fa08f10b
|
|
| MD5 |
18b2ab789d37f1e4f50f3a440ba5672e
|
|
| BLAKE2b-256 |
86e295d9c0cbeb370fb6a29c4f4952170ba4fbea5d461e7124b678fa8e0379e5
|
File details
Details for the file shubh_whatsapp-0.1.0-py3-none-any.whl.
File metadata
- Download URL: shubh_whatsapp-0.1.0-py3-none-any.whl
- Upload date:
- Size: 14.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
269f58e336bdebc5172f77ff9a7135dfaa501a1327c7d69f254c9befb6b224cf
|
|
| MD5 |
382d78b2424024a71de944423a26d3d1
|
|
| BLAKE2b-256 |
082de40d2628cd48ea2a430bd6a73ccfee8fb0e53cd8006d07d9ddebb5038923
|