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).
Metadata
Release files for my-wp-tools 0.1.3
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 |
|---|---|---|---|---|
| my_wp_tools-0.1.3.tar.gz | 2.7 kB | Without provenance | Details for my_wp_tools-0.1.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| my_wp_tools-0.1.3-py3-none-any.whl | Python 3 | none | any | Details for my_wp_tools-0.1.3-py3-none-any.whl |
Total release size: 6.0 kB
Release files / my_wp_tools-0.1.3.tar.gz
| Download URL | my_wp_tools-0.1.3.tar.gz |
|---|---|
| Size | 2.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5d6780d409d15b3c52e3dbcbfef484a379d2d8f0085134d3c16f46182e7df621
|
|
BLAKE2b-256 checksum How to use checksums |
c8f4b6d4ee2f52e01aad4ec6b73bd07e72b797960e7af86de77f0a6c7a156afe
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.10.0
|
Release files / my_wp_tools-0.1.3-py3-none-any.whl
| Download URL | my_wp_tools-0.1.3-py3-none-any.whl |
|---|---|
| Size | 3.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
584937dcc5bdba6234bd5de79697fc5b1297277c3cc20297a3b9e109388fe50b
|
|
BLAKE2b-256 checksum How to use checksums |
3e486f2734cfe9176edcb67817ba41f78121e59e1ff14bb2a3d6a6156b8ffd50
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.10.0
|
Security for my-wp-tools 0.1.3
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.