Skip to main content

A Python wrapper facilitating seamless integration with the WhatsApp Cloud API. Streamline your messaging workflows and enhance user engagement with this efficient toolkit.

Project description

whatsloon

Overview:

whatsloon is a Python package that simplifies the process of integrating WhatsApp messaging functionality into applications using the WhatsApp Business API. With Whatsloon, developers can easily send various types of messages via WhatsApp, including text messages, multimedia messages, interactive messages, and more.

Features:

  • Send Text Messages: Send plain text messages to WhatsApp recipients.
  • Send Multimedia Messages: Send multimedia messages such as images, videos, audio files, and documents.
  • Send Interactive Messages: Send interactive messages with buttons, lists, product catalogs, and quick replies.
  • Handle Message Status: Receive and handle message status updates, such as message delivery and read receipts.
  • Customizable Templates: Easily create and send messages using customizable templates for consistent branding and messaging.

Key Components:

  • API Integration: Integrate seamlessly with the WhatsApp Business API to send and receive messages.
  • Message Templating: Use pre-defined message templates or create custom templates for consistent messaging.
  • Error Handling: Handle errors gracefully with built-in error handling and logging capabilities.
  • Flexible Configuration: Configure message parameters such as recipient phone numbers, message content, and message types.

Installation:

pip install whatsloon

Usage Example:

from whatsloon.message import WhatsAppClient

# Initialize WhatsApp client
client = WhatsAppClient(
    access_token="YOUR_API_KEY", 
    mobile_number_id="MOBILE_NUMBER_ID",
    country_code="RECIPIENT_COUNTRY_CODE",
    recipient_mobile_number="RECIPIENT_MOBILE_NUMBER",
    )

# Send a text message
response = client.send_text_message(message_text="Hello, world!")

# Check response
print(response)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

whatsloon-1.1.1.tar.gz (14.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

whatsloon-1.1.1-py3-none-any.whl (15.0 kB view details)

Uploaded Python 3

File details

Details for the file whatsloon-1.1.1.tar.gz.

File metadata

  • Download URL: whatsloon-1.1.1.tar.gz
  • Upload date:
  • Size: 14.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.9.6

File hashes

Hashes for whatsloon-1.1.1.tar.gz
Algorithm Hash digest
SHA256 67e999b6d26f3333e6b38ed1d7b8d183f9336d6df8c1966a4d68bac740e49d80
MD5 7f127351d7c4d2b730edefe500834df2
BLAKE2b-256 5acfac80993f2bd85b3e6fd11fb62d7c19271469734ec34ec802ec5e549b71a0

See more details on using hashes here.

File details

Details for the file whatsloon-1.1.1-py3-none-any.whl.

File metadata

  • Download URL: whatsloon-1.1.1-py3-none-any.whl
  • Upload date:
  • Size: 15.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.9.6

File hashes

Hashes for whatsloon-1.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 4bf97b8d62b6c1758f9be3da96fbd507e239991fa406f26f6ac2b9f8c30cea24
MD5 10e53bf6518382e4e35c5de9a053da49
BLAKE2b-256 628d505aec5a2a1621361edc9ce236ac5d90ca79c5238d8ecb7c97218a54618c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page