A previous release had provenance metadata, but this release does not. View details.
whatsapp-business-cloud
A complete, typed Python client for the WhatsApp Business Platform (Cloud API + Business Management API + Flows API).
from whatsapp_business_cloud import Client
from whatsapp_business_cloud.builders import Buttons, Template
client = Client(
access_token="EAAB...",
phone_number_id="106540352242922",
waba_id="102290129340398",
)
# messages
client.messages.send_text(to="15551234567", body="Hello!")
client.messages.send_interactive(to="15551234567", interactive=Buttons()
.body("Pick one").add("Yes", "y").add("No", "n"))
client.messages.send_template(to="15551234567", template=Template("order_conf", "en_US")
.body_params("Ana", "1234"))
# media
media = client.media.upload("./invoice.pdf")
client.messages.send_document(to="15551234567", media_id=media.id, filename="invoice.pdf")
# everything else
client.templates.list(status="APPROVED")
client.groups.create(subject="VIP")
client.calls.connect(to="1555...", sdp=offer)
client.flows.publish(flow_id)
# webhooks
from whatsapp_business_cloud.webhooks import parse, verify_signature
events = parse(request.body())
# async
from whatsapp_business_cloud import AsyncClient
async with AsyncClient("EAAB...", phone_number_id="...") as c:
await c.messages.send_text(to="1555...", body="hi")
See docs/api-reference.md for the endpoint spec and docs/plan.md for the design.
Install
pip install -e . # from this repo
pip install "whatsapp-business-cloud[fastapi]" # with the webhook router extra
Demo console
demo/ contains a FastAPI + browser "API console" for exploring every
endpoint against live or mock accounts — see demo/README.md.
Develop
uv venv .venv && uv pip install --python .venv/bin/python -e ".[dev,fastapi]"
.venv/bin/pytest # tests
.venv/bin/ruff check src # lint
.venv/bin/mypy src # typecheck
Metadata
Release files for whatsapp-business-cloud 0.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Loss of provenance
These files do not have provenance metadata, despite files in a prior release including this data.
We recommend further investigation before installing these files. View details.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| whatsapp_business_cloud-0.1.2.tar.gz | 208.2 kB | Without provenance | Details for whatsapp_business_cloud-0.1.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| whatsapp_business_cloud-0.1.2-py3-none-any.whl | Python 3 | none | any | Details for whatsapp_business_cloud-0.1.2-py3-none-any.whl |
Total release size: 260.4 kB
Release files / whatsapp_business_cloud-0.1.2.tar.gz
Loss of provenance
This file belongs to a release without provenance metadata, despite a prior release including this data.
We recommend further investigation before installing this file. View details.
| Download URL | whatsapp_business_cloud-0.1.2.tar.gz |
|---|---|
| Size | 208.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6f7b66ea99f189e793dd59634a4a23cc38ca6125c28cdaf847f062ee193b7428
|
|
BLAKE2b-256 checksum How to use checksums |
ec58f49f3d6e92a999cab4163d0036caec86f06314ca28f2e348a1d7d84d707a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.18
|
Release files / whatsapp_business_cloud-0.1.2-py3-none-any.whl
Loss of provenance
This file belongs to a release without provenance metadata, despite a prior release including this data.
We recommend further investigation before installing this file. View details.
| Download URL | whatsapp_business_cloud-0.1.2-py3-none-any.whl |
|---|---|
| Size | 52.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
fb9d31aeb5dfdd0cc115780dce8c60180b83e5e641f31012d2f6356100d8aab5
|
|
BLAKE2b-256 checksum How to use checksums |
392d6d0fef91d6ec6f0dae3b82e5b5f0e308202ee8574c2f5b1b072d26483d4b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.18
|
Security for whatsapp-business-cloud 0.1.2
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.
Loss of provenance
A previous release of these files had provenance metadata, but this release does not.
While this could reflect a routine change by the project maintainers, it may also indicate that the release files have been compromised.
Release comparison
- Removed 0.1.1 2 files With provenance
- Added 0.1.2 2 files Without provenance
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.