WhatsApp Message Sender Library
Easily send WhatsApp messages from your Python code using the official Meta WhatsApp Cloud API.
What Problem Does This Solve?
- No more struggling with raw HTTP requests or complex setup.
- Just plug in your Meta API credentials and send messages with a single function call.
- Perfect for notifications, alerts, or any automation that needs WhatsApp messaging.
Features
- Simple, plug-and-play API
- Input validation and clear error messages
- Custom exception handling
Quick Start
-
Install dependencies:
pip install my-wp-tools
-
Example usage:
from my_wp_tools.client import WhatsAppClient client = WhatsAppClient( access_token="YOUR_META_TOKEN", phone_number_id="YOUR_PHONE_NUMBER_ID", business_account_id="YOUR_BUSINESS_ACCOUNT_ID" ) try: client.send_message( to="+1234567890", message="Hello from my library!" ) except Exception as e: print("Error sending message:", e)
Dependencies
- Python 3.7+
- requests
Note
- You need a valid Meta (Facebook) WhatsApp Cloud API token, phone number ID, and business account ID.
- This library is for sending messages only (no incoming message/webhook support in v1).
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
my_wp_tools-0.1.3.tar.gz
(2.7 kB
view details)
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 my_wp_tools-0.1.3.tar.gz.
File metadata
- Download URL: my_wp_tools-0.1.3.tar.gz
- Upload date:
- Size: 2.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5d6780d409d15b3c52e3dbcbfef484a379d2d8f0085134d3c16f46182e7df621
|
|
| MD5 |
328c5db438697f48587455dd68b5b291
|
|
| BLAKE2b-256 |
c8f4b6d4ee2f52e01aad4ec6b73bd07e72b797960e7af86de77f0a6c7a156afe
|
File details
Details for the file my_wp_tools-0.1.3-py3-none-any.whl.
File metadata
- Download URL: my_wp_tools-0.1.3-py3-none-any.whl
- Upload date:
- Size: 3.3 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 |
584937dcc5bdba6234bd5de79697fc5b1297277c3cc20297a3b9e109388fe50b
|
|
| MD5 |
876afdfd1abd0acf06687a8c4b773eda
|
|
| BLAKE2b-256 |
3e486f2734cfe9176edcb67817ba41f78121e59e1ff14bb2a3d6a6156b8ffd50
|