Skip to main content

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

  1. Install dependencies:

    pip install my-wp-tools
    
  2. 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)

Source distribution for my-wp-tools 0.1.3
File Size Uploaded
my_wp_tools-0.1.3.tar.gz 2.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for my-wp-tools 0.1.3
File Interpreter ABI Platform
my_wp_tools-0.1.3-py3-none-any.whl Python 3 none any Details

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

Release history Release notifications | RSS feed

This release

0.1.3 This release

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page