Skip to main content

PyWassap is a python library for sending WhatsApp messages using the WhatsApp Business API.

Project description

pywassap

A simple asynchronous Python library for WhatsApp Web.

Test Publish Coverage


Documentation: https://pywassap.netlify.app

Source Code: https://github.com/Aarif1430/pywassap


PyWassap is a python library for sending WhatsApp messages using the WhatsApp Business API. It is a wrapper around the WhatsApp Business API. The library is built on top of the aiohttp library for asynchronous HTTP requests.

PyWassap supports the following features:

1. Send WhatsApp messages - Send WhatsApp messages to a single or multiple recipients.

import asyncio
from pywassap import PyWassap

client = WhatsApp(number, token)
asyncio.run(client.send_text_message(
    message="Hello World",
    recipient_id="919999999999"
    recipient_type="individual"
))

2. Send WhatsApp messages to multiple recipients - Send WhatsApp messages to multiple recipients.

import asyncio
from pywassap import WhatsApp

client = WhatsApp(number, token)
asyncio.run(client.send_text_message(
    message="Hello World",
    recipient_id=["919999999999", "919999999998"]
    recipient_type="individual"
))

Requirements

For development, the following requirements are needed:

python
aiohttp

Installation

$ pip install pywassap
---> 100%
Successfully installed pywassap

License

This project is licensed under the terms of the MIT license.

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

pywassap-0.0.2-py3-none-any.whl (4.5 kB view details)

Uploaded Python 3

File details

Details for the file pywassap-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: pywassap-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 4.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.2.0a2 CPython/3.11.0 Linux/5.15.0-1022-azure

File hashes

Hashes for pywassap-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 15241b761530d8af0cff86cb4775923ba56b0c092c0cede5c99dfea991286738
MD5 48e85d521349cb2908beb13ceb0e5058
BLAKE2b-256 361ac80c111d95f435d5c94336799be2a90ee0b4d277430c7bc41516c066329a

See more details on using hashes here.

Supported by

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